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 | 5e21c800e8b85667777b052d0573f0a7207ac970 (patch) | |
| tree | c6848a0ca8e79138e7b3625b676fe88a4a9a3828 /clang/test | |
| parent | 967b86a0a24e6c7c1a2b51818584edbb4f92aa45 (diff) | |
| download | bcm5719-llvm-5e21c800e8b85667777b052d0573f0a7207ac970.tar.gz bcm5719-llvm-5e21c800e8b85667777b052d0573f0a7207ac970.zip | |
MIPS: Move tests check float ABI macros definitions to the more appropriate place.
llvm-svn: 154184
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/Driver/mips-float.c | 17 | ||||
| -rw-r--r-- | clang/test/Preprocessor/init.c | 17 |
2 files changed, 17 insertions, 17 deletions
diff --git a/clang/test/Driver/mips-float.c b/clang/test/Driver/mips-float.c index 4a666eefaf0..87372726538 100644 --- a/clang/test/Driver/mips-float.c +++ b/clang/test/Driver/mips-float.c @@ -40,20 +40,3 @@ // RUN: -target mips-linux-gnu -mfloat-abi=single \ // RUN: | FileCheck --check-prefix=CHECK-ABI-SINGLE %s // CHECK-ABI-SINGLE: "-target-feature" "+single-float" -// -// Let's check float ABI related macros. -// -// -mfloat-abi=hard -// RUN: %clang -c %s -dM -E 2>&1 \ -// RUN: -target mips-linux-gnu -mfloat-abi=hard \ -// RUN: | grep "#define __mips_hard_float 1" -// -// -mfloat-abi=soft -// RUN: %clang -c %s -dM -E 2>&1 \ -// RUN: -target mips-linux-gnu -mfloat-abi=soft \ -// RUN: | grep "#define __mips_soft_float 1" -// -// -mfloat-abi=single -// RUN: %clang -c %s -dM -E 2>&1 \ -// RUN: -target mips-linux-gnu -mfloat-abi=single \ -// RUN: | grep "#define __mips_single_float 1" diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c index ae22aafa3c0..e0f45f17283 100644 --- a/clang/test/Preprocessor/init.c +++ b/clang/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 |

