]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: move gcc.c-torture/compile/libcall-2.c to gcc.target/i386/libcall-1.c
authorJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 29 Nov 2023 08:16:48 +0000 (09:16 +0100)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Wed, 29 Nov 2023 08:31:23 +0000 (09:31 +0100)
This patch relocates a test that is really x86 specific, and changes
it to use check_effective_target_int128.

gcc/testsuite/ChangeLog

* gcc.c-torture/compile/libcall-2.c: Remove.
* gcc.target/i386/libcall-1.c: Moved from
gcc.c-torture/compile/libcall-2.c and adapted to use
effective-target for int128_t.

gcc/testsuite/gcc.target/i386/libcall-1.c [moved from gcc/testsuite/gcc.c-torture/compile/libcall-2.c with 50% similarity]

similarity index 50%
rename from gcc/testsuite/gcc.c-torture/compile/libcall-2.c
rename to gcc/testsuite/gcc.target/i386/libcall-1.c
index 9b889172025f020674c898a8dc49a71e44bdf682..8bd6684a925e64d28e0349b315c6bdd4fb0a5b6b 100644 (file)
@@ -1,10 +1,8 @@
 /* Make sure that external refences for libcalls are generated even for
    indirect calls.  */
 
-/* { dg-do compile } */
-/* __int128 is not supported in x86 -m32.  */
-/* { dg-skip-if "" { ! { x86_64-*-* && { ! ilp32 } } } } */
-/* { dg-options "-O2 -mcmodel=large" { target x86_64-*-* } } */
+/* { dg-do compile { target int128 } } */
+/* { dg-options "-O2 -mcmodel=large" } */
 /* { dg-final { scan-assembler "globl\t__divti3" } } */
 
 __int128 a, b; void foo () { a = a / b; }