r197240 - ARM MachO embedded: fix test without FileCheck line
Tim Northover
tnorthover at apple.com
Fri Dec 13 08:05:12 PST 2013
Author: tnorthover
Date: Fri Dec 13 10:05:12 2013
New Revision: 197240
URL: http://llvm.org/viewvc/llvm-project?rev=197240&view=rev
Log:
ARM MachO embedded: fix test without FileCheck line
Well, that's one way to pass a test, I suppose. Unfortunately actually doing
the testing means I didn't pass all I thought (embedded v7a is not supported,
apparently). I'll deal with that with the move to -none-macho rather than
putting heinous hacks in right now.
Modified:
cfe/trunk/test/Driver/darwin-embedded.c
Modified: cfe/trunk/test/Driver/darwin-embedded.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/darwin-embedded.c?rev=197240&r1=197239&r2=197240&view=diff
==============================================================================
--- cfe/trunk/test/Driver/darwin-embedded.c (original)
+++ cfe/trunk/test/Driver/darwin-embedded.c Fri Dec 13 10:05:12 2013
@@ -3,8 +3,10 @@
// RUN: %clang -target x86_64-apple-darwin -arch armv7em -mhard-float -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
// RUN: %clang -target x86_64-apple-darwin -arch armv7m -fPIC -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
-// RUN: %clang -target x86_64-apple-darwin -arch armv7 -fPIC -mfloat-abi=hard -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
-// RUN: %clang -target x86_64-apple-darwin-eabi -arch armv7em -fPIC -mfloat-abi=softfp -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
+// RUN: %clang -target x86_64-apple-darwin -arch armv7em -fPIC -mfloat-abi=hard -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
+// RUN: %clang -target x86_64-apple-darwin -arch armv7em -fPIC -mfloat-abi=softfp -resource-dir=%S/Inputs/resource_dir %s -### 2>> %t
+
+// RUN: FileCheck %s < %t
// ARMv6m has no float
// CHECK: libclang_rt.soft_static.a
@@ -18,9 +20,11 @@
// ARMv7m has no float either
// CHECK: libclang_rt.soft_pic.a
-// But it can be enabled on ARMv7
+// But it can be enabled on ARMv7em
// CHECK: libclang_rt.hard_pic.a
// "softfp" must link against a soft-float library since that's what the
// callers we're compiling will expect.
// CHECK: libclang_rt.soft_pic.a
+
+// FIXME: test ARMv7a when we switch to -none-macho as the triple
More information about the cfe-commits
mailing list