From d1108222fd7b49d660fa63868cd2428fa1d49c17 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 7 Mar 2008 06:36:32 +0000 Subject: 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 --- test/CodeGen/X86/2008-03-06-frem-fpstack.ll | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/CodeGen/X86/2008-03-06-frem-fpstack.ll (limited to 'test/CodeGen/X86/2008-03-06-frem-fpstack.ll') 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 ; [#uses=1] + ret float %tmp3 +} -- cgit v1.2.3