From 22127cee34f0d2cf816fed14875e8e1ac12eee3c Mon Sep 17 00:00:00 2001 From: Simon Atanasyan Date: Tue, 24 Sep 2013 09:09:16 +0000 Subject: [Mips] Support -mnan=2008 option. Define "__mips_nan2008" macros and pass this option to the assembler. llvm-svn: 191282 --- clang/test/Preprocessor/init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'clang/test/Preprocessor/init.c') 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 -- cgit v1.2.3