mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
[NFC] Added test from PR42084 for D63058
llvm-svn: 362906
This commit is contained in:
parent
6c17587199
commit
72adb13a04
66
test/Transforms/Inline/inline_negative_result.ll
Normal file
66
test/Transforms/Inline/inline_negative_result.ll
Normal file
@ -0,0 +1,66 @@
|
||||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt < %s -inline -S | FileCheck %s
|
||||
|
||||
; PR42084
|
||||
|
||||
define internal fastcc void @func4() {
|
||||
; CHECK-LABEL: @func4(
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: br label [[FOR_COND:%.*]]
|
||||
; CHECK: for.cond:
|
||||
; CHECK-NEXT: tail call void (...) @g()
|
||||
; CHECK-NEXT: br label [[FOR_COND]]
|
||||
;
|
||||
entry:
|
||||
br label %for.cond
|
||||
|
||||
for.cond:
|
||||
tail call void (...) @g()
|
||||
br label %for.cond
|
||||
}
|
||||
|
||||
define internal fastcc void @func3() {
|
||||
; CHECK-LABEL: @func3(
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: tail call fastcc void @func4()
|
||||
; CHECK-NEXT: unreachable
|
||||
;
|
||||
entry:
|
||||
tail call fastcc void @func4()
|
||||
unreachable
|
||||
}
|
||||
|
||||
define internal fastcc void @func2() {
|
||||
; CHECK-LABEL: @func2(
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: tail call fastcc void @func3()
|
||||
; CHECK-NEXT: unreachable
|
||||
;
|
||||
entry:
|
||||
tail call fastcc void @func3()
|
||||
unreachable
|
||||
}
|
||||
|
||||
define internal fastcc void @func1() {
|
||||
; CHECK-LABEL: @func1(
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: tail call fastcc void @func2()
|
||||
; CHECK-NEXT: unreachable
|
||||
;
|
||||
entry:
|
||||
tail call fastcc void @func2()
|
||||
unreachable
|
||||
}
|
||||
|
||||
define i32 @main() {
|
||||
; CHECK-LABEL: @main(
|
||||
; CHECK-NEXT: entry:
|
||||
; CHECK-NEXT: tail call fastcc void @func1()
|
||||
; CHECK-NEXT: unreachable
|
||||
;
|
||||
entry:
|
||||
tail call fastcc void @func1()
|
||||
unreachable
|
||||
}
|
||||
|
||||
declare void @g(...)
|
Loading…
Reference in New Issue
Block a user