[llvm-commits] [llvm] r137486 - /llvm/trunk/test/CodeGen/Mips/constantfp0.ll

Akira Hatanaka ahatanak at gmail.com
Fri Aug 12 11:12:06 PDT 2011


Author: ahatanak
Date: Fri Aug 12 13:12:06 2011
New Revision: 137486

URL: http://llvm.org/viewvc/llvm-project?rev=137486&view=rev
Log:
Test case for 137484

Added:
    llvm/trunk/test/CodeGen/Mips/constantfp0.ll

Added: llvm/trunk/test/CodeGen/Mips/constantfp0.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/constantfp0.ll?rev=137486&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/constantfp0.ll (added)
+++ llvm/trunk/test/CodeGen/Mips/constantfp0.ll Fri Aug 12 13:12:06 2011
@@ -0,0 +1,11 @@
+; RUN: llc -march=mips < %s | FileCheck %s
+
+define i32 @branch(double %d) nounwind readnone {
+entry:
+; CHECK: mtc1  $zero, $f[[R0:[0-9]+]]
+; CHECK: c.eq.d  $f{{[0-9]+}}, $f[[R0]]
+
+  %tobool = fcmp une double %d, 0.000000e+00
+  %. = zext i1 %tobool to i32
+  ret i32 %.
+}





More information about the llvm-commits mailing list