1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

update test to use FileCheck

llvm-svn: 271838
This commit is contained in:
Sanjay Patel 2016-06-05 16:41:20 +00:00
parent 7c1912623f
commit 24556cdcec

View File

@ -1,17 +1,22 @@
; RUN: opt < %s -instcombine -S | grep "%C = xor i1 %A, true"
; RUN: opt < %s -instcombine -S | grep "ret i1 false"
; PR2539
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt < %s -instcombine -S | FileCheck %s
define i1 @test1(i1 %A) {
%B = zext i1 %A to i32
%C = icmp slt i32 %B, 1
ret i1 %C
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 @test2(i1 zeroext %b) {
entry:
%cmptmp = icmp slt i1 %b, true ; <i1> [#uses=1]
ret i1 %cmptmp
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
}