aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2011-12-12 22:41:39 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2011-12-12 22:41:39 +0000
commitdcfc2eaf628d29aa83381f2e74e952ba70e55702 (patch)
tree69cdeed4e9556ac8c1bdd874de6e0e9f1f119c9e /test
parent6e55ff56b88c3334d5847f2cb26f3001b92c489b (diff)
Test case for r146432 by Jack Carter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/Mips/br-jmp.ll13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/br-jmp.ll b/test/CodeGen/Mips/br-jmp.ll
new file mode 100644
index 0000000000..1b5513ab39
--- /dev/null
+++ b/test/CodeGen/Mips/br-jmp.ll
@@ -0,0 +1,13 @@
+; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=CHECK-PIC
+; RUN: llc -march=mipsel -relocation-model=static < %s | FileCheck %s -check-prefix=CHECK-STATIC
+
+define void @count(i32 %x, i32 %y, i32 %z) noreturn nounwind readnone {
+entry:
+ br label %bosco
+
+bosco: ; preds = %bosco, %entry
+ br label %bosco
+}
+
+; CHECK-PIC: b $BB0_1
+; CHECK-STATIC: j $BB0_1