diff options
author | Chris Lattner <sabre@nondot.org> | 2010-04-15 05:28:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-04-15 05:28:43 +0000 |
commit | f9b2e3c68acb7a8188b5bd735216d207279bae9d (patch) | |
tree | ee147fd21d6a0e2c9bf2572cae1cad0b814f678c /llvm/test/CodeGen/ARM/sbfx.ll | |
parent | 9c78d63fbcc514050ea341a86f000ca1d463fbb5 (diff) | |
download | bcm5719-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/ARM/sbfx.ll')
-rw-r--r-- | llvm/test/CodeGen/ARM/sbfx.ll | 2 |
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 |