aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.apple/string-insns.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.apple/string-insns.c')
-rw-r--r--gcc/testsuite/gcc.apple/string-insns.c9
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..741ab60f5df
--- /dev/null
+++ b/gcc/testsuite/gcc.apple/string-insns.c
@@ -0,0 +1,9 @@
+/* APPLE LOCAL 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" } } */