summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/mips-features.c
diff options
context:
space:
mode:
authorSimon Atanasyan <satanasyan@mips.com>2012-08-27 20:55:56 +0000
committerSimon Atanasyan <satanasyan@mips.com>2012-08-27 20:55:56 +0000
commitec4b1c194b5ba1961f1da88af1a1b06b8d170f1c (patch)
tree9a320e940aa491af2fb3d0b6469f88ead3b783bf /clang/test/Driver/mips-features.c
parent3b0c2607ef7657c8ad27fa4651f46b1d7bf83907 (diff)
downloadbcm5719-llvm-ec4b1c194b5ba1961f1da88af1a1b06b8d170f1c.tar.gz
bcm5719-llvm-ec4b1c194b5ba1961f1da88af1a1b06b8d170f1c.zip
MIPS: Use -G option to specify MIPS section threshold. Translate it
to the -mllvm -mips-ssection-threshold=<value> pair and pass to the frontend. The patch suggested by Carl Norum. llvm-svn: 162697
Diffstat (limited to 'clang/test/Driver/mips-features.c')
-rw-r--r--clang/test/Driver/mips-features.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/test/Driver/mips-features.c b/clang/test/Driver/mips-features.c
index 5be26831888..28048e7740f 100644
--- a/clang/test/Driver/mips-features.c
+++ b/clang/test/Driver/mips-features.c
@@ -37,3 +37,9 @@
// RUN: -mdspr2 -mno-dspr2 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-NOMDSPR2 %s
// CHECK-NOMDSPR2: "-target-feature" "-dspr2"
+//
+// -G
+// RUN: %clang -target mips-linux-gnu -### -c %s \
+// RUN: -G 16 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-MIPS-G %s
+// CHECK-MIPS-G: "-mllvm" "-mips-ssection-threshold=16"
OpenPOWER on IntegriCloud