[llvm-commits] CVS: llvm/test/Regression/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll Makefile

Chris Lattner lattner at cs.uiuc.edu
Thu May 1 16:28:01 PDT 2003


Changes in directory llvm/test/Regression/Transforms/LowerSwitch:

2003-05-01-PHIProblem.ll added (r1.1)
Makefile added (r1.1)

---
Log message:

New testcase for the lowerswitch pass


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll
diff -c /dev/null llvm/test/Regression/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll:1.1
*** /dev/null	Thu May  1 16:27:34 2003
--- llvm/test/Regression/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll	Thu May  1 16:27:24 2003
***************
*** 0 ****
--- 1,19 ----
+ ; RUN: as < %s | opt -lowerswitch
+ 
+ void %child(int %ct.1) {
+ entry:          ; No predecessors!
+         switch uint 0, label %return [
+                  uint 2, label %UnifiedExitNode
+                  uint 3, label %UnifiedExitNode
+                  uint 0, label %return
+                  uint 1, label %UnifiedExitNode
+         ]
+ 
+ return:         ; preds = %entry, %entry
+         %result.0 = phi %struct.quad_struct* [ null, %entry ], [ null, %entry ]         ; <%struct.quad_struct*> [#uses=0]
+         br label %UnifiedExitNode
+ 
+ UnifiedExitNode:                ; preds = %entry, %return, %entry, %entry
+         ret void
+ }
+ 


Index: llvm/test/Regression/Transforms/LowerSwitch/Makefile
diff -c /dev/null llvm/test/Regression/Transforms/LowerSwitch/Makefile:1.1
*** /dev/null	Thu May  1 16:27:34 2003
--- llvm/test/Regression/Transforms/LowerSwitch/Makefile	Thu May  1 16:27:24 2003
***************
*** 0 ****
--- 1,10 ----
+ 
+ LEVEL = ../../../..
+ include $(LEVEL)/test/Makefile.tests
+ 
+ TESTS := $(wildcard *.ll)
+ 
+ all:: $(addprefix Output/, $(TESTS:%.ll=%.ll.out))
+ 
+ Output/%.ll.out: %.ll Output/.dir $(LOPT)
+ 	-$(TESTRUNR) $<





More information about the llvm-commits mailing list