blob: 8cd9774983bcdb653666934747bb20bc3f424aa3 [file] [log] [blame]
Sean Callanan2c48df22009-12-18 00:01:26 +00001; RUN: llc < %s -march=x86-64 | grep testb
Dan Gohman13376272009-03-31 01:38:29 +00002
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}