mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
ec0cd29de8
Patch by Dylan McKay! Differential Revision: http://reviews.llvm.org/D12099 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246615 91177308-0d34-0410-b5e6-96231b3b80d8
13 lines
376 B
LLVM
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
|
|
}
|