[llvm-commits] CVS: llvm-java/test/Compiler/FloatCompare.java

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Jun 12 18:48:01 PDT 2004


Changes in directory llvm-java/test/Compiler:

FloatCompare.java added (r1.1)

---
Log message:

Add testcase for the CMPL and CMPG famil of bytecodes.


---
Diffs of the changes:  (+14 -0)

Index: llvm-java/test/Compiler/FloatCompare.java
diff -c /dev/null llvm-java/test/Compiler/FloatCompare.java:1.1
*** /dev/null	Sat Jun 12 18:41:59 2004
--- llvm-java/test/Compiler/FloatCompare.java	Sat Jun 12 18:41:49 2004
***************
*** 0 ****
--- 1,14 ----
+ public class FloatCompare
+ {
+     public static int main(String[] args) {
+         int count = 0;
+ 
+         for (float f = 0.0F; f < 10F; f += 1.1F)
+             ++count;
+ 
+         for (double d = 100; d > 0; d -= 11)
+             ++count;
+ 
+         return count;
+     }
+ }





More information about the llvm-commits mailing list