https://gcc.gnu.org/g:07959996dd859af79e51494ee04329b0e538fb94

commit r16-3105-g07959996dd859af79e51494ee04329b0e538fb94
Author: H.J. Lu <hjl.to...@gmail.com>
Date:   Sat Aug 9 14:00:47 2025 -0700

    asm-hard-reg-2.c: Use long long on z to trigger RA error
    
    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>

Diff:
---
 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 b35cf53c5cc0..756f6f8c4124 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));

Reply via email to