diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/pr17133.c | 28 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/simd-1.x | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/simd-2.x | 7 |
3 files changed, 42 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/pr17133.c b/gcc/testsuite/gcc.c-torture/execute/pr17133.c new file mode 100644 index 00000000000..6357d03a54f --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/pr17133.c @@ -0,0 +1,28 @@ +/* APPLE LOCAL file mainline */ +extern void abort (void); + +int foo = 0; +void *bar = 0; +unsigned int baz = 100; + +void *pure_alloc () +{ + void *res; + + while (1) + { + res = (void *) ((((unsigned int) (foo + bar))) & ~1); + foo += 2; + if (foo < baz) + return res; + foo = 0; + } +} + +int main () +{ + pure_alloc (); + if (!foo) + abort (); + return 0; +} diff --git a/gcc/testsuite/gcc.c-torture/execute/simd-1.x b/gcc/testsuite/gcc.c-torture/execute/simd-1.x new file mode 100644 index 00000000000..927ee563529 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/simd-1.x @@ -0,0 +1,7 @@ +# APPLE LOCAL file vector instructions are not supported except with -faltivec + +if { [istarget "*-apple-darwin*"] } { + set torture_compile_xfail "*-apple-darwin*" +} + +return 0 diff --git a/gcc/testsuite/gcc.c-torture/execute/simd-2.x b/gcc/testsuite/gcc.c-torture/execute/simd-2.x new file mode 100644 index 00000000000..927ee563529 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/simd-2.x @@ -0,0 +1,7 @@ +# APPLE LOCAL file vector instructions are not supported except with -faltivec + +if { [istarget "*-apple-darwin*"] } { + set torture_compile_xfail "*-apple-darwin*" +} + +return 0 |