summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/mips-features.c
diff options
context:
space:
mode:
authorSimon Dardis <simon.dardis@imgtec.com>2017-09-26 15:01:21 +0000
committerSimon Dardis <simon.dardis@imgtec.com>2017-09-26 15:01:21 +0000
commitef41f6a57328100471c169332d03fc35918a65d1 (patch)
treef446e4c62e0d3daafbd834f23534a6c76442cfa7 /clang/test/Driver/mips-features.c
parent1f93d0f1f95d09c52f53a0dd919759ab5fc40bd4 (diff)
downloadbcm5719-llvm-ef41f6a57328100471c169332d03fc35918a65d1.tar.gz
bcm5719-llvm-ef41f6a57328100471c169332d03fc35918a65d1.zip
[mips] Accept but ignore -m(no-)branch-likely
-mbranch-likely and -mno-branch-likely are used in some build systems for some MIPS targets. Accept these options but ignore them as they are an (de)optimiztion hint, and that branch likely instructions were deprecated but not removed from MIPS32 and MIPS64 ISAs. Reviewers: atanasyan, nitesh.jain Differential Revision: https://reviews.llvm.org/D38168 llvm-svn: 314213
Diffstat (limited to 'clang/test/Driver/mips-features.c')
-rw-r--r--clang/test/Driver/mips-features.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Driver/mips-features.c b/clang/test/Driver/mips-features.c
index 5f6833e686f..a9db0f10170 100644
--- a/clang/test/Driver/mips-features.c
+++ b/clang/test/Driver/mips-features.c
@@ -392,3 +392,13 @@
// LONG-CALLS-ON: "-target-feature" "+long-calls"
// LONG-CALLS-OFF: "-target-feature" "-long-calls"
// LONG-CALLS-DEF-NOT: "long-calls"
+//
+// -mbranch-likely
+// RUN: %clang -target -mips-mti-linux-gnu -### -c %s -mbranch-likely 2>&1 \
+// RUN: | FileCheck --check-prefix=BRANCH-LIKELY %s
+// BRANCH-LIKELY: argument unused during compilation: '-mbranch-likely'
+//
+// -mno-branch-likely
+// RUN: %clang -target -mips-mti-linux-gnu -### -c %s -mno-branch-likely 2>&1 \
+// RUN: | FileCheck --check-prefix=NO-BRANCH-LIKELY %s
+// NO-BRANCH-LIKELY: argument unused during compilation: '-mno-branch-likely'
OpenPOWER on IntegriCloud