2015-02-27 18:32:11 +00:00
|
|
|
; RUN: llc < %s -fast-isel -fast-isel-abort=1 -mtriple=x86_64-apple-darwin10 | FileCheck %s
|
2013-04-10 23:30:20 +00:00
|
|
|
; RUN: llc < %s -fast-isel -march=x86 -mattr=+sse2 | FileCheck --check-prefix=SSE2 %s
|
|
|
|
|
|
|
|
; SSE2: xor
|
|
|
|
; SSE2: xor
|
2013-04-11 14:43:19 +00:00
|
|
|
; SSE2-NOT: xor
|
2009-09-03 22:53:57 +00:00
|
|
|
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: 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
|
|
|
|
}
|
|
|
|
|
2013-07-14 06:24:09 +00:00
|
|
|
; CHECK-LABEL: 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
|
|
|
|
}
|