diff options
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign')
11 files changed, 0 insertions, 192 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/asm-1.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/asm-1.c deleted file mode 100644 index dfe3968f5..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/asm-1.c +++ /dev/null @@ -1,7 +0,0 @@ -/* { dg-do compile } */ -/* { dg-require-effective-target ia32 } */ -/* { dg-options "-mpreferred-stack-boundary=2" } */ - -/* This case is to detect a compile time regression introduced in stack - branch development. */ -f(){asm("%0"::"r"(1.5F));}g(){asm("%0"::"r"(1.5));} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/longlong-1.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/longlong-1.c deleted file mode 100644 index 161d2292d..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/longlong-1.c +++ /dev/null @@ -1,15 +0,0 @@ -/* PR target/39137 */ -/* { dg-do compile } */ -/* { dg-require-effective-target ia32 } */ -/* { dg-options "-O2 -mpreferred-stack-boundary=2" } */ -/* Make sure dynamic stack realignment isn't performed just because there - are long long variables. */ -/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-8,\[^\\n\]*sp" } } */ - -void fn (void *); - -void f1 (void) -{ - unsigned long long a; - fn (&a); -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/longlong-2.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/longlong-2.c deleted file mode 100644 index 6ea83f98f..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/longlong-2.c +++ /dev/null @@ -1,33 +0,0 @@ -/* { dg-do compile { target { ! *-*-darwin* } } } */ -/* { dg-require-effective-target ia32 } */ -/* { dg-options "-O2 -mpreferred-stack-boundary=2" } */ -/* { dg-final { scan-assembler-times "and\[lq\]?\[^\\n\]*-8,\[^\\n\]*sp" 2 } } */ -/* { dg-final { scan-assembler-times "and\[lq\]?\[^\\n\]*-16,\[^\\n\]*sp" 2 } } */ - -void fn (void *); - -void f2 (void) -{ - unsigned long long a __attribute__((aligned (8))); - fn (&a); -} - -void f3 (void) -{ - typedef unsigned long long L __attribute__((aligned (8))); - L a; - fn (&a); -} - -void f4 (void) -{ - unsigned long long a __attribute__((aligned (16))); - fn (&a); -} - -void f5 (void) -{ - typedef unsigned long long L __attribute__((aligned (16))); - L a; - fn (&a); -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/pr39146.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/pr39146.c deleted file mode 100644 index 9ae5f0345..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/pr39146.c +++ /dev/null @@ -1,13 +0,0 @@ -/* { dg-do compile { target i?86-*-* x86_64-*-* } } */ -/* { dg-options "-O2 -mavx" } */ - -typedef long long __m256i __attribute__ ((__vector_size__ (32), __may_alias__)); - - -__m256i -bar (__m256i x) -{ - return x; -} - -/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-32,\[^\\n\]*sp" } } */ diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-1.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-1.c deleted file mode 100644 index c9fcc1213..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-1.c +++ /dev/null @@ -1,11 +0,0 @@ -/* { dg-do compile } */ -/* { dg-require-effective-target ia32 } */ -/* { dg-options "-mpreferred-stack-boundary=2" } */ - -/* This compile only test is to detect an assertion failure in stack branch - development. */ - -double -foo (void) -{ -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-2.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-2.c deleted file mode 100644 index d393913ae..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-2.c +++ /dev/null @@ -1,18 +0,0 @@ -/* { dg-do compile } */ -/* { dg-require-effective-target ia32 } */ -/* { dg-options "-mpreferred-stack-boundary=2" } */ - -/* This compile only test is to detect an assertion failure in stack branch - development. */ -void baz (void); - -double foo (void) -{ - baz (); - return; -} - -double bar (void) -{ - baz (); -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-3.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-3.c deleted file mode 100644 index e32547e01..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-3.c +++ /dev/null @@ -1,11 +0,0 @@ -/* { dg-do compile } */ -/* { dg-skip-if "" { ! { ia32 && dfp } } { "*" } { "" } } */ -/* { dg-options "-msse -std=gnu99 -mpreferred-stack-boundary=2" } */ -/* { dg-require-effective-target sse } */ - -/* This compile only test is to detect an assertion failure in stack branch - development. */ -_Decimal128 test (void) -{ - return 1234123412341234.123412341234dl; -} diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-4.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-4.c deleted file mode 100644 index a1e35dcc2..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-4.c +++ /dev/null @@ -1,10 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-mpreferred-stack-boundary=4" } */ -/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" } } */ - -/* This compile only test is to detect an assertion failure in stack branch - development. */ -typedef int aligned __attribute__((aligned(64))); - -aligned -foo (void) { } diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-5.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-5.c deleted file mode 100644 index 208bc0d8a..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-5.c +++ /dev/null @@ -1,14 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-mpreferred-stack-boundary=4" } */ -/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" } } */ - -/* This compile only test is to detect an assertion failure in stack branch - development. */ -struct bar -{ - int x; -} __attribute__((aligned(64))); - - -struct bar -foo (void) { } diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-6.c b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-6.c deleted file mode 100644 index b1aa1eac8..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/return-6.c +++ /dev/null @@ -1,14 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-mpreferred-stack-boundary=4" } */ -/* { dg-final { scan-assembler-not "and\[lq\]?\[^\\n\]*-64,\[^\\n\]*sp" } } */ - -/* This compile only test is to detect an assertion failure in stack branch - development. */ -struct bar -{ - int x __attribute__((aligned(64))); -}; - - -struct bar -foo (void) { } diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/stackalign.exp b/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/stackalign.exp deleted file mode 100644 index db7a49427..000000000 --- a/gcc-4.8.1/gcc/testsuite/gcc.target/i386/stackalign/stackalign.exp +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright (C) 2008-2013 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GCC; see the file COPYING3. If not see -# <http://www.gnu.org/licenses/>. - -# Exit immediately if this isn't a x86 target. -if { ![istarget i?86*-*-*] && ![istarget x86_64-*-*] } then { - return -} - -load_lib gcc-dg.exp - -# Only run on targets which support automatic stack alignment. -if { ![check_effective_target_automatic_stack_alignment] } then { - return -} - -# If a testcase doesn't have special options, use these. -global DEFAULT_CFLAGS -if ![info exists DEFAULT_CFLAGS] then { - set DEFAULT_CFLAGS "-w" -} - -# Initialize `dg'. -dg-init - -set additional_flags "-mstackrealign" - -dg-runtest [lsort [glob $srcdir/$subdir/*.c]] $additional_flags $DEFAULT_CFLAGS - -set additional_flags "-mno-stackrealign" - -dg-runtest [lsort [glob $srcdir/$subdir/*.c]] $additional_flags $DEFAULT_CFLAGS - -dg-finish |