llvm.org GIT mirror llvm / 5cc819f
[PartialInliner] Update test (NFC). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@324199 91177308-0d34-0410-b5e6-96231b3b80d8 Florian Hahn 1 year, 7 months ago
1 changed file(s) with 5 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
3535 }
3636 ; CHECK-LABEL: @caller1
3737 ; CHECK: codeRepl.i:
38 ; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.2_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg)
38 ; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.3_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg)
3939
4040 define i32 @caller2(i32 %arg, float %arg2) {
4141 bb:
4545
4646 ; CHECK-LABEL: @caller2
4747 ; CHECK: codeRepl.i:
48 ; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.2_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg, i32 10, float %arg2)
48 ; CHECK-NEXT: call void (i32, i8**, i32, ...) @vararg.3_bb1(i32 %stat1.i, i8** %vargs.i, i32 %arg, i32 10, float %arg2)
4949
5050 ; Test case to check that we do not extract a vararg function, if va_end is in
5151 ; a block that is not outlined.
9797
9898 define i32* @caller_with_signext(i32* %foo) {
9999 entry:
100 %call1 = tail call signext i32 (i32*, ...) @varargs2(i32* %foo, i32 signext 8)
100 %call1 = tail call signext i32 (i32*, ...) @vararg2(i32* %foo, i32 signext 8)
101101 unreachable
102102 }
103
103104 ; CHECK-LABEL: @caller_with_signext
104105 ; CHECK: codeRepl.i:
105 ; CHECK-NEXT: call void (i32*, ...) @callee.1_cond.end(i32* %foo, i32 signext 8)
106 ; CHECK-NEXT: call void (i32*, ...) @vararg2.1_cond.end(i32* %foo, i32 signext 8)