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