[llvm-commits] CVS: llvm/test/Regression/CBackend/2003-06-23-PromotedExprs.llx
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Jun 23 15:00:06 PDT 2003
Changes in directory llvm/test/Regression/CBackend:
2003-06-23-PromotedExprs.llx added (r1.1)
---
Log message:
New test case for C Writer regression found in 256.bzip2
---
Diffs of the changes:
Index: llvm/test/Regression/CBackend/2003-06-23-PromotedExprs.llx
diff -c /dev/null llvm/test/Regression/CBackend/2003-06-23-PromotedExprs.llx:1.1
*** /dev/null Mon Jun 23 14:59:27 2003
--- llvm/test/Regression/CBackend/2003-06-23-PromotedExprs.llx Mon Jun 23 14:59:17 2003
***************
*** 0 ****
--- 1,16 ----
+
+ ; RUN: as < %s | dis -c > Output/%s.cbe.c
+ ; RUN: gcc -B/usr/bin/ Output/%s.cbe.c -o Output/%s.cbe
+ ; RUN: Output/%s.cbe
+
+ bool %doTest(ubyte %x) {
+ %dec.0 = add ubyte %x, 255
+ %tmp.1001 = cast ubyte %dec.0 to bool
+ ret bool %tmp.1001
+ }
+
+ int %main () {
+ %result = call bool %doTest(ubyte 1)
+ %p = cast bool %result to int
+ ret int %p
+ }
More information about the llvm-commits
mailing list