2011-05-18 17:16:37 +00:00
|
|
|
; RUN: llc < %s -fast-isel -fast-isel-abort -mtriple=x86_64-apple-darwin10 | FileCheck %s
|
2009-09-12 23:45:47 +00:00
|
|
|
; RUN: llc < %s -fast-isel -march=x86 -mattr=+sse2 | grep xor | count 2
|
2009-09-03 22:53:57 +00:00
|
|
|
|
|
|
|
; CHECK: doo:
|
2009-09-11 00:34:46 +00:00
|
|
|
; CHECK: xor
|
2009-09-03 22:53:57 +00:00
|
|
|
define double @doo(double %x) nounwind {
|
|
|
|
%y = fsub double -0.0, %x
|
|
|
|
ret double %y
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: foo:
|
2009-09-11 00:34:46 +00:00
|
|
|
; CHECK: xor
|
2009-09-03 22:53:57 +00:00
|
|
|
define float @foo(float %x) nounwind {
|
|
|
|
%y = fsub float -0.0, %x
|
|
|
|
ret float %y
|
|
|
|
}
|