-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CodeGen] Fix FREM on 32-bit MSVC on x86
Patch by Dylan McKay! Differential Revision: http://reviews.llvm.org/D12099 llvm-svn: 246615
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
; 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 | ||
} |