mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
707a6e74b7
Rename the enum value from X86_64_Win64 to plain Win64. The symbol exposed in the textual IR is changed from 'x86_64_win64cc' to 'win64cc', but the numeric value is kept, keeping support for old bitcode. Differential Revision: https://reviews.llvm.org/D34474 llvm-svn: 308208
29 lines
757 B
LLVM
29 lines
757 B
LLVM
; RUN: llc < %s -mtriple=x86_64-pc-win32 | FileCheck %s
|
|
; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
|
|
|
|
; Check that, if a Win64 ABI function calls a SysV ABI function, all the
|
|
; Win64 nonvolatile registers get saved.
|
|
|
|
; CHECK-LABEL: bar:
|
|
define win64cc void @bar(i32 %a, i32 %b) {
|
|
; CHECK-DAG: pushq %rdi
|
|
; CHECK-DAG: pushq %rsi
|
|
; CHECK-DAG: movaps %xmm6,
|
|
; CHECK-DAG: movaps %xmm7,
|
|
; CHECK-DAG: movaps %xmm8,
|
|
; CHECK-DAG: movaps %xmm9,
|
|
; CHECK-DAG: movaps %xmm10,
|
|
; CHECK-DAG: movaps %xmm11,
|
|
; CHECK-DAG: movaps %xmm12,
|
|
; CHECK-DAG: movaps %xmm13,
|
|
; CHECK-DAG: movaps %xmm14,
|
|
; CHECK-DAG: movaps %xmm15,
|
|
; CHECK: callq foo
|
|
; CHECK: ret
|
|
call x86_64_sysvcc void @foo(i32 %a, i32 %b)
|
|
ret void
|
|
}
|
|
|
|
declare x86_64_sysvcc void @foo(i32 %a, i32 %b)
|
|
|