2013-12-09 20:44:48 +00: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-01 16:29:22 +00:00
|
|
|
|
|
|
|
; Check that a fastcall function gets correct mangling
|
|
|
|
|
2008-02-21 07:42:26 +00:00
|
|
|
define x86_fastcallcc void @func(i64 %X, i8 %Y, i8 %G, i16 %Z) {
|
2013-12-09 20:44:48 +00:00
|
|
|
; CHECK32-LABEL: {{^}}@func@20:
|
|
|
|
; CHECK64-LABEL: {{^}}func:
|
2008-02-21 07:42:26 +00:00
|
|
|
ret void
|
2007-03-01 16:29:22 +00:00
|
|
|
}
|
2008-02-21 07:42:26 +00:00
|
|
|
|
2013-04-19 21:20:56 +00:00
|
|
|
define x86_fastcallcc i32 @"\01DoNotMangle"(i32 %a) {
|
2013-12-09 20:44:48 +00:00
|
|
|
; CHECK32-LABEL: {{^}}DoNotMangle:
|
|
|
|
; CHECK64-LABEL: {{^}}DoNotMangle:
|
2013-04-19 21:20:56 +00:00
|
|
|
entry:
|
|
|
|
ret i32 %a
|
|
|
|
}
|
2014-01-29 02:30:38 +00: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:
|
2015-03-17 23:54:51 +00:00
|
|
|
; CHECK64-LABEL: {{^}}LdontCrash:
|
2014-01-29 02:30:38 +00:00
|
|
|
ret void
|
|
|
|
}
|