mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
inappropriate since it lost its Mask parameter in r154011. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208811 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
405 B
LLVM
21 lines
405 B
LLVM
; RUN: llc < %s -march=x86-64 | grep testb
|
|
|
|
; Make sure dagcombine doesn't eliminate the comparison due
|
|
; to an off-by-one bug with computeKnownBits information.
|
|
|
|
declare void @qux()
|
|
|
|
define void @foo(i32 %a) {
|
|
%t0 = lshr i32 %a, 23
|
|
br label %next
|
|
next:
|
|
%t1 = and i32 %t0, 256
|
|
%t2 = icmp eq i32 %t1, 0
|
|
br i1 %t2, label %true, label %false
|
|
true:
|
|
call void @qux()
|
|
ret void
|
|
false:
|
|
ret void
|
|
}
|