https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93648
--- Comment #7 from Roman Zhikharevich ---
I am writing benchmarking code for my project and trying to make the compiler
ignore its knowledge of certain values during optimization. I settled for
template
void black_box(T* value) {
asm v
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93648
--- Comment #4 from Roman Zhikharevich ---
Sorry, I forgot to mention that this is triggered with -O2, on x86-64.
> First off the comma is ignored in inline-asm.
This doesn't seem to be true because it changes the generated assembly.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93648
--- Comment #1 from Roman Zhikharevich ---
Reproducible in G++ 9.1 and 9.2, but not 8.3 (did not test 9.0 because
godbolt.org doesn't support it).
Priority: P3
Component: inline-asm
Assignee: unassigned at gcc dot gnu.org
Reporter: rzhikharev...@yandex-team.ru
Target Milestone: ---
Created attachment 47809
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47809&action=edit
Triggering code
Passing a