summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/shift-amount-mod.ll
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-12-12 16:19:37 -0500
committerSanjay Patel <spatel@rotateright.com>2019-12-12 16:24:40 -0500
commit9432937190d8c891a93521bed7b9b76397e410e3 (patch)
tree7add16c9ab518dae7ea8ed224b33ab52265b9774 /llvm/test/CodeGen/AArch64/shift-amount-mod.ll
parent4c6c1d0f437194904d6093ca2f94230b6ec49e0b (diff)
downloadbcm5719-llvm-9432937190d8c891a93521bed7b9b76397e410e3.tar.gz
bcm5719-llvm-9432937190d8c891a93521bed7b9b76397e410e3.zip
Revert "[DAGCombiner] fold shift-trunc-shift to shift-mask-trunc"
This reverts commit 8963332c3327daa652ba3e26d35f9109b6991985. There was a logic bug typo in this code, but it wasn't visible in the asm for the tests.
Diffstat (limited to 'llvm/test/CodeGen/AArch64/shift-amount-mod.ll')
-rw-r--r--llvm/test/CodeGen/AArch64/shift-amount-mod.ll3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/AArch64/shift-amount-mod.ll b/llvm/test/CodeGen/AArch64/shift-amount-mod.ll
index 403839044cd..4f6051e2a6c 100644
--- a/llvm/test/CodeGen/AArch64/shift-amount-mod.ll
+++ b/llvm/test/CodeGen/AArch64/shift-amount-mod.ll
@@ -670,7 +670,8 @@ define i64 @reg64_lshr_by_masked_negated_unfolded_add_b(i64 %val, i64 %a, i64 %b
define i32 @t(i64 %x) {
; CHECK-LABEL: t:
; CHECK: // %bb.0:
-; CHECK-NEXT: ubfx x0, x0, #17, #28
+; CHECK-NEXT: lsr x8, x0, #13
+; CHECK-NEXT: ubfx x0, x8, #4, #28
; CHECK-NEXT: // kill: def $w0 killed $w0 killed $x0
; CHECK-NEXT: ret
%s = lshr i64 %x, 13
OpenPOWER on IntegriCloud