I must have missed these when eliminating the cast to bool cannonicalizations
[oota-llvm.git] / test / CBackend / Makefile
index 7e5ba7ddefbe89004cf399ad94bec0106274d70d..5dc7ffe2392226f5549fffd83ba9b506f79baf66 100644 (file)
@@ -10,13 +10,18 @@ include $(LEVEL)/test/Makefile.tests
 .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
-       gcc -c -W -Wall $< -o $@ || \
+       $(CC) -c -Werror $< -o $@ || \
                (rm -f $@; $(FAILURE) $@ )
 
 Output/%.c: %.ll Output/.dir $(LAS) $(LDIS)
-       $(LAS) < $< | $(LDIS) -c > $@
+       $(LAS) < $< | $(LDIS) -c > $@ || \
+               (rm -f $@; $(FAILURE) $@ )
+
+Output/%.llx.out: %.llx Output/.dir $(LAS) $(LDIS)
+       -$(TESTRUNR) $<
+