diff options
Diffstat (limited to 'gcc/testsuite/gcc.apple/string-insns.c')
-rw-r--r-- | gcc/testsuite/gcc.apple/string-insns.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.apple/string-insns.c b/gcc/testsuite/gcc.apple/string-insns.c new file mode 100644 index 00000000000..aee058d5548 --- /dev/null +++ b/gcc/testsuite/gcc.apple/string-insns.c @@ -0,0 +1,9 @@ +/* APPLE LOCAL Disable string insns with -Os on Darwin (radar 3509006) */ +/* { dg-do compile { target powerpc*-apple-darwin* } } */ +/* { dg-options "-Os" } */ +/* On ppc at Apple, -Os should not use string instructions. 3509006. */ +struct s { int a; int b; int c; }; +int foo (struct s* p, struct s* q) { + *p = *q; +} +/* { dg-final { scan-assembler-not "lswi" } } */ |