mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-31 07:52:55 +01:00
d714d8ebe8
CustomLowerNode was not being called during SplitVectorOperand, meaning custom legalization could not be used by targets. This also adds a test case for NVPTX that depends on this custom legalization. Differential Revision: http://llvm-reviews.chandlerc.com/D1195 Attempt to fix the buildbots by making the X86 test I just added platform independent llvm-svn: 187202
14 lines
485 B
LLVM
14 lines
485 B
LLVM
; RUN: llc < %s -march=x86-64 -mattr=+sse41,-avx -soft-float=0 | FileCheck %s --check-prefix=CHECK-HARD-FLOAT
|
|
; RUN: llc < %s -march=x86-64 -mattr=+sse41,-avx -soft-float=1 | FileCheck %s --check-prefix=CHECK-SOFT-FLOAT
|
|
|
|
target triple = "x86_64-unknown-linux-gnu"
|
|
|
|
declare float @llvm.floor.f32(float)
|
|
|
|
; CHECK-SOFT-FLOAT: callq floorf
|
|
; CHECK-HARD-FLOAT: roundss $1, %xmm0, %xmm0
|
|
define float @myfloor(float %a) {
|
|
%val = tail call float @llvm.floor.f32(float %a)
|
|
ret float %val
|
|
}
|