2013-04-19 21:20:56 +00:00
|
|
|
; RUN: llc -mtriple="i386-pc-mingw32" < %s | FileCheck %s
|
2010-02-12 15:29:13 +00:00
|
|
|
; PR5851
|
|
|
|
|
|
|
|
%0 = type { void (...)* }
|
|
|
|
|
|
|
|
define internal x86_stdcallcc void @MyFunc() nounwind {
|
|
|
|
entry:
|
2013-10-18 02:14:40 +00:00
|
|
|
; CHECK: MyFunc@0:
|
2013-04-19 21:20:56 +00:00
|
|
|
; CHECK: ret
|
2010-02-12 15:29:13 +00:00
|
|
|
ret void
|
|
|
|
}
|
2013-04-19 21:20:56 +00:00
|
|
|
|
|
|
|
; PR14410
|
|
|
|
define x86_stdcallcc i32 @"\01DoNotMangle"(i32 %a) {
|
|
|
|
; CHECK: DoNotMangle:
|
|
|
|
; CHECK: ret $4
|
|
|
|
entry:
|
|
|
|
ret i32 %a
|
|
|
|
}
|
|
|
|
|
|
|
|
@B = global %0 { void (...)* bitcast (void ()* @MyFunc to void (...)*) }, align 4
|
|
|
|
; CHECK: _B:
|
2013-10-18 02:14:40 +00:00
|
|
|
; CHECK: .long _MyFunc@0
|
2013-04-19 21:20:56 +00:00
|
|
|
|