Skip to content

Commit c1fe305

Browse files
committed
[Test] Add XFAIL test for PR62058
Details at llvm#62058
1 parent c91ff4f commit c1fe305

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+
; RUN: opt < %s -simple-loop-unswitch-inject-invariant-conditions=true -passes='loop(simple-loop-unswitch<nontrivial>)' -S | FileCheck %s
2+
; REQUIRES: asserts
3+
; XFAIL: *
4+
5+
@global = external dso_local local_unnamed_addr global i64, align 8
6+
7+
define dso_local void @test() local_unnamed_addr #0 {
8+
; CHECK-LABEL: test
9+
bb:
10+
br label %bb1
11+
12+
bb1: ; preds = %bb1, %bb
13+
%call = tail call noundef ptr @widget()
14+
%icmp = icmp slt ptr %call, null
15+
br i1 %icmp, label %bb2, label %bb1
16+
17+
bb2: ; preds = %bb1
18+
ret void
19+
}
20+
21+
declare ptr @widget() local_unnamed_addr #0

0 commit comments

Comments
 (0)