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