PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr82267.c
blob5e4b271d41d7e4e2ee12123509c01ecb534caeac
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-require-effective-target maybe_x32 } */
3 /* { dg-options "-O2 -mx32 -maddress-mode=short" } */
5 int
6 stackuse (void)
8 volatile int foo = 2;
9 return foo * 3;
12 /* Verify we that use %rsp to access stack. */
13 /* { dg-final { scan-assembler-not "%esp" } } */
14 /* { dg-final { scan-assembler "%rsp" } } */