]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Fix gcc.dg/asm-hard-reg-9.c
authorStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Thu, 4 Dec 2025 12:49:19 +0000 (13:49 +0100)
committerStefan Schulze Frielinghaus <stefansf@gcc.gnu.org>
Thu, 4 Dec 2025 12:49:19 +0000 (13:49 +0100)
The testcase introduced in r16-5879-g55cc4377a31 was ment for 64-bit
only because it is referencing register r8.  Fixed by restricting it to
lp64.

gcc/testsuite/ChangeLog:

* gcc.dg/asm-hard-reg-9.c: Restrict to lp64 x86_64.

gcc/testsuite/gcc.dg/asm-hard-reg-9.c

index 0866cb4554af1666c1d897a97d5a4fb0651d8dee..f2079eca794e8a88789ea2b05f2e32a140671db7 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target s390*-*-* x86_64-*-* } } */
+/* { dg-do compile { target { s390*-*-* || { x86_64-*-* && lp64 } } } } */
 /* { dg-options "-O2" } */
 
 /* Ensure that if the reload register for operand 2 is resued for operand 3,