[Bug target/102941] ICE in extract_insn with ccflags output from inline-asm and var with address taken

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 26 06:54:37 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102941

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a testcase which fails at all optimization levels (not DCEing out
stuff):
int test_cmpu_x;

long
test_cmpu_y() {
  long le;
  f(&le);
  __asm__("cmp %"
          "[x], %"
          "[y]"
          : "=@ccls"(le)
          : [x] ""(test_cmpu_x), [y] ""(test_cmpu_y));
    return le;
}


More information about the Gcc-bugs mailing list