mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-08 05:16:53 +00:00
Removed use of grep from test and moved it to be with other icmp tests
llvm-svn: 145570
This commit is contained in:
parent
7e03b7250d
commit
d4569610df
@ -1,10 +0,0 @@
|
||||
; RUN: opt < %s -instcombine -S | grep -v {select}
|
||||
|
||||
define zeroext i1 @cmpabs(i64 %val) nounwind uwtable readnone ssp {
|
||||
entry:
|
||||
%sub = sub nsw i64 0, %val
|
||||
%cmp = icmp slt i64 %val, 0
|
||||
%sub.val = select i1 %cmp, i64 %sub, i64 %val
|
||||
%tobool = icmp ne i64 %sub.val, 0
|
||||
ret i1 %tobool
|
||||
}
|
@ -559,3 +559,14 @@ define i1 @test57(i32 %a) {
|
||||
call void @foo(i32 %and)
|
||||
ret i1 %cmp
|
||||
}
|
||||
|
||||
; rdar://problem/10482509
|
||||
; CHECK: @cmpabs
|
||||
; CHECK-NEXT: icmp ne
|
||||
define zeroext i1 @cmpabs(i64 %val) {
|
||||
%sub = sub nsw i64 0, %val
|
||||
%cmp = icmp slt i64 %val, 0
|
||||
%sub.val = select i1 %cmp, i64 %sub, i64 %val
|
||||
%tobool = icmp ne i64 %sub.val, 0
|
||||
ret i1 %tobool
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user