diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20050303-1.c | 11 | ||||
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/simd-4.x | 4 | ||||
-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 |
5 files changed, 57 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20050303-1.c b/gcc/testsuite/gcc.c-torture/compile/20050303-1.c new file mode 100644 index 00000000000..005a8c50ea4 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20050303-1.c @@ -0,0 +1,11 @@ +/* APPLE LOCAL file mainline */ +void crc() +{ + int toread; + long long nleft; + unsigned char buf[(128 * 1024)]; + + nleft = 0; + while (toread = (nleft < (2147483647 * 2U + 1U)) ? nleft: (2147483647 * 2U + 1U) ) + ; +} diff --git a/gcc/testsuite/gcc.c-torture/compile/simd-4.x b/gcc/testsuite/gcc.c-torture/compile/simd-4.x new file mode 100644 index 00000000000..0ab59899f66 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/simd-4.x @@ -0,0 +1,4 @@ +# APPLE LOCAL file vector instructions are not supported except with -faltivec + +if { [istarget "*-apple-darwin*"] } { set options "-faltivec" } +return 0 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 |