aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/ARM/sbfx.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-15 05:28:43 +0000
committerChris Lattner <sabre@nondot.org>2010-04-15 05:28:43 +0000
commitefcddc33256512a08d7182783e2262da27f27cdd (patch)
tree226d1a8b111b0e4fcf7ca88b4f9e5a81daa135f2 /test/CodeGen/ARM/sbfx.ll
parent2392ae7d7344674dc3d946e324342515f4771b90 (diff)
downloadexternal_llvm-efcddc33256512a08d7182783e2262da27f27cdd.zip
external_llvm-efcddc33256512a08d7182783e2262da27f27cdd.tar.gz
external_llvm-efcddc33256512a08d7182783e2262da27f27cdd.tar.bz2
add a simple dag combine to replace trivial shl+lshr with
and. This happens with the store->load narrowing stuff. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101348 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/ARM/sbfx.ll')
-rw-r--r--test/CodeGen/ARM/sbfx.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGen/ARM/sbfx.ll b/test/CodeGen/ARM/sbfx.ll
index 6f1d87d..d29693e 100644
--- a/test/CodeGen/ARM/sbfx.ll
+++ b/test/CodeGen/ARM/sbfx.ll
@@ -12,7 +12,7 @@ entry:
define i32 @f2(i32 %a) {
entry:
; CHECK: f2:
-; CHECK: ubfx r0, r0, #0, #20
+; CHECK: bfc r0, #20, #12
%tmp = shl i32 %a, 12
%tmp2 = lshr i32 %tmp, 12
ret i32 %tmp2