Skip to content

Commit f63389f

Browse files
committed
[LV] Pre-commit test for #125278
1 parent 8639b36 commit f63389f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
; REQUIRES: asserts
2+
; RUN: not --crash opt -passes=loop-vectorize -disable-output %s
3+
4+
define void @pr125278(ptr %dst, i64 %n) {
5+
entry:
6+
%true.ext = zext i1 true to i32
7+
br label %cond
8+
9+
cond:
10+
br label %loop
11+
12+
loop:
13+
%iv = phi i64 [ 0, %cond ], [ %iv.next, %loop ]
14+
%false.ext = zext i1 false to i32
15+
%xor = xor i32 %false.ext, %true.ext
16+
%xor.trunc = trunc i32 %xor to i8
17+
store i8 %xor.trunc, ptr %dst, align 1
18+
%iv.next = add i64 %iv, 1
19+
%cmp = icmp ult i64 %iv.next, %n
20+
br i1 %cmp, label %loop, label %cond
21+
}

0 commit comments

Comments
 (0)