summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fp-stack-compare.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-06 21:37:06 +0000
committerChris Lattner <sabre@nondot.org>2010-11-06 21:37:06 +0000
commitdb28788e4ae01c3fa8003773fc236768e87f6917 (patch)
treefaaf5281bfb720fc6d3261a3e32369aef278b633 /test/CodeGen/X86/fp-stack-compare.ll
parent8c24b0c6996a8f03ff32766f0695dcf19577af59 (diff)
downloadllvm-db28788e4ae01c3fa8003773fc236768e87f6917.tar.gz
llvm-db28788e4ae01c3fa8003773fc236768e87f6917.tar.bz2
llvm-db28788e4ae01c3fa8003773fc236768e87f6917.tar.xz
go to great lengths to work around a GAS bug my previous patch
exposed: GAS doesn't accept "fcomip %st(1)", it requires "fcomip %st(1), %st(0)" even though st(0) is implicit in all other fp stack instructions. Fortunately, there is an alias for fcomip named "fcompi" and gas does accept the default argument for the alias (boggle!). As such, switch the canonical form of this instruction to "pi" instead of "ip". This makes the code generator and disassembler generate pi, avoiding the gas bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/fp-stack-compare.ll')
-rw-r--r--test/CodeGen/X86/fp-stack-compare.ll3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CodeGen/X86/fp-stack-compare.ll b/test/CodeGen/X86/fp-stack-compare.ll
index 4bdf4590b0..b216914d23 100644
--- a/test/CodeGen/X86/fp-stack-compare.ll
+++ b/test/CodeGen/X86/fp-stack-compare.ll
@@ -1,5 +1,4 @@
-; RUN: llc < %s -march=x86 -mcpu=i386 | \
-; RUN: grep {fucomi.*st.\[12\]}
+; RUN: llc < %s -march=x86 -mcpu=i386 | grep {fucompi.*st.\[12\]}
; PR1012
define float @foo(float* %col.2.0) {