2019-04-06 04:18:25 +08:00
|
|
|
; RUN: llc -mtriple x86_64-- -filetype asm -o - %s | FileCheck %s
|
|
|
|
; RUN: llc -mtriple x86_64-unknown-windows-msvc -filetype asm -o - %s | FileCheck %s --check-prefix=MSVC
|
2017-09-21 05:00:40 +08:00
|
|
|
|
|
|
|
define swiftcc void @f() {
|
|
|
|
%1 = alloca i8
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2019-04-06 04:18:25 +08:00
|
|
|
; MSVC-LABEL: f
|
|
|
|
; MSVC: .seh_stackalloc 8
|
|
|
|
; MSVC: .seh_endprologue
|
2017-09-21 05:00:40 +08:00
|
|
|
|
2019-04-06 04:18:25 +08:00
|
|
|
declare swiftcc i64 @myFunc()
|
|
|
|
define swiftcc i64 @myFunc2() nounwind {
|
|
|
|
%r = tail call swiftcc i64 @myFunc()
|
|
|
|
ret i64 %r
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK-LABEL: myFunc2
|
|
|
|
; CHECK: jmp myFunc
|
|
|
|
; CHECK-NOT: call
|