• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -march=x86-64 | grep testb
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}
21