summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
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
commitf9b2e3c68acb7a8188b5bd735216d207279bae9d (patch)
treeee147fd21d6a0e2c9bf2572cae1cad0b814f678c /llvm/test/CodeGen
parent9c78d63fbcc514050ea341a86f000ca1d463fbb5 (diff)
downloadbcm5719-llvm-f9b2e3c68acb7a8188b5bd735216d207279bae9d.tar.gz
bcm5719-llvm-f9b2e3c68acb7a8188b5bd735216d207279bae9d.zip
add a simple dag combine to replace trivial shl+lshr with
and. This happens with the store->load narrowing stuff. llvm-svn: 101348
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/ARM/sbfx.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/ARM/sbfx.ll b/llvm/test/CodeGen/ARM/sbfx.ll
index 6f1d87d2c17..d29693e4cf9 100644
--- a/llvm/test/CodeGen/ARM/sbfx.ll
+++ b/llvm/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
OpenPOWER on IntegriCloud