[cfe-commits] r154184 - in /cfe/trunk/test: Driver/mips-float.c Preprocessor/init.c
Simon Atanasyan
satanasyan at mips.com
Fri Apr 6 10:51:49 PDT 2012
Author: atanasyan
Date: Fri Apr 6 12:51:49 2012
New Revision: 154184
URL: http://llvm.org/viewvc/llvm-project?rev=154184&view=rev
Log:
MIPS: Move tests check float ABI macros definitions to the more appropriate place.
Modified:
cfe/trunk/test/Driver/mips-float.c
cfe/trunk/test/Preprocessor/init.c
Modified: cfe/trunk/test/Driver/mips-float.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/mips-float.c?rev=154184&r1=154183&r2=154184&view=diff
==============================================================================
--- cfe/trunk/test/Driver/mips-float.c (original)
+++ cfe/trunk/test/Driver/mips-float.c Fri Apr 6 12:51:49 2012
@@ -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"
Modified: cfe/trunk/test/Preprocessor/init.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Preprocessor/init.c?rev=154184&r1=154183&r2=154184&view=diff
==============================================================================
--- cfe/trunk/test/Preprocessor/init.c (original)
+++ cfe/trunk/test/Preprocessor/init.c Fri Apr 6 12:51:49 2012
@@ -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
More information about the cfe-commits
mailing list