1
0
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:
David Bolvansky 2019-06-09 14:56:46 +00:00
parent 6c17587199
commit 72adb13a04

View 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(...)