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