summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/pack.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/ARM/pack.ll')
-rw-r--r--llvm/test/CodeGen/ARM/pack.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/ARM/pack.ll b/llvm/test/CodeGen/ARM/pack.ll
index b94414328ca..f6cc75e04f0 100644
--- a/llvm/test/CodeGen/ARM/pack.ll
+++ b/llvm/test/CodeGen/ARM/pack.ll
@@ -99,3 +99,13 @@ entry:
%tmp3 = or i32 %tmp, %tmp2
ret i32 %tmp3
}
+
+; CHECK: test10:
+; CHECK: pkhtb r0, r0, r1, asr #17
+define i32 @test10(i32 %src1, i32 %src2) {
+entry:
+ %tmp = and i32 %src1, -65536
+ %tmp2 = ashr i32 %src2, 17
+ %tmp3 = or i32 %tmp, %tmp2
+ ret i32 %tmp3
+}
OpenPOWER on IntegriCloud