forked from OSchip/llvm-project
parent
8f804fc07d
commit
642637aab4
|
@ -36,7 +36,7 @@ bb:
|
|||
}
|
||||
; CHECK-LABEL: @caller1
|
||||
; CHECK: codeRepl.i:
|
||||
; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.2_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg)
|
||||
; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.3_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg)
|
||||
|
||||
define i32 @caller2(i32 %arg, float %arg2) {
|
||||
bb:
|
||||
|
@ -46,7 +46,7 @@ bb:
|
|||
|
||||
; CHECK-LABEL: @caller2
|
||||
; CHECK: codeRepl.i:
|
||||
; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.2_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg, i32 10, float %arg2)
|
||||
; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.3_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg, i32 10, float %arg2)
|
||||
|
||||
; Test case to check that we do not extract a vararg function, if va_end is in
|
||||
; a block that is not outlined.
|
||||
|
@ -98,9 +98,10 @@ cleanup: ; preds = %entry
|
|||
|
||||
define i32* @caller_with_signext(i32* %foo) {
|
||||
entry:
|
||||
%call1 = tail call signext i32 (i32*, ...) @varargs2(i32* %foo, i32 signext 8)
|
||||
%call1 = tail call signext i32 (i32*, ...) @vararg2(i32* %foo, i32 signext 8)
|
||||
unreachable
|
||||
}
|
||||
|
||||
; CHECK-LABEL: @caller_with_signext
|
||||
; CHECK: codeRepl.i:
|
||||
; CHECK-NEXT: call void (i32*, ...) @callee.1_cond.end(i32* %foo, i32 signext 8)
|
||||
; CHECK-NEXT: call void (i32*, ...) @vararg2.1_cond.end(i32* %foo, i32 signext 8)
|
||||
|
|
Loading…
Reference in New Issue