summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/mips-features.c
diff options
context:
space:
mode:
authorDaniel Sanders <daniel.sanders@imgtec.com>2014-08-08 13:44:50 +0000
committerDaniel Sanders <daniel.sanders@imgtec.com>2014-08-08 13:44:50 +0000
commite805f44c8f309d03f2f70914419e11de5c9347ee (patch)
treeea4cf30ed082a68df2a950435681ac6eb5059ed0 /clang/test/Driver/mips-features.c
parent255958391dd53620e9f991f8449703ba3ac1d5d2 (diff)
downloadbcm5719-llvm-e805f44c8f309d03f2f70914419e11de5c9347ee.tar.gz
bcm5719-llvm-e805f44c8f309d03f2f70914419e11de5c9347ee.zip
[mips] Add -mabicalls/-mno-abicalls to the driver
Based on a patch by Matheus Almeida. I've added testcases and fixed a bug where the options weren't passed on to GAS. llvm-svn: 215204
Diffstat (limited to 'clang/test/Driver/mips-features.c')
-rw-r--r--clang/test/Driver/mips-features.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/Driver/mips-features.c b/clang/test/Driver/mips-features.c
index 03cc0fd7e36..964e88bfb8b 100644
--- a/clang/test/Driver/mips-features.c
+++ b/clang/test/Driver/mips-features.c
@@ -1,5 +1,17 @@
// Check handling MIPS specific features options.
//
+// -mabicalls
+// RUN: %clang -target mips-linux-gnu -### -c %s 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-MABICALLS %s
+// RUN: %clang -target mips-linux-gnu -### -c %s -mno-abicalls -mabicalls 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-MABICALLS %s
+// CHECK-MABICALLS: "-target-feature" "+abicalls"
+//
+// -mno-abicalls
+// RUN: %clang -target mips-linux-gnu -### -c %s -mabicalls -mno-abicalls 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-MNOABICALLS %s
+// CHECK-MNOABICALLS: "-target-feature" "-abicalls"
+//
// -mips16
// RUN: %clang -target mips-linux-gnu -### -c %s \
// RUN: -mno-mips16 -mips16 2>&1 \
OpenPOWER on IntegriCloud