mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
5c83517500
Summary: Until now, we did this (among other things) based on whether or not the target was Windows. This is clearly wrong, not just for Win64 ABI functions on non-Windows, but for System V ABI functions on Windows, too. In this change, we make this decision based on the ABI the calling convention specifies instead. Reviewers: rnk Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7953 llvm-svn: 230793
10 lines
322 B
LLVM
10 lines
322 B
LLVM
; RUN: llc -mtriple=x86_64-mingw32 < %s | FileCheck %s
|
|
; RUN: llc -mtriple=x86_64-linux < %s | FileCheck %s
|
|
; CHECK-NOT: -{{[1-9][0-9]*}}(%rsp)
|
|
|
|
define x86_64_win64cc x86_fp80 @a(i64 %x) nounwind readnone {
|
|
entry:
|
|
%conv = sitofp i64 %x to x86_fp80 ; <x86_fp80> [#uses=1]
|
|
ret x86_fp80 %conv
|
|
}
|