diff options
| author | H.J. Lu <hjl.tools@gmail.com> | 2025-08-09 14:00:47 -0700 |
|---|---|---|
| committer | H.J. Lu <hjl.tools@gmail.com> | 2025-08-09 14:00:47 -0700 |
| commit | 07959996dd859af79e51494ee04329b0e538fb94 (patch) | |
| tree | 7dcd94df754e1196d9cb6d17b9c44031a9b808b0 /gcc | |
| parent | 3e3f452a9355446c5d1f02227497993bcaefc438 (diff) | |
| download | gcc-07959996dd859af79e51494ee04329b0e538fb94.zip gcc-07959996dd859af79e51494ee04329b0e538fb94.tar.gz gcc-07959996dd859af79e51494ee04329b0e538fb94.tar.bz2 | |
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.tools@gmail.com>
Diffstat (limited to 'gcc')
| -rw-r--r-- | gcc/testsuite/gcc.target/i386/asm-hard-reg-2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 b35cf53..756f6f8 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)); |
