[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/2005-05-09-GlobalInPHI.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Apr 9 15:03:23 PDT 2005
Changes in directory llvm/test/Regression/CodeGen/Generic:
2005-05-09-GlobalInPHI.ll added (r1.1)
---
Log message:
new testcase that used to crash the ppc fe. It could effect any simpleisel
that is not careful, so I'm checking it into the generic tests.
---
Diffs of the changes: (+21 -0)
2005-05-09-GlobalInPHI.ll | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+)
Index: llvm/test/Regression/CodeGen/Generic/2005-05-09-GlobalInPHI.ll
diff -c /dev/null llvm/test/Regression/CodeGen/Generic/2005-05-09-GlobalInPHI.ll:1.1
*** /dev/null Sat Apr 9 17:03:20 2005
--- llvm/test/Regression/CodeGen/Generic/2005-05-09-GlobalInPHI.ll Sat Apr 9 17:03:10 2005
***************
*** 0 ****
--- 1,21 ----
+ ; RUN: llvm-as < %s | llc
+ %struct.TypHeader = type { uint, %struct.TypHeader**, [3 x sbyte], ubyte }
+ %.str_67 = external global [4 x sbyte] ; <[4 x sbyte]*> [#uses=1]
+ %.str_87 = external global [17 x sbyte] ; <[17 x sbyte]*> [#uses=1]
+
+ implementation ; Functions:
+
+ void %PrBinop() {
+ entry:
+ br bool false, label %cond_true, label %else.0
+
+ cond_true: ; preds = %entry
+ br label %else.0
+
+ else.0:
+ %tmp.167.1 = phi int [ cast ([17 x sbyte]* %.str_87 to int), %entry ], [ 0, %cond_true ]
+ call void %Pr( sbyte* getelementptr ([4 x sbyte]* %.str_67, int 0, int 0), int 0, int 0 )
+ ret void
+ }
+
+ declare void %Pr(sbyte*, int, int)
More information about the llvm-commits
mailing list