aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CodeGen/PowerPC/vec_vrsave.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/vec_vrsave.ll b/test/CodeGen/PowerPC/vec_vrsave.ll
new file mode 100644
index 0000000000..8c4e713985
--- /dev/null
+++ b/test/CodeGen/PowerPC/vec_vrsave.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | grep vrlw &&
+; RUN: llvm-as < %s | llc -march=ppc32 -mcpu=g5 | not grep spr
+
+<4 x int> %test_rol() {
+ ret <4 x int> < int -11534337, int -11534337, int -11534337, int -11534337 >
+}
+