aboutsummaryrefslogtreecommitdiffstats
path: root/test/LLC/badlive.ll
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2002-07-10 21:54:05 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2002-07-10 21:54:05 +0000
commita7a1c7e9719a4358521035be9965603eb1f429a6 (patch)
tree2e633b416dd031f4a24eb869c9eedc39a4f61708 /test/LLC/badlive.ll
parent975f6d4f4477a68f9b322843a1bf2ebc24214b3a (diff)
downloadexternal_llvm-a7a1c7e9719a4358521035be9965603eb1f429a6.zip
external_llvm-a7a1c7e9719a4358521035be9965603eb1f429a6.tar.gz
external_llvm-a7a1c7e9719a4358521035be9965603eb1f429a6.tar.bz2
Some of these are feature tests, not regression tests.
This directory needs to be reorganized and some of the tests need changes to make them executable. Also comments would help... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/LLC/badlive.ll')
-rw-r--r--test/LLC/badlive.ll28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/LLC/badlive.ll b/test/LLC/badlive.ll
new file mode 100644
index 0000000..f9c74d2
--- /dev/null
+++ b/test/LLC/badlive.ll
@@ -0,0 +1,28 @@
+implementation
+
+int "main"()
+begin
+bb0:
+ %reg109 = malloc int, uint 100
+ br label %bb2
+
+bb2:
+ %cann-indvar1 = phi int [ 0, %bb0 ], [ %add1-indvar1, %bb2 ]
+ %reg127 = mul int %cann-indvar1, 2
+ %add1-indvar1 = add int %cann-indvar1, 1
+ store int 999, int * %reg109, uint 0
+ %cond1015 = setle int 1, 99
+ %reg128 = add int %reg127, 2
+ br bool %cond1015, label %bb2, label %bb4
+
+bb4: ;[#uses=3]
+ %cann-indvar = phi uint [ %add1-indvar, %bb4 ], [ 0, %bb2 ]
+ %add1-indvar = add uint %cann-indvar, 1 ; <uint> [#uses=1]
+ store int 333, int * %reg109, uint 0
+ %reg131 = add uint %add1-indvar, 3 ; <int> [#uses=1]
+ %cond1017 = setle uint %reg131, 99 ; <bool> [#uses=1]
+ br bool %cond1017, label %bb4, label %bb5
+
+bb5:
+ ret int 0
+end