diff options
author | Jack Carter <jack.carter@imgtec.com> | 2013-08-12 17:20:29 +0000 |
---|---|---|
committer | Jack Carter <jack.carter@imgtec.com> | 2013-08-12 17:20:29 +0000 |
commit | 44ff1e567387ea143cc832682c13121833372cd4 (patch) | |
tree | 8f3710be7ef58406efd0bb0481a8f338e59ed101 /clang/test/Preprocessor/init.c | |
parent | 73537eac3d149f425e1c0febf03c6f2b6562ecbd (diff) | |
download | bcm5719-llvm-44ff1e567387ea143cc832682c13121833372cd4.tar.gz bcm5719-llvm-44ff1e567387ea143cc832682c13121833372cd4.zip |
[Mips] MSA frontend option support
This patch adds -mmsa and -mno-msa to the options supported by
clang to enable and disable support for MSA.
When MSA is enabled, a predefined macro '__mips_msa' is defined to 1.
Patch by Daniel Sanders
llvm-svn: 188184
Diffstat (limited to 'clang/test/Preprocessor/init.c')
-rw-r--r-- | clang/test/Preprocessor/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c index fa5589c9359..f25f3cdd920 100644 --- a/clang/test/Preprocessor/init.c +++ b/clang/test/Preprocessor/init.c @@ -1224,6 +1224,11 @@ // MIPS-DSPR2:#define __mips_dsp_rev 2 // MIPS-DSPR2:#define __mips_dspr2 1 // +// RUN: %clang_cc1 -target-feature +msa \ +// RUN: -E -dM -triple=mips-none-none < /dev/null \ +// RUN: | FileCheck -check-prefix MIPS-MSA %s +// MIPS-MSA:#define __mips_msa 1 +// // RUN: %clang_cc1 -E -dM -ffreestanding -triple=msp430-none-none < /dev/null | FileCheck -check-prefix MSP430 %s // // MSP430:#define MSP430 1 |