projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
LLVM currently represents floating-point negation as -0.0 - x. Fix
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
fast-isel-fneg.ll
1
; RUN: llvm-as < %s | llc -fast-isel -march=x86-64 | FileCheck %s
2
3
; CHECK: doo:
4
; CHECK: xorpd
5
define double @doo(double %x) nounwind {
6
%y = fsub double -0.0, %x
7
ret double %y
8
}
9
10
; CHECK: foo:
11
; CHECK: xorps
12
define float @foo(float %x) nounwind {
13
%y = fsub float -0.0, %x
14
ret float %y
15
}