aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/msp430/emulate-srai.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.target/msp430/emulate-srai.c')
-rw-r--r--gcc/testsuite/gcc.target/msp430/emulate-srai.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.target/msp430/emulate-srai.c b/gcc/testsuite/gcc.target/msp430/emulate-srai.c
index 66291717a02..f3f6dae94ea 100644
--- a/gcc/testsuite/gcc.target/msp430/emulate-srai.c
+++ b/gcc/testsuite/gcc.target/msp430/emulate-srai.c
@@ -1,15 +1,19 @@
/* { dg-do compile } */
+/* { dg-skip-if "" { *-*-* } { "-mcpu=msp430" } { "" } } */
/* { dg-options "-Os" } */
/* { dg-final { scan-assembler-not "mspabi_srai" } } */
-/* { dg-final { scan-assembler "rrax" } } */
+/* { dg-final { scan-assembler "RRAM.W\t#4" } } */
+/* { dg-final { scan-assembler "RPT\t#5 \{ RRAX.W" } } */
/* Ensure that HImode shifts with source operand in memory are emulated with a
rotate instructions. */
int a;
+int b;
void
foo (void)
{
a = a >> 4;
+ b = b >> 5;
}