gcc/testsuite/gcc.dg/asm-a.c
raw| 1 | /* { dg-options "-O2" } */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-effective-target ilp32 } */ |
| 4 | |
| 5 | /* The problem was we were not striping the long cast here. |
| 6 | Note this really should be invalid code but not for the |
| 7 | current release (4.0) as we have people using it. */ |
| 8 | |
| 9 | void blockCopy_MMX2(int*); |
| 10 | void postProcess_MMX2() |
| 11 | { |
| 12 | int c, x,y, width; |
| 13 | asm( "" :: "m" ((long)x)); |
| 14 | blockCopy_MMX2(&c); |
| 15 | } |