Skip to content

Commit 0795999

Browse files
committed
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 <[email protected]>
1 parent 3e3f452 commit 0795999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/testsuite/gcc.target/i386/asm-hard-reg-2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test (void)
88
#ifdef __x86_64__
99
int z __attribute__ ((mode (TI)));
1010
#else
11-
long z;
11+
long long z;
1212
#endif
1313

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

0 commit comments

Comments
 (0)