1 ; RUN: llc < %s -march=x86-64 -mattr=+sse4.1,-avx -soft-float=0 | FileCheck %s --check-prefix=CHECK-HARD-FLOAT 2 ; RUN: llc < %s -march=x86-64 -mattr=+sse4.1,-avx -soft-float=1 | FileCheck %s --check-prefix=CHECK-SOFT-FLOAT 3 4 target triple = "x86_64-unknown-linux-gnu" 5 6 declare float @llvm.floor.f32(float) 7 8 ; CHECK-SOFT-FLOAT: callq floorf 9 ; CHECK-HARD-FLOAT: roundss $1, %xmm0, %xmm0 10 define float @myfloor(float %a) { 11 %val = tail call float @llvm.floor.f32(float %a) 12 ret float %val 13 } 14