view test/MC/X86/x86-windows-itanium-libcalls.ll @ 85:5e5d649e25d2

Update LLVM 3.7
author Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
date Thu, 19 Feb 2015 15:19:25 +0900
parents 54457678186b
children
line wrap: on
line source

; 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