aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/20050603-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/20050603-3.c')
-rw-r--r--gcc/testsuite/gcc.dg/20050603-3.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20050603-3.c b/gcc/testsuite/gcc.dg/20050603-3.c
new file mode 100644
index 00000000000..35be6602155
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20050603-3.c
@@ -0,0 +1,15 @@
+/* { dg-do compile { target "powerpc-*-*" } } */
+/* { dg-options "-O2" } */
+struct Q
+{
+ long x:20;
+ long y:4;
+ long z:8;
+}b;
+/* This should generate a single rl[w]imi. */
+void rotins (unsigned int x)
+{
+ b.y = (x<<12) | (x>>20);
+}
+
+/* { dg-final { scan-assembler-not "inm" } } */