summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-09-07 23:47:14 +0000
committerDan Gohman <gohman@apple.com>2009-09-07 23:47:14 +0000
commitc4d34a74cd602a2a0438efade40a536d67ed38a3 (patch)
tree2c8f7da09927b260b34858fe300bc8c910f72a52 /test
parent466291fd5924c11599be837375214d41ef7f518a (diff)
downloadexternal_llvm-c4d34a74cd602a2a0438efade40a536d67ed38a3.zip
external_llvm-c4d34a74cd602a2a0438efade40a536d67ed38a3.tar.gz
external_llvm-c4d34a74cd602a2a0438efade40a536d67ed38a3.tar.bz2
Fix a thinko: When lowering fneg with xor, bitcast the operands
from floating-point to integer first, and bitcast the result back to floating-point. Previously, this test was passing by falling back to SelectionDAG lowering. The resulting code isn't as nice, but it's correct and CodeGen now stays on the fast path. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81171 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/fast-isel-fneg.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/X86/fast-isel-fneg.ll b/test/CodeGen/X86/fast-isel-fneg.ll
index 41b288b..02c5e4e 100644
--- a/test/CodeGen/X86/fast-isel-fneg.ll
+++ b/test/CodeGen/X86/fast-isel-fneg.ll
@@ -1,14 +1,14 @@
-; RUN: llvm-as < %s | llc -fast-isel -march=x86-64 | FileCheck %s
+; RUN: llvm-as < %s | llc -fast-isel -fast-isel-abort -march=x86-64 | FileCheck %s
; CHECK: doo:
-; CHECK: xorpd
+; CHECK: xor
define double @doo(double %x) nounwind {
%y = fsub double -0.0, %x
ret double %y
}
; CHECK: foo:
-; CHECK: xorps
+; CHECK: xor
define float @foo(float %x) nounwind {
%y = fsub float -0.0, %x
ret float %y