mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
Testcase for r151691.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151694 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e1b66f1145
commit
37c02bce27
19
test/Transforms/InstCombine/2012-02-28-ICmp.ll
Normal file
19
test/Transforms/InstCombine/2012-02-28-ICmp.ll
Normal file
@ -0,0 +1,19 @@
|
||||
; RUN: opt < %s -instcombine -S | FileCheck %s
|
||||
; <rdar://problem/10803154>
|
||||
|
||||
; There should be no transformation.
|
||||
; CHECK: %a = trunc i32 %x to i8
|
||||
; CHECK: %b = icmp ne i8 %a, 0
|
||||
; CHECK: %c = and i32 %x, 16711680
|
||||
; CHECK: %d = icmp ne i32 %c, 0
|
||||
; CHECK: %e = and i1 %b, %d
|
||||
; CHECK: ret i1 %e
|
||||
|
||||
define i1 @f1(i32 %x) {
|
||||
%a = trunc i32 %x to i8
|
||||
%b = icmp ne i8 %a, 0
|
||||
%c = and i32 %x, 16711680
|
||||
%d = icmp ne i32 %c, 0
|
||||
%e = and i1 %b, %d
|
||||
ret i1 %e
|
||||
}
|
Loading…
Reference in New Issue
Block a user