summaryrefslogtreecommitdiff
path: root/test/CodeGen/Mips/brsize3.ll
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2016-05-06 13:23:51 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2016-05-06 13:23:51 +0000
commit70942f02719f0da350664c06f2d7f19e8d518025 (patch)
treeed5c531746bd8ed61e5f8ca01b8c7a67ba98ca60 /test/CodeGen/Mips/brsize3.ll
parent062dfa5b22d878d3defd7bc5959adabf34783263 (diff)
[mips][mips16] Use isUnconditionalBranch() in AnalyzeBranch() and constant island pass.
Summary: This stops it misidentifying unconditional branches as conditional branches which fixes a -verify-machineinstrs error about exiting a function via fall through. Reviewers: sdardis Subscribers: dsanders, sdardis, llvm-commits Differential Revision: http://reviews.llvm.org/D19864 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@268731 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Mips/brsize3.ll')
-rw-r--r--test/CodeGen/Mips/brsize3.ll10
1 files changed, 8 insertions, 2 deletions
diff --git a/test/CodeGen/Mips/brsize3.ll b/test/CodeGen/Mips/brsize3.ll
index 1e76879409c..ce8b8f6e35b 100644
--- a/test/CodeGen/Mips/brsize3.ll
+++ b/test/CodeGen/Mips/brsize3.ll
@@ -1,6 +1,12 @@
-; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=pic -mips16-constant-islands < %s | FileCheck %s -check-prefix=b-no-short
+; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 \
+; RUN: -mattr=+soft-float -mips16-hard-float -relocation-model=pic \
+; RUN: -mips16-constant-islands -verify-machineinstrs < %s | \
+; RUN: FileCheck %s -check-prefix=b-no-short
-; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=pic -mips16-constant-islands < %s | FileCheck %s -check-prefix=b-long
+; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 \
+; RUN: -mattr=+soft-float -mips16-hard-float -relocation-model=pic \
+; RUN: -mips16-constant-islands -verify-machineinstrs < %s | \
+; RUN: FileCheck %s -check-prefix=b-long
; ModuleID = 'brsize3.c'
target datalayout = "E-p:32:32:32-i1:8:8-i8:8:32-i16:16:32-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-n32-S64"