aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/inssel1.ll8
-rw-r--r--test/inssel2.ll14
2 files changed, 22 insertions, 0 deletions
diff --git a/test/inssel1.ll b/test/inssel1.ll
new file mode 100644
index 0000000000..58aa634346
--- /dev/null
+++ b/test/inssel1.ll
@@ -0,0 +1,8 @@
+implementation
+
+void "foo"(int * %x, int * %y)
+begin
+; <label>:0 ;[#uses=0]
+ seteq int * %x, %y ; <bool>:0 [#uses=0]
+ ret void
+end
diff --git a/test/inssel2.ll b/test/inssel2.ll
new file mode 100644
index 0000000000..e2df8ad46c
--- /dev/null
+++ b/test/inssel2.ll
@@ -0,0 +1,14 @@
+implementation
+
+void "foo"(int * %x, int * %y)
+begin
+; <label>:0 ;[#uses=1]
+ br label %Top
+
+Top: ;[#uses=4]
+ phi int [ 0, %0 ], [ 1, %Top ], [ 2, %Next ] ; <int>:0 [#uses=0]
+ br bool true, label %Top, label %Next
+
+Next: ;[#uses=2]
+ br label %Top
+end