blob: 5ffd48bce655359911a5ebf00100310256dd2c4c [file] [log] [blame]
Dan Gohmanb144a522009-09-11 00:34:46 +00001; RUN: llc < %s -fast-isel -fast-isel-abort -march=x86-64 | FileCheck %s
Dan Gohmanb10a5952009-09-12 23:45:47 +00002; RUN: llc < %s -fast-isel -march=x86 -mattr=+sse2 | grep xor | count 2
Dan Gohmanf154271b2009-09-03 22:53:57 +00003
4; CHECK: doo:
Dan Gohmanb144a522009-09-11 00:34:46 +00005; CHECK: xor
Dan Gohmanf154271b2009-09-03 22:53:57 +00006define double @doo(double %x) nounwind {
7 %y = fsub double -0.0, %x
8 ret double %y
9}
10
11; CHECK: foo:
Dan Gohmanb144a522009-09-11 00:34:46 +000012; CHECK: xor
Dan Gohmanf154271b2009-09-03 22:53:57 +000013define float @foo(float %x) nounwind {
14 %y = fsub float -0.0, %x
15 ret float %y
16}