summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/2008-03-06-frem-fpstack.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-07 06:36:32 +0000
committerChris Lattner <sabre@nondot.org>2008-03-07 06:36:32 +0000
commitd1108222fd7b49d660fa63868cd2428fa1d49c17 (patch)
tree0830e6b4e68d92245e7d4a29d4973fc57ddb99c1 /test/CodeGen/X86/2008-03-06-frem-fpstack.ll
parent65bc1220459aef4a7a1bd57cdc0f0113d4250469 (diff)
downloadllvm-d1108222fd7b49d660fa63868cd2428fa1d49c17.tar.gz
llvm-d1108222fd7b49d660fa63868cd2428fa1d49c17.tar.bz2
llvm-d1108222fd7b49d660fa63868cd2428fa1d49c17.tar.xz
mark frem as expand for all legal fp types on x86, regardless of whether
we're using SSE or not. This fixes PR2122. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/2008-03-06-frem-fpstack.ll')
-rw-r--r--test/CodeGen/X86/2008-03-06-frem-fpstack.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2008-03-06-frem-fpstack.ll b/test/CodeGen/X86/2008-03-06-frem-fpstack.ll
new file mode 100644
index 0000000000..2d7182e733
--- /dev/null
+++ b/test/CodeGen/X86/2008-03-06-frem-fpstack.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 -mcpu=i386
+; PR2122
+define float @func(float %a, float %b) nounwind {
+entry:
+ %tmp3 = frem float %a, %b ; <float> [#uses=1]
+ ret float %tmp3
+}