i386: Fix wrong insn generated by shld/shrd ndd split [PR118510]
[official-gcc.git] / gcc / testsuite / gcc.target / arc / arc700-stld-hazard.c
blob49b5664b37082528b3214f0ea5f86fe5dad4faa9
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { ! { clmcpu } } } */
3 /* { dg-options "-mcpu=arc700 -mno-sdata -O2" } */
5 volatile int a;
6 volatile int b;
8 void
9 foo ()
11 a = 1;
12 b = a;
15 /* { dg-final { scan-assembler "st\\s+r\[0-9\]+,\\\[@a\\\]\\.*\[^\n\]*\n\[ \t\]+nop_s\[^\n\]*\n\[ \t\]+nop_s\[^\n\]*\n\[ \t\]+ld\\s+r\[0-9\]+,\\\[@a\\\]" } } */