[llvm] cfa463f - [RISCV][NFC] Update testcase for D126861
Kito Cheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 9 09:18:25 PDT 2022
Author: Kito Cheng
Date: 2022-06-10T00:18:02+08:00
New Revision: cfa463fdc6953c4fd7c90befc56cda4410cd3a1e
URL: https://github.com/llvm/llvm-project/commit/cfa463fdc6953c4fd7c90befc56cda4410cd3a1e
DIFF: https://github.com/llvm/llvm-project/commit/cfa463fdc6953c4fd7c90befc56cda4410cd3a1e.diff
LOG: [RISCV][NFC] Update testcase for D126861
Added:
Modified:
llvm/test/CodeGen/RISCV/rvv/addi-scalable-offset.mir
llvm/test/CodeGen/RISCV/rvv/rvv-out-arguments.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/RISCV/rvv/addi-scalable-offset.mir b/llvm/test/CodeGen/RISCV/rvv/addi-scalable-offset.mir
index 63b3ead09b65a..07a49366a8dd9 100644
--- a/llvm/test/CodeGen/RISCV/rvv/addi-scalable-offset.mir
+++ b/llvm/test/CodeGen/RISCV/rvv/addi-scalable-offset.mir
@@ -49,9 +49,8 @@ body: |
; CHECK-NEXT: $x10 = ADD $x8, killed $x10
; CHECK-NEXT: $x10 = SUB killed $x10, killed $x11
; CHECK-NEXT: VS1R_V killed renamable $v8, killed renamable $x10
- ; CHECK-NEXT: $x10 = frame-destroy PseudoReadVLENB
- ; CHECK-NEXT: $x10 = frame-destroy SLLI killed $x10, 1
- ; CHECK-NEXT: $x2 = frame-destroy ADD $x2, killed $x10
+ ; CHECK-NEXT: $x2 = frame-destroy ADDI $x8, -2048
+ ; CHECK-NEXT: $x2 = frame-destroy ADDI killed $x2, -224
; CHECK-NEXT: $x2 = frame-destroy ADDI $x2, 240
; CHECK-NEXT: $x1 = LD $x2, 2024 :: (load (s64) from %stack.3)
; CHECK-NEXT: $x8 = LD $x2, 2016 :: (load (s64) from %stack.4)
diff --git a/llvm/test/CodeGen/RISCV/rvv/rvv-out-arguments.ll b/llvm/test/CodeGen/RISCV/rvv/rvv-out-arguments.ll
index bfcdee844ffaf..045bf643501b0 100644
--- a/llvm/test/CodeGen/RISCV/rvv/rvv-out-arguments.ll
+++ b/llvm/test/CodeGen/RISCV/rvv/rvv-out-arguments.ll
@@ -29,9 +29,7 @@ define dso_local void @lots_args(i32 signext %x0, i32 signext %x1, <vscale x 16
; CHECK-NEXT: sw a7, -64(s0)
; CHECK-NEXT: sw t1, -68(s0)
; CHECK-NEXT: sw t0, -72(s0)
-; CHECK-NEXT: csrr a0, vlenb
-; CHECK-NEXT: slli a0, a0, 3
-; CHECK-NEXT: add sp, sp, a0
+; CHECK-NEXT: addi sp, s0, -80
; CHECK-NEXT: ld ra, 72(sp) # 8-byte Folded Reload
; CHECK-NEXT: ld s0, 64(sp) # 8-byte Folded Reload
; CHECK-NEXT: addi sp, sp, 80
@@ -138,9 +136,7 @@ define dso_local signext i32 @main() #0 {
; CHECK-NEXT: call lots_args
; CHECK-NEXT: addi sp, sp, 16
; CHECK-NEXT: li a0, 0
-; CHECK-NEXT: csrr a1, vlenb
-; CHECK-NEXT: slli a1, a1, 3
-; CHECK-NEXT: add sp, sp, a1
+; CHECK-NEXT: addi sp, s0, -112
; CHECK-NEXT: ld ra, 104(sp) # 8-byte Folded Reload
; CHECK-NEXT: ld s0, 96(sp) # 8-byte Folded Reload
; CHECK-NEXT: addi sp, sp, 112
More information about the llvm-commits
mailing list