Merge pull request #1954 from cfallin/b1649432

AArch64: fix shift ops: mask shift amount.
This commit is contained in:
Chris Fallin
2020-07-01 09:33:29 -07:00
committed by GitHub
3 changed files with 18 additions and 2 deletions

View File

@@ -15,3 +15,17 @@ block0(v0: i64):
; nextln: mov sp, fp
; nextln: ldp fp, lr, [sp], #16
; nextln: ret
function %f(i32) -> i32 {
block0(v0: i32):
v1 = iconst.i32 53
v2 = ishl.i32 v0, v1
return v2
}
; check: stp fp, lr, [sp, #-16]!
; nextln: mov fp, sp
; nextln: lsl w0, w0, #21
; nextln: mov sp, fp
; nextln: ldp fp, lr, [sp], #16
; nextln: ret