diff options
Diffstat (limited to 'test/CodeGen/XCore/fneg.ll')
-rw-r--r-- | test/CodeGen/XCore/fneg.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/XCore/fneg.ll b/test/CodeGen/XCore/fneg.ll new file mode 100644 index 000000000000..e4426fd908f3 --- /dev/null +++ b/test/CodeGen/XCore/fneg.ll @@ -0,0 +1,8 @@ +; RUN: llvm-as < %s | llc -march=xcore > %t1.s +; RUN: grep "xor" %t1.s | count 1 +define i1 @test(double %F) nounwind { +entry: + %0 = sub double -0.000000e+00, %F + %1 = fcmp olt double 0.000000e+00, %0 + ret i1 %1 +} |