summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bindings/llvm-c
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2016-02-09 22:36:41 +0000
committerAmaury Sechet <deadalnix@gmail.com>2016-02-09 22:36:41 +0000
commita82042eb4c522e70f90ca5fe06b8f76940e434f7 (patch)
tree5d04025455ac6fb2f75ff367b18ce0ddd4c3900a /llvm/test/Bindings/llvm-c
parentfb85e6288bde017cf4a40f0be4680975541f5766 (diff)
downloadbcm5719-llvm-a82042eb4c522e70f90ca5fe06b8f76940e434f7.tar.gz
bcm5719-llvm-a82042eb4c522e70f90ca5fe06b8f76940e434f7.zip
Improve the C API echo test tool to emit basic block is the right order.
Summary: As per title. Also add a facility method to get the name of a basic block from the C API. Reviewers: bogner, chandlerc, echristo, dblaikie, joker.eph, Wallbraker Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D16912 llvm-svn: 260309
Diffstat (limited to 'llvm/test/Bindings/llvm-c')
-rw-r--r--llvm/test/Bindings/llvm-c/echo.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Bindings/llvm-c/echo.ll b/llvm/test/Bindings/llvm-c/echo.ll
index 30e7f4facfa..04ab50f0dfc 100644
--- a/llvm/test/Bindings/llvm-c/echo.ll
+++ b/llvm/test/Bindings/llvm-c/echo.ll
@@ -42,3 +42,11 @@ define i32 @call() {
%1 = call i32 @iops(i32 23, i32 19)
ret i32 %1
}
+
+define i32 @bborder(i32 %a, i32 %b) {
+ br label %br
+unreachable:
+ unreachable
+br:
+ br label %unreachable
+}
OpenPOWER on IntegriCloud