summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Feature')
-rw-r--r--llvm/test/Feature/terminators.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Feature/terminators.ll b/llvm/test/Feature/terminators.ll
index 417f56b58d0..d1b97108d2b 100644
--- a/llvm/test/Feature/terminators.ll
+++ b/llvm/test/Feature/terminators.ll
@@ -24,3 +24,14 @@ Case4: ; preds = %0
ret i32 16
}
+
+
+define i32 @indbrtest(i8* %P, i32* %Q) {
+ indbr i8* %P, [label %BB1, label %BB2, label %BB3]
+BB1:
+ indbr i32* %Q, []
+BB2:
+ indbr i32* %Q, [label %BB1, label %BB2]
+BB3:
+ ret i32 2
+}
OpenPOWER on IntegriCloud