Skip to content

Commit ec61aa4

Browse files
committed
[LV] Generate CHECK lines for crash for completeness
1 parent 221e511 commit ec61aa4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

llvm/test/Transforms/LoopVectorize/AArch64/sve2-histcnt.ll

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -756,6 +756,16 @@ for.exit:
756756
; The histogram operation generates vectors. This example used to crash
757757
; due to a missing entry in a switch statement.
758758
define void @histogram_generates_vectors_crash(ptr %data_array) {
759+
; CHECK-LABEL: define void @histogram_generates_vectors_crash(
760+
; CHECK-SAME: ptr [[DATA_ARRAY:%.*]]) {
761+
; CHECK-NEXT: entry:
762+
; CHECK-NEXT: br label [[FOR_BODY:%.*]]
763+
; CHECK: for.body:
764+
; CHECK-NEXT: store i1 true, ptr poison, align 1
765+
; CHECK-NEXT: br i1 poison, label [[FOR_EXIT:%.*]], label [[FOR_BODY]]
766+
; CHECK: for.exit:
767+
; CHECK-NEXT: ret void
768+
;
759769
entry:
760770
br label %for.body
761771

0 commit comments

Comments
 (0)