Skip to content

Commit 9240f37

Browse files
committed
Remove attributes, add nounwind to test
I think the p670 scheduling model is needed to get the two vsetvlis beside each other to trigger the bug. I couldn't find a way to recreate the crash without it.
1 parent 0db41da commit 9240f37

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

llvm/test/CodeGen/RISCV/rvv/pr141907.ll

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2-
; RUN: llc < %s -verify-machineinstrs | FileCheck %s
2+
; RUN: llc -mtriple=riscv64 -mcpu=sifive-p670 | FileCheck %s
33

4-
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
5-
target triple = "riscv64-unknown-linux-gnu"
6-
7-
define void @pr141907(ptr %0) #0 {
4+
define void @pr141907(ptr %0) nounwind {
85
; CHECK-LABEL: pr141907:
96
; CHECK: # %bb.0: # %entry
107
; CHECK-NEXT: addi sp, sp, -16
11-
; CHECK-NEXT: .cfi_def_cfa_offset 16
128
; CHECK-NEXT: csrr a1, vlenb
139
; CHECK-NEXT: slli a1, a1, 2
1410
; CHECK-NEXT: sub sp, sp, a1
15-
; CHECK-NEXT: .cfi_escape 0x0f, 0x0d, 0x72, 0x00, 0x11, 0x10, 0x22, 0x11, 0x04, 0x92, 0xa2, 0x38, 0x00, 0x1e, 0x22 # sp + 16 + 4 * vlenb
1611
; CHECK-NEXT: vsetivli zero, 0, e32, m1, ta, ma
1712
; CHECK-NEXT: vmv.v.i v9, 0
1813
; CHECK-NEXT: vmclr.m v0
@@ -59,5 +54,3 @@ while.body5: ; preds = %while.body5, %vecto
5954
store i16 %cond52, ptr %0, align 2
6055
br label %while.body5
6156
}
62-
63-
attributes #0 = { "target-cpu"="sifive-p670" "target-features"="+64bit,+a,+c,+d,+experimental,+f,+m,+relax,+unaligned-scalar-mem,+unaligned-vector-mem,+v,+xsifivecdiscarddlone,+xsifivecflushdlone,+za64rs,+zaamo,+zalrsc,+zba,+zbb,+zbs,+zca,+zcd,+zfhmin,+zic64b,+zicbom,+zicbop,+zicboz,+ziccamoa,+ziccif,+zicclsm,+ziccrse,+zicsr,+zifencei,+zihintntl,+zihintpause,+zihpm,+zmmul,+zvbb,+zvbc,+zve32f,+zve32x,+zve64d,+zve64f,+zve64x,+zvkb,+zvkg,+zvkn,+zvknc,+zvkned,+zvkng,+zvknhb,+zvks,+zvksc,+zvksed,+zvksg,+zvksh,+zvkt,+zvl128b,+zvl32b,+zvl64b,-b,-e,-experimental-p,-experimental-smctr" }

0 commit comments

Comments
 (0)