Use long long on z to trigger

error: 'asm' operand has impossible constraints or there are not enough 
registers

for -m32 on asm statements like:

  __asm__ __volatile__ ("" : "=A" (z), "={rax}" (y));

        PR testsuite/121205
        * gcc.target/i386/asm-hard-reg-2.c (z): Use long long for -m32
        to trigger RA error.

Signed-off-by: H.J. Lu <hjl.to...@gmail.com>
---
 gcc/testsuite/gcc.target/i386/asm-hard-reg-2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/asm-hard-reg-2.c 
b/gcc/testsuite/gcc.target/i386/asm-hard-reg-2.c
index b35cf53c5cc..756f6f8c412 100644
--- a/gcc/testsuite/gcc.target/i386/asm-hard-reg-2.c
+++ b/gcc/testsuite/gcc.target/i386/asm-hard-reg-2.c
@@ -8,7 +8,7 @@ test (void)
 #ifdef __x86_64__
   int z __attribute__ ((mode (TI)));
 #else
-  long z;
+  long long z;
 #endif
 
   __asm__ __volatile__ ("" : "=A" (z), "={rbx}" (y));
-- 
2.50.1

Reply via email to