aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-09 03:36:11 +0000
committerChris Lattner <sabre@nondot.org>2005-05-09 03:36:11 +0000
commit49b8b70008f53f464a79fc236ce084ec516473ae (patch)
treeba50f5a485954013bff57ee9677fde43b07591b1 /test/CodeGen
parentcb9048a6e813ca0c89f59375f3aa15ae49e153b4 (diff)
downloadexternal_llvm-49b8b70008f53f464a79fc236ce084ec516473ae.zip
external_llvm-49b8b70008f53f464a79fc236ce084ec516473ae.tar.gz
external_llvm-49b8b70008f53f464a79fc236ce084ec516473ae.tar.bz2
New testcase that crashes the pattern isel
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen')
-rw-r--r--test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll49
1 files changed, 49 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll b/test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll
new file mode 100644
index 0000000..b22a7d0
--- /dev/null
+++ b/test/CodeGen/X86/2005-05-08-FPStackifierPHI.ll
@@ -0,0 +1,49 @@
+; RUN: llvm-as < %s | llc -march=x86
+; Make sure LLC doesn't crash in the stackifier due to FP PHI nodes.
+
+void %radfg_() {
+entry:
+ br bool false, label %no_exit.16.preheader, label %loopentry.0
+
+loopentry.0: ; preds = %entry
+ ret void
+
+no_exit.16.preheader: ; preds = %entry
+ br label %no_exit.16
+
+no_exit.16: ; preds = %no_exit.16, %no_exit.16.preheader
+ br bool false, label %loopexit.16.loopexit, label %no_exit.16
+
+loopexit.16.loopexit: ; preds = %no_exit.16
+ br label %no_exit.18
+
+no_exit.18: ; preds = %loopexit.20, %loopexit.16.loopexit
+ %tmp.882 = add float 0.000000e+00, 0.000000e+00 ; <float> [#uses=2]
+ br bool false, label %loopexit.19, label %no_exit.19.preheader
+
+no_exit.19.preheader: ; preds = %no_exit.18
+ ret void
+
+loopexit.19: ; preds = %no_exit.18
+ br bool false, label %loopexit.20, label %no_exit.20
+
+no_exit.20: ; preds = %loopexit.21, %loopexit.19
+ %ai2.1122.tmp.3 = phi float [ %tmp.958, %loopexit.21 ], [ %tmp.882, %loopexit.19 ] ; <float> [#uses=1]
+ %tmp.950 = mul float %tmp.882, %ai2.1122.tmp.3 ; <float> [#uses=1]
+ %tmp.951 = sub float 0.000000e+00, %tmp.950 ; <float> [#uses=1]
+ %tmp.958 = add float 0.000000e+00, 0.000000e+00 ; <float> [#uses=1]
+ br bool false, label %loopexit.21, label %no_exit.21.preheader
+
+no_exit.21.preheader: ; preds = %no_exit.20
+ ret void
+
+loopexit.21: ; preds = %no_exit.20
+ br bool false, label %loopexit.20, label %no_exit.20
+
+loopexit.20: ; preds = %loopexit.21, %loopexit.19
+ %ar2.1124.tmp.2 = phi float [ 0.000000e+00, %loopexit.19 ], [ %tmp.951, %loopexit.21 ] ; <float> [#uses=0]
+ br bool false, label %loopexit.18.loopexit, label %no_exit.18
+
+loopexit.18.loopexit: ; preds = %loopexit.20
+ ret void
+}