diff options
author | Simon Atanasyan <satanasyan@mips.com> | 2012-04-06 17:51:49 +0000 |
---|---|---|
committer | Simon Atanasyan <satanasyan@mips.com> | 2012-04-06 17:51:49 +0000 |
commit | aba3f0f8658b099fabd17f29f67bf6dd8ee5ddfd (patch) | |
tree | 68ed875b312acbc86229fa7d68c52c94920df215 /test/Preprocessor/init.c | |
parent | 9f314374672a9c50d45ab60b96718cfbab06f484 (diff) |
MIPS: Move tests check float ABI macros definitions to the more appropriate place.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154184 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Preprocessor/init.c')
-rw-r--r-- | test/Preprocessor/init.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/Preprocessor/init.c b/test/Preprocessor/init.c index ae22aafa3c..e0f45f1728 100644 --- a/test/Preprocessor/init.c +++ b/test/Preprocessor/init.c @@ -849,6 +849,23 @@ // MIPS64EL:#define _mips 1 // MIPS64EL:#define mips 1 // +// Check MIPS float ABI macros +// +// RUN: %clang_cc1 -E -dM -ffreestanding \ +// RUN: -triple=mips-none-none < /dev/null \ +// RUN: | FileCheck -check-prefix MIPS-FABI-HARD %s +// MIPS-FABI-HARD:#define __mips_hard_float 1 +// +// RUN: %clang_cc1 -target-feature +soft-float -E -dM -ffreestanding \ +// RUN: -triple=mips-none-none < /dev/null \ +// RUN: | FileCheck -check-prefix MIPS-FABI-SOFT %s +// MIPS-FABI-SOFT:#define __mips_soft_float 1 +// +// RUN: %clang_cc1 -target-feature +single-float -E -dM -ffreestanding \ +// RUN: -triple=mips-none-none < /dev/null \ +// RUN: | FileCheck -check-prefix MIPS-FABI-SINGLE %s +// MIPS-FABI-SINGLE:#define __mips_single_float 1 +// // RUN: %clang_cc1 -E -dM -ffreestanding -triple=msp430-none-none < /dev/null | FileCheck -check-prefix MSP430 %s // // MSP430:#define MSP430 1 |