blob: b6fb7dfc72c6568993c9486993bbcaeddf01a16a [file] [log] [blame]
Dan Gohman13376272009-03-31 01:38:29 +00001; RUN: llvm-as < %s | llc -march=x86-64 | grep testl
2
3; Make sure dagcombine doesn't eliminate the comparison due
4; to an off-by-one bug with ComputeMaskedBits information.
5
6declare void @qux()
7
8define void @foo(i32 %a) {
9 %t0 = lshr i32 %a, 23
10 br label %next
11next:
12 %t1 = and i32 %t0, 256
13 %t2 = icmp eq i32 %t1, 0
14 br i1 %t2, label %true, label %false
15true:
16 call void @qux()
17 ret void
18false:
19 ret void
20}