blob: 154f3ba65e973ff6990d579298cca113491f4cce [file] [log] [blame]
Chris Lattnere2953062003-06-05 20:12:32 +00001; This testcase causes an infinite loop in the instruction combiner,
2; because it things that the constant value is a not expression... and
3; constantly inverts the branch back and forth.
4;
Dan Gohman18800922009-09-11 18:01:28 +00005; RUN: opt < %s -instcombine -disable-output
Chris Lattnere2953062003-06-05 20:12:32 +00006
Tanya Lattner5640bd12008-03-01 09:15:35 +00007define i8 @test19(i1 %c) {
8 br i1 true, label %True, label %False
9
10True: ; preds = %0
11 ret i8 1
12
13False: ; preds = %0
14 ret i8 3
Chris Lattnere2953062003-06-05 20:12:32 +000015}
16