[llvm] b609163 - [RISCV] Update stack-folding.ll test

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 23:36:09 PDT 2024


Author: Luke Lau
Date: 2024-10-01T14:35:10+08:00
New Revision: b6091632e77c1dc89d27d5d59386e2c8fdc9ee69

URL: https://github.com/llvm/llvm-project/commit/b6091632e77c1dc89d27d5d59386e2c8fdc9ee69
DIFF: https://github.com/llvm/llvm-project/commit/b6091632e77c1dc89d27d5d59386e2c8fdc9ee69.diff

LOG: [RISCV] Update stack-folding.ll test

It needs updated after #110312. Hopefully this fixes the buildbot failures

Added: 
    

Modified: 
    llvm/test/CodeGen/RISCV/rvv/stack-folding.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/RISCV/rvv/stack-folding.ll b/llvm/test/CodeGen/RISCV/rvv/stack-folding.ll
index 0b218bbc6fd963..70fcabe59889fb 100644
--- a/llvm/test/CodeGen/RISCV/rvv/stack-folding.ll
+++ b/llvm/test/CodeGen/RISCV/rvv/stack-folding.ll
@@ -249,9 +249,8 @@ define half @f16(<vscale x 1 x half> %v, i1 %c) {
 ; ZFMIN-NEXT:    addi sp, sp, -16
 ; ZFMIN-NEXT:    .cfi_def_cfa_offset 16
 ; ZFMIN-NEXT:    csrr a1, vlenb
-; ZFMIN-NEXT:    slli a1, a1, 1
 ; ZFMIN-NEXT:    sub sp, sp, a1
-; ZFMIN-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x02, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 2 * vlenb
+; ZFMIN-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x01, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 1 * vlenb
 ; ZFMIN-NEXT:    addi a1, sp, 16
 ; ZFMIN-NEXT:    vs1r.v v8, (a1) # Unknown-size Folded Spill
 ; ZFMIN-NEXT:    andi a0, a0, 1
@@ -265,7 +264,6 @@ define half @f16(<vscale x 1 x half> %v, i1 %c) {
 ; ZFMIN-NEXT:    fmv.h.x fa0, zero
 ; ZFMIN-NEXT:  .LBB6_3: # %falsebb
 ; ZFMIN-NEXT:    csrr a0, vlenb
-; ZFMIN-NEXT:    slli a0, a0, 1
 ; ZFMIN-NEXT:    add sp, sp, a0
 ; ZFMIN-NEXT:    addi sp, sp, 16
 ; ZFMIN-NEXT:    ret
@@ -275,9 +273,8 @@ define half @f16(<vscale x 1 x half> %v, i1 %c) {
 ; NOZFMIN-NEXT:    addi sp, sp, -16
 ; NOZFMIN-NEXT:    .cfi_def_cfa_offset 16
 ; NOZFMIN-NEXT:    csrr a1, vlenb
-; NOZFMIN-NEXT:    slli a1, a1, 1
 ; NOZFMIN-NEXT:    sub sp, sp, a1
-; NOZFMIN-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x02, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 2 * vlenb
+; NOZFMIN-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x01, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 1 * vlenb
 ; NOZFMIN-NEXT:    addi a1, sp, 16
 ; NOZFMIN-NEXT:    vs1r.v v8, (a1) # Unknown-size Folded Spill
 ; NOZFMIN-NEXT:    andi a0, a0, 1
@@ -294,7 +291,6 @@ define half @f16(<vscale x 1 x half> %v, i1 %c) {
 ; NOZFMIN-NEXT:  .LBB6_3: # %falsebb
 ; NOZFMIN-NEXT:    fmv.w.x fa0, a0
 ; NOZFMIN-NEXT:    csrr a0, vlenb
-; NOZFMIN-NEXT:    slli a0, a0, 1
 ; NOZFMIN-NEXT:    add sp, sp, a0
 ; NOZFMIN-NEXT:    addi sp, sp, 16
 ; NOZFMIN-NEXT:    ret
@@ -313,9 +309,8 @@ define bfloat @bf16(<vscale x 2 x bfloat> %v, i1 %c) {
 ; ZFMIN-NEXT:    addi sp, sp, -16
 ; ZFMIN-NEXT:    .cfi_def_cfa_offset 16
 ; ZFMIN-NEXT:    csrr a1, vlenb
-; ZFMIN-NEXT:    slli a1, a1, 1
 ; ZFMIN-NEXT:    sub sp, sp, a1
-; ZFMIN-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x02, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 2 * vlenb
+; ZFMIN-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x01, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 1 * vlenb
 ; ZFMIN-NEXT:    addi a1, sp, 16
 ; ZFMIN-NEXT:    vs1r.v v8, (a1) # Unknown-size Folded Spill
 ; ZFMIN-NEXT:    andi a0, a0, 1
@@ -330,7 +325,6 @@ define bfloat @bf16(<vscale x 2 x bfloat> %v, i1 %c) {
 ; ZFMIN-NEXT:    fmv.h.x fa0, zero
 ; ZFMIN-NEXT:  .LBB7_3: # %falsebb
 ; ZFMIN-NEXT:    csrr a0, vlenb
-; ZFMIN-NEXT:    slli a0, a0, 1
 ; ZFMIN-NEXT:    add sp, sp, a0
 ; ZFMIN-NEXT:    addi sp, sp, 16
 ; ZFMIN-NEXT:    ret
@@ -340,9 +334,8 @@ define bfloat @bf16(<vscale x 2 x bfloat> %v, i1 %c) {
 ; NOZFMIN-NEXT:    addi sp, sp, -16
 ; NOZFMIN-NEXT:    .cfi_def_cfa_offset 16
 ; NOZFMIN-NEXT:    csrr a1, vlenb
-; NOZFMIN-NEXT:    slli a1, a1, 1
 ; NOZFMIN-NEXT:    sub sp, sp, a1
-; NOZFMIN-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x02, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 2 * vlenb
+; NOZFMIN-NEXT:    .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x01, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 1 * vlenb
 ; NOZFMIN-NEXT:    addi a1, sp, 16
 ; NOZFMIN-NEXT:    vs1r.v v8, (a1) # Unknown-size Folded Spill
 ; NOZFMIN-NEXT:    andi a0, a0, 1
@@ -359,7 +352,6 @@ define bfloat @bf16(<vscale x 2 x bfloat> %v, i1 %c) {
 ; NOZFMIN-NEXT:  .LBB7_3: # %falsebb
 ; NOZFMIN-NEXT:    fmv.w.x fa0, a0
 ; NOZFMIN-NEXT:    csrr a0, vlenb
-; NOZFMIN-NEXT:    slli a0, a0, 1
 ; NOZFMIN-NEXT:    add sp, sp, a0
 ; NOZFMIN-NEXT:    addi sp, sp, 16
 ; NOZFMIN-NEXT:    ret


        


More information about the llvm-commits mailing list