gcc/testsuite/gcc.target/arc/arc700-stld-hazard.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-skip-if "" { ! { clmcpu } } } */ |
| 3 | /* { dg-options "-mcpu=arc700 -mno-sdata -O2" } */ |
| 4 | |
| 5 | volatile int a; |
| 6 | volatile int b; |
| 7 | |
| 8 | void |
| 9 | foo () |
| 10 | { |
| 11 | a = 1; |
| 12 | b = a; |
| 13 | } |
| 14 | |
| 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\\\]" } } */ |