summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/pr11202.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/pr11202.ll')
-rw-r--r--test/CodeGen/X86/pr11202.ll19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/X86/pr11202.ll b/test/CodeGen/X86/pr11202.ll
new file mode 100644
index 00000000000..13070d1c600
--- /dev/null
+++ b/test/CodeGen/X86/pr11202.ll
@@ -0,0 +1,19 @@
+; RUN: llc < %s -mtriple=x86_64-pc-linux | FileCheck %s
+
+@bb = constant [1 x i8*] [i8* blockaddress(@main, %l2)]
+
+define void @main() {
+entry:
+ br label %l1
+
+l1: ; preds = %l2, %entry
+ %a = zext i1 false to i32
+ br label %l2
+
+l2: ; preds = %l1
+ %b = zext i1 false to i32
+ br label %l1
+}
+
+; CHECK: .Ltmp0: # Address of block that was removed by CodeGen
+; CHECK: .quad .Ltmp0