2013-12-10 04:44:48 +08:00
|
|
|
; RUN: llc < %s -mtriple=i386-unknown-mingw32 | \
|
|
|
|
; RUN: FileCheck --check-prefix=CHECK32 %s
|
|
|
|
|
|
|
|
; RUN: llc < %s -mtriple=i386-unknown-win32 | \
|
|
|
|
; RUN: FileCheck --check-prefix=CHECK32 %s
|
|
|
|
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-mingw32 | \
|
|
|
|
; RUN: FileCheck --check-prefix=CHECK64 %s
|
|
|
|
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown-mingw32 | \
|
|
|
|
; RUN: FileCheck --check-prefix=CHECK64 %s
|
2007-03-02 00:29:22 +08:00
|
|
|
|
|
|
|
; Check that a fastcall function gets correct mangling
|
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
define x86_fastcallcc void @func(i64 %X, i8 %Y, i8 %G, i16 %Z) {
|
2013-12-10 04:44:48 +08:00
|
|
|
; CHECK32-LABEL: {{^}}@func@20:
|
|
|
|
; CHECK64-LABEL: {{^}}func:
|
2008-02-21 15:42:26 +08:00
|
|
|
ret void
|
2007-03-02 00:29:22 +08:00
|
|
|
}
|
2008-02-21 15:42:26 +08:00
|
|
|
|
2013-04-20 05:20:56 +08:00
|
|
|
define x86_fastcallcc i32 @"\01DoNotMangle"(i32 %a) {
|
2013-12-10 04:44:48 +08:00
|
|
|
; CHECK32-LABEL: {{^}}DoNotMangle:
|
|
|
|
; CHECK64-LABEL: {{^}}DoNotMangle:
|
2013-04-20 05:20:56 +08:00
|
|
|
entry:
|
|
|
|
ret i32 %a
|
|
|
|
}
|
2014-01-29 10:30:38 +08:00
|
|
|
|
|
|
|
define private x86_fastcallcc void @dontCrash() {
|
|
|
|
; The name is fairly arbitrary since it is private. Just don't crash.
|
|
|
|
; CHECK32-LABEL: {{^}}L@dontCrash@0:
|
|
|
|
; CHECK64-LABEL: {{^}}.LdontCrash:
|
|
|
|
ret void
|
|
|
|
}
|