summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/sbfx.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/sbfx.ll')
-rw-r--r--test/CodeGen/ARM/sbfx.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/sbfx.ll b/test/CodeGen/ARM/sbfx.ll
index 923f52a..6f1d87d 100644
--- a/test/CodeGen/ARM/sbfx.ll
+++ b/test/CodeGen/ARM/sbfx.ll
@@ -35,3 +35,13 @@ entry:
%tmp2 = lshr i32 %tmp, 29
ret i32 %tmp2
}
+
+define i32 @f5(i32 %a) {
+entry:
+; CHECK: f5:
+; CHECK-NOT: sbfx
+; CHECK: bx
+ %tmp = shl i32 %a, 3
+ %tmp2 = ashr i32 %tmp, 1
+ ret i32 %tmp2
+}
OpenPOWER on IntegriCloud