2009-09-10 08:49:22 +08:00
|
|
|
; RUN: llc < %s -fast-isel -march=x86-64 | FileCheck %s
|
2009-09-04 06:53:57 +08:00
|
|
|
|
|
|
|
; CHECK: doo:
|
2009-09-10 08:49:22 +08:00
|
|
|
; CHECK: xorpd
|
2009-09-04 06:53:57 +08:00
|
|
|
define double @doo(double %x) nounwind {
|
|
|
|
%y = fsub double -0.0, %x
|
|
|
|
ret double %y
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: foo:
|
2009-09-10 08:49:22 +08:00
|
|
|
; CHECK: xorps
|
2009-09-04 06:53:57 +08:00
|
|
|
define float @foo(float %x) nounwind {
|
|
|
|
%y = fsub float -0.0, %x
|
|
|
|
ret float %y
|
|
|
|
}
|