aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/init.c
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2013-04-14 14:07:51 +0000
committerSimon Atanasyan <simon@atanasyan.com>2013-04-14 14:07:51 +0000
commit321ae79aae228aa069795e78449a95fa35e2abfd (patch)
treeaa86070c2b9f7dad716972674a856346bb444eda /test/Preprocessor/init.c
parenta8141614514634c7bd0ee4bc96e19fb3c10f72f2 (diff)
[Mips] Support -mmicromips / -mno-micromips command line options.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/init.c')
-rw-r--r--test/Preprocessor/init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c
index 8ab1439fa6..c1519a8a7f 100644
--- a/test/Preprocessor/init.c
+++ b/test/Preprocessor/init.c
@@ -1168,6 +1168,16 @@
// RUN: | FileCheck -check-prefix NOMIPS16 %s
// NOMIPS16-NOT:#define __mips16 1
//
+// RUN: %clang_cc1 -target-feature +micromips \
+// RUN: -E -dM -triple=mips-none-none < /dev/null \
+// RUN: | FileCheck -check-prefix MICROMIPS %s
+// MICROMIPS:#define __mips_micromips 1
+//
+// RUN: %clang_cc1 -target-feature -micromips \
+// RUN: -E -dM -triple=mips-none-none < /dev/null \
+// RUN: | FileCheck -check-prefix NOMICROMIPS %s
+// NOMICROMIPS-NOT:#define __mips_micromips 1
+//
// RUN: %clang_cc1 -target-feature +dsp \
// RUN: -E -dM -triple=mips-none-none < /dev/null \
// RUN: | FileCheck -check-prefix MIPS-DSP %s