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