]> git.ipfire.org Git - thirdparty/gcc.git/commit
asm-hard-reg-2.c: Use long long on z to trigger RA error
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Aug 2025 21:00:47 +0000 (14:00 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 9 Aug 2025 21:00:47 +0000 (14:00 -0700)
commit07959996dd859af79e51494ee04329b0e538fb94
tree7dcd94df754e1196d9cb6d17b9c44031a9b808b0
parent3e3f452a9355446c5d1f02227497993bcaefc438
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>
gcc/testsuite/gcc.target/i386/asm-hard-reg-2.c