summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/fast-isel-gep.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/AArch64/fast-isel-gep.ll')
-rw-r--r--llvm/test/CodeGen/AArch64/fast-isel-gep.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AArch64/fast-isel-gep.ll b/llvm/test/CodeGen/AArch64/fast-isel-gep.ll
index 665476969ec..2d38bc44c4e 100644
--- a/llvm/test/CodeGen/AArch64/fast-isel-gep.ll
+++ b/llvm/test/CodeGen/AArch64/fast-isel-gep.ll
@@ -11,7 +11,7 @@ define double* @test_struct(%struct.foo* %f) {
define i32* @test_array1(i32* %a, i64 %i) {
; CHECK-LABEL: test_array1
-; CHECK: orr [[REG:x[0-9]+]], xzr, #0x4
+; CHECK: mov [[REG:x[0-9]+]], #4
; CHECK-NEXT: madd x0, x1, [[REG]], x0
%1 = getelementptr inbounds i32, i32* %a, i64 %i
ret i32* %1
@@ -42,7 +42,7 @@ define i32* @test_array4(i32* %a) {
define i32* @test_array5(i32* %a, i32 %i) {
; CHECK-LABEL: test_array5
; CHECK: sxtw [[REG1:x[0-9]+]], w1
-; CHECK-NEXT: orr [[REG2:x[0-9]+]], xzr, #0x4
+; CHECK-NEXT: mov [[REG2:x[0-9]+]], #4
; CHECK-NEXT: madd {{x[0-9]+}}, [[REG1]], [[REG2]], x0
%1 = getelementptr inbounds i32, i32* %a, i32 %i
ret i32* %1
OpenPOWER on IntegriCloud