about summary refs log tree commit diff homepage
path: root/test/Concrete/UnconditionalBranchWithSimplePhi.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Concrete/UnconditionalBranchWithSimplePhi.ll')
-rw-r--r--test/Concrete/UnconditionalBranchWithSimplePhi.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/Concrete/UnconditionalBranchWithSimplePhi.ll b/test/Concrete/UnconditionalBranchWithSimplePhi.ll
new file mode 100644
index 00000000..551ddf5d
--- /dev/null
+++ b/test/Concrete/UnconditionalBranchWithSimplePhi.ll
@@ -0,0 +1,14 @@
+declare void @print_i32(i32)
+
+define i32 @main() {
+entry:
+	%a = add i32 0, 1
+	br label %exit
+unused:
+	%b = add i32 1, 2
+	br label %exit
+exit:
+	%c = phi i32 [%a, %entry], [%b, %unused]
+	call void @print_i32(i32 %c)
+	ret i32 0
+}