[llvm-commits] CVS: llvm/test/Regression/CBackend/2003-06-23-PromotedExprs.llx Makefile

John Criswell criswell at choi.cs.uiuc.edu
Thu Jun 26 16:38:18 PDT 2003


Changes in directory llvm/test/Regression/CBackend:

2003-06-23-PromotedExprs.llx added (r1.1.2.1)
Makefile updated: 1.7 -> 1.7.2.1

---
Log message:

Merged with mainline on Thursday, June 26, 2003.


---
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	Thu Jun 26 16:37:25 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
+ }


Index: llvm/test/Regression/CBackend/Makefile
diff -u llvm/test/Regression/CBackend/Makefile:1.7 llvm/test/Regression/CBackend/Makefile:1.7.2.1
--- llvm/test/Regression/CBackend/Makefile:1.7	Mon May 12 10:33:52 2003
+++ llvm/test/Regression/CBackend/Makefile	Thu Jun 26 16:35:45 2003
@@ -10,9 +10,9 @@
 .PRECIOUS: Output/%.c
 
 TESTS := $(wildcard *.ll)
+FTESTS := $(wildcard *.llx)   # Freeform tests
 
-all:: $(addprefix Output/, $(TESTS:%.ll=%.to))
-
+all:: $(addprefix Output/, $(TESTS:%.ll=%.to)) $(addprefix Output/, $(FTESTS:%.llx=%.llx.out))
 
 Output/%.to: Output/%.c
 	$(CC) -c -Werror $< -o $@ || \
@@ -21,3 +21,7 @@
 Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
 	$(LAS) < $< | $(LDIS) -c > $@ || \
 		(rm -f $@; $(FAILURE) $@ )
+
+Output/%.llx.out: %.llx Output/.dir $(LAS) $(LDIS)
+	-$(TESTRUNR) $<
+





More information about the llvm-commits mailing list