2011-05-18 19:16:37 +02:00
|
|
|
; RUN: llc < %s -fast-isel -fast-isel-abort -mtriple=x86_64-apple-darwin10 | FileCheck %s
|
2013-04-11 01:30:20 +02:00
|
|
|
; RUN: llc < %s -fast-isel -march=x86 -mattr=+sse2 | FileCheck --check-prefix=SSE2 %s
|
|
|
|
|
|
|
|
; SSE2: xor
|
|
|
|
; SSE2: xor
|
2013-04-11 16:43:19 +02:00
|
|
|
; SSE2-NOT: xor
|
2009-09-04 00:53:57 +02:00
|
|
|
|
2013-07-14 08:24:09 +02:00
|
|
|
; CHECK-LABEL: doo:
|
2009-09-11 02:34:46 +02:00
|
|
|
; CHECK: xor
|
2009-09-04 00:53:57 +02:00
|
|
|
define double @doo(double %x) nounwind {
|
|
|
|
%y = fsub double -0.0, %x
|
|
|
|
ret double %y
|
|
|
|
}
|
|
|
|
|
2013-07-14 08:24:09 +02:00
|
|
|
; CHECK-LABEL: foo:
|
2009-09-11 02:34:46 +02:00
|
|
|
; CHECK: xor
|
2009-09-04 00:53:57 +02:00
|
|
|
define float @foo(float %x) nounwind {
|
|
|
|
%y = fsub float -0.0, %x
|
|
|
|
ret float %y
|
|
|
|
}
|