* gcc.dg/arm-asm.c: Enable for StrongARM and XScale targets.
[official-gcc.git] / gcc / testsuite / gcc.dg / arm-asm.c
blobdd99c68553f7c708f5004a41055f8b167aba536f
1 /* ARM and Thumb asm statements should be able to access the constant
2 pool. */
3 /* { dg-do compile { target arm*-*-* strongarm*-*-* xscale*-*-*} } */
4 extern unsigned x[];
5 unsigned *trapTable()
7 unsigned *i;
9 __asm__ volatile("ldr %0,%1" : "=r"(i) : "m"(x[0]));
11 return i;