mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 23:13:27 +00:00
Forgot to add a test for r276008.
llvm-svn: 276082
This commit is contained in:
parent
96bc89c544
commit
ec0def2c4e
18
test/Transforms/FunctionAttrs/returned.ll
Normal file
18
test/Transforms/FunctionAttrs/returned.ll
Normal file
@ -0,0 +1,18 @@
|
||||
; RUN: opt < %s -functionattrs -S | FileCheck %s
|
||||
|
||||
; CHECK: define i32 @test1(i32 %p, i32 %q)
|
||||
define i32 @test1(i32 %p, i32 %q) {
|
||||
entry:
|
||||
%cmp = icmp sgt i32 %p, %q
|
||||
br i1 %cmp, label %cond.end, label %lor.lhs.false
|
||||
|
||||
lor.lhs.false: ; preds = %entry
|
||||
%tobool = icmp ne i32 %p, 0
|
||||
%tobool1 = icmp ne i32 %q, 0
|
||||
%or.cond = and i1 %tobool, %tobool1
|
||||
%p.q = select i1 %or.cond, i32 %p, i32 %q
|
||||
ret i32 %p.q
|
||||
|
||||
cond.end: ; preds = %entry
|
||||
ret i32 %p
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user