You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
382 B
17 lines
382 B
; RUN: opt -mtriple i686-windows-itanium -O2 -o - %s | llvm-dis | FileCheck %s
|
|
|
|
target triple = "i686-windows-itanium"
|
|
|
|
declare dllimport double @floor(double)
|
|
|
|
define dllexport float @test(float %f) {
|
|
%conv = fpext float %f to double
|
|
%call = tail call double @floor(double %conv)
|
|
%cast = fptrunc double %call to float
|
|
ret float %cast
|
|
}
|
|
|
|
; CHECK-NOT: floorf
|
|
; CHECK: floor
|
|
|