mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-24 20:29:53 +00:00
cebbf63c6a
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271838 91177308-0d34-0410-b5e6-96231b3b80d8
23 lines
463 B
LLVM
23 lines
463 B
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
|
; RUN: opt < %s -instcombine -S | FileCheck %s
|
|
|
|
define i1 @PR2539_A(i1 %A) {
|
|
; CHECK-LABEL: @PR2539_A(
|
|
; CHECK-NEXT: [[C:%.*]] = xor i1 %A, true
|
|
; CHECK-NEXT: ret i1 [[C]]
|
|
;
|
|
%B = zext i1 %A to i32
|
|
%C = icmp slt i32 %B, 1
|
|
ret i1 %C
|
|
}
|
|
|
|
|
|
define i1 @PR2539_B(i1 zeroext %b) {
|
|
; CHECK-LABEL: @PR2539_B(
|
|
; CHECK-NEXT: ret i1 false
|
|
;
|
|
%cmp = icmp slt i1 %b, true
|
|
ret i1 %cmp
|
|
}
|
|
|