aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/PowerPC/extsh.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/PowerPC/extsh.ll')
-rw-r--r--test/CodeGen/PowerPC/extsh.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/PowerPC/extsh.ll b/test/CodeGen/PowerPC/extsh.ll
new file mode 100644
index 0000000..4ac7735
--- /dev/null
+++ b/test/CodeGen/PowerPC/extsh.ll
@@ -0,0 +1,7 @@
+; This should turn into a single extsh
+; RUN: llvm-as < %s | llc -march=ppc32 | grep extsh | wc -l | grep 1
+int %test(int %X) {
+ %tmp.81 = shl int %X, ubyte 16 ; <int> [#uses=1]
+ %tmp.82 = shr int %tmp.81, ubyte 16 ; <int> [#uses=1]
+ ret int %tmp.82
+}