]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
x86: Limit -mcmodel=large tests to lp64 target
authorH.J. Lu <(no_default)>
Tue, 30 Jan 2024 02:12:14 +0000 (18:12 -0800)
committerH.J. Lu <(no_default)>
Tue, 30 Jan 2024 02:12:14 +0000 (18:12 -0800)
-mcmodel=large is only supported for lp64 targets.  Limit -mcmodel=large
tests of libcall-1.c and pr107057.c to lp64 target.

* gcc.target/i386/libcall-1.c: Limit to lp64 target.
* gcc.target/i386/pr107057.c: Likewise.

gcc/testsuite/gcc.target/i386/libcall-1.c
gcc/testsuite/gcc.target/i386/pr107057.c

index cb95aca7a29a4395524f213c0f9d0e5f07ad155b..34a31dd23c6d80d32100f39731bd45d1ae395e41 100644 (file)
@@ -1,7 +1,7 @@
 /* Make sure that external refences for libcalls are generated even for
    indirect calls.  */
 
-/* { dg-do compile { target int128 } } */
+/* { dg-do compile { target { int128 && lp64 } } } */
 /* { dg-options "-O2 -mcmodel=large" } */
 /* { dg-final { scan-assembler "globl\t__divti3" } } */
 /* { dg-skip-if "PR90698" { *-*-darwin* } } */
index 40b49ac21ecb489a8608d0ab37e3e26176fb9344..f4ebc3deef3c8b2f924a73d86c427f96b9377988 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { ! ia32 } } } */
+/* { dg-do compile { target lp64 } } */
 /* { dg-options "-mavx -mcmodel=large -O3" } */
 
 typedef double v2df __attribute__ ((vector_size (16)));