Xamarin Public Jenkins (auto-signing) 279aa8f685 Imported Upstream version 5.18.0.246
Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
2019-01-23 08:21:40 +00:00

13 lines
376 B
LLVM

; Make sure that 32-bit FREM is promoted to 64-bit FREM on 32-bit MSVC.
; MSVC does not have a 32-bit fmodf function, so it must be promoted to
; a 64-bit fmod rtlib call.
; RUN: llc -mtriple=i686-pc-windows-msvc -O0 < %s | FileCheck %s
; CHECK: @do_frem32
; CHECK: {{_fmod$}}
define float @do_frem32(float %a, float %b) {
%val = frem float %a, %b
ret float %val
}