diff options
author | Tim Northover <tnorthover@apple.com> | 2016-05-13 21:26:45 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-05-13 21:26:45 +0000 |
commit | 862eaf8a12d62898469e1169c1bb5d1fa7b1e30b (patch) | |
tree | acd876f58184bf1b31cbf232d5f04030d8c82a0d /clang/test/Preprocessor | |
parent | 963a6d9c69c9d18b57543f751d5de05f9578dc1d (diff) | |
download | bcm5719-llvm-862eaf8a12d62898469e1169c1bb5d1fa7b1e30b.tar.gz bcm5719-llvm-862eaf8a12d62898469e1169c1bb5d1fa7b1e30b.zip |
ARM-MachO: stop claiming to be EABI
Embedded ARM MachO targets are AAPCS but not full EABI (we don't use
__aeabi_whatever and the functions are allowed to be hard-float).
Turns out there was already a test for this, but its original purpose had
become corrupted over the years.
llvm-svn: 269487
Diffstat (limited to 'clang/test/Preprocessor')
-rw-r--r-- | clang/test/Preprocessor/init.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/clang/test/Preprocessor/init.c b/clang/test/Preprocessor/init.c index 6a45a965003..46e838be912 100644 --- a/clang/test/Preprocessor/init.c +++ b/clang/test/Preprocessor/init.c @@ -2170,13 +2170,13 @@ // RUN: %clang_cc1 -E -dM -ffreestanding -triple=arm-none-eabi < /dev/null | FileCheck -match-full-lines -check-prefix ARM-NONE-EABI %s // ARM-NONE-EABI: #define __ELF__ 1 -// RUN: %clang -target arm-apple-darwin-eabi -arch armv7s -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-DARWIN-NO-EABI %s -// RUN: %clang -target arm-apple-darwin-eabi -arch armv6m -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-DARWIN-EABI %s -// RUN: %clang -target arm-apple-darwin-eabi -arch armv7m -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-DARWIN-EABI %s -// RUN: %clang -target arm-apple-darwin-eabi -arch armv7em -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-DARWIN-EABI %s -// RUN: %clang -target thumbv7-apple-darwin-eabi -arch armv7 -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-DARWIN-NO-EABI %s -// ARM-DARWIN-NO-EABI-NOT: #define __ARM_EABI__ 1 -// ARM-DARWIN-EABI: #define __ARM_EABI__ 1 +// No MachO targets use the full EABI, even if AAPCS is used. +// RUN: %clang -target x86_64-apple-darwin -arch armv7s -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-MACHO-NO-EABI %s +// RUN: %clang -target x86_64-apple-darwin -arch armv6m -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-MACHO-NO-EABI %s +// RUN: %clang -target x86_64-apple-darwin -arch armv7m -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-MACHO-NO-EABI %s +// RUN: %clang -target x86_64-apple-darwin -arch armv7em -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-MACHO-NO-EABI %s +// RUN: %clang -target x86_64-apple-darwin -arch armv7 -x c -E -dM %s -o - | FileCheck -match-full-lines --check-prefix=ARM-MACHO-NO-EABI %s +// ARM-MACHO-NO-EABI-NOT: #define __ARM_EABI__ 1 // RUN: %clang_cc1 -E -dM -ffreestanding -triple=armv7-bitrig-gnueabihf < /dev/null | FileCheck -match-full-lines -check-prefix ARM-BITRIG %s // ARM-BITRIG:#define __ARM_DWARF_EH__ 1 |