Use gather loads for strided accesses
[official-gcc.git] / gcc / testsuite / gcc.target / arc / arc700-stld-hazard.c
blobeba03d8625681e7d0c42400fd92df7bb1871486b
1 /* { dg-do compile } */
2 /* { dg-options "-mcpu=arc700 -mno-sdata" } */
4 volatile int a;
5 volatile int b;
7 void
8 foo ()
10 a = 1;
11 b = a;
14 /* { dg-final { scan-assembler "st r\[0-9\]+,\\\[@a\\\]\[^\n\]*\n\[ \t\]+nop_s\[^\n\]*\n\[ \t\]+nop_s\[^\n\]*\n\[ \t\]+ld r\[0-9\]+,\\\[@a\\\]" } } */