2011-05-19 01:16:37 +08:00
|
|
|
; RUN: llc < %s -fast-isel -fast-isel-abort -mtriple=x86_64-apple-darwin10 | FileCheck %s
|
2009-09-13 07:45:47 +08:00
|
|
|
; RUN: llc < %s -fast-isel -march=x86 -mattr=+sse2 | grep xor | count 2
|
2009-09-04 06:53:57 +08:00
|
|
|
|
|
|
|
; CHECK: doo:
|
2009-09-11 08:34:46 +08:00
|
|
|
; CHECK: xor
|
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-11 08:34:46 +08:00
|
|
|
; CHECK: xor
|
2009-09-04 06:53:57 +08:00
|
|
|
define float @foo(float %x) nounwind {
|
|
|
|
%y = fsub float -0.0, %x
|
|
|
|
ret float %y
|
|
|
|
}
|