diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2013-09-24 09:09:16 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2013-09-24 09:09:16 +0000 |
commit | 22127cee34f0d2cf816fed14875e8e1ac12eee3c (patch) | |
tree | f20dd97162569987819036cff1b17d2cc8b64c65 /clang/test/Preprocessor/init.c | |
parent | c63c30c9a2542a0e62bd4a6c5204977f88fbc33b (diff) | |
download | bcm5719-llvm-22127cee34f0d2cf816fed14875e8e1ac12eee3c.tar.gz bcm5719-llvm-22127cee34f0d2cf816fed14875e8e1ac12eee3c.zip |
[Mips] Support -mnan=2008 option. Define "__mips_nan2008" macros and pass
this option to the assembler.
llvm-svn: 191282
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 5c988aa760c..38ddaa6a14a 100644 --- a/clang/test/Preprocessor/init.c +++ b/clang/test/Preprocessor/init.c @@ -1229,6 +1229,11 @@ // RUN: | FileCheck -check-prefix MIPS-MSA %s // MIPS-MSA:#define __mips_msa 1 // +// RUN: %clang_cc1 -target-feature +nan2008 \ +// RUN: -E -dM -triple=mips-none-none < /dev/null \ +// RUN: | FileCheck -check-prefix MIPS-NAN2008 %s +// MIPS-NAN2008:#define __mips_nan2008 1 +// // RUN: %clang_cc1 -E -dM -ffreestanding -triple=msp430-none-none < /dev/null | FileCheck -check-prefix MSP430 %s // // MSP430:#define MSP430 1 |