]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pr125100-4.c: Adjust check-function-bodies for x32
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 27 Jun 2026 05:34:20 +0000 (13:34 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 27 Jun 2026 05:34:20 +0000 (13:34 +0800)
PR target/125100
* gcc.target/i386/pr125100-4.c: Replace "movq  %rax, \(%rdi\)"
with "movq  %rax, \(%[re]di\)" to support x32.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/testsuite/gcc.target/i386/pr125100-4.c

index 38c2fe46fff09d3c660840f5ec1d5ef58d68549c..896d82e53aabfd5de220b3d45604a90ba425d2af 100644 (file)
@@ -8,7 +8,7 @@
 **.LFB[0-9]+:
 **     .cfi_startproc
 **     movabsq \$4758053007424749568, %rax
-**     movq    %rax, \(%rdi\)
+**     movq    %rax, \(%[re]di\)
 **     ret
 **     .cfi_endproc
 **...