forked from OSchip/llvm-project
[ARM64] Add ARM64 RUN lines to a bunch of tests that had AARCH64 RUN lines.
This covers all tests in tests/Driver and tests/Preprocessor, but there are some failing tests in test/Sema that need looking into. llvm-svn: 206464
This commit is contained in:
parent
ec78aa46f2
commit
96061a6db1
|
@ -55,3 +55,12 @@
|
|||
// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
|
||||
// RUN: -target aarch64-none-none-eabi \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-INIT-ARRAY %s
|
||||
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
|
||||
// RUN: -target arm64-none-linux-gnu \
|
||||
// RUN: --sysroot=%S/Inputs/basic_linux_tree \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-INIT-ARRAY %s
|
||||
//
|
||||
// RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \
|
||||
// RUN: -target arm64-none-none-eabi \
|
||||
// RUN: | FileCheck --check-prefix=CHECK-INIT-ARRAY %s
|
||||
|
|
|
@ -13,6 +13,12 @@
|
|||
// RUN: %clang -no-canonical-prefixes -target aarch64--netbsd7.0.0 \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=AARCH64-7 %s
|
||||
// RUN: %clang -no-canonical-prefixes -target arm64--netbsd \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=ARM64 %s
|
||||
// RUN: %clang -no-canonical-prefixes -target arm64--netbsd7.0.0 \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=ARM64-7 %s
|
||||
// RUN: %clang -no-canonical-prefixes -target arm--netbsd-eabi \
|
||||
// RUN: -no-integrated-as --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=ARM %s
|
||||
|
@ -53,6 +59,12 @@
|
|||
// RUN: %clang -no-canonical-prefixes -target aarch64--netbsd7.0.0 -static \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=S-AARCH64-7 %s
|
||||
// RUN: %clang -no-canonical-prefixes -target arm64--netbsd -static \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=S-ARM64 %s
|
||||
// RUN: %clang -no-canonical-prefixes -target arm64--netbsd7.0.0 -static \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=S-ARM64-7 %s
|
||||
// RUN: %clang -no-canonical-prefixes -target arm--netbsd-eabi -static \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=S-ARM %s
|
||||
|
@ -101,6 +113,20 @@
|
|||
// AARCH64-7: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// AARCH64-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// ARM64: clang{{.*}}" "-cc1" "-triple" "arm64--netbsd"
|
||||
// ARM64: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so"
|
||||
// ARM64: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// ARM64: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc"
|
||||
// ARM64: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// ARM64: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// ARM64-7: clang{{.*}}" "-cc1" "-triple" "arm64--netbsd7.0.0"
|
||||
// ARM64-7: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so"
|
||||
// ARM64-7: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// ARM64-7: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc"
|
||||
// ARM64-7: "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// ARM64-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// ARM: clang{{.*}}" "-cc1" "-triple" "armv5e--netbsd-eabi"
|
||||
// ARM: as{{.*}}" "-mcpu=arm926ej-s" "-o"
|
||||
// ARM: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so"
|
||||
|
@ -197,6 +223,20 @@
|
|||
// S-AARCH64-7: "-lgcc_eh" "-lc" "-lgcc"
|
||||
// S-AARCH64-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// S-ARM64: clang{{.*}}" "-cc1" "-triple" "arm64--netbsd"
|
||||
// S-ARM64: ld{{.*}}" "--eh-frame-hdr" "-Bstatic"
|
||||
// S-ARM64: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// S-ARM64: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc"
|
||||
// S-ARM64: "-lgcc_eh" "-lc" "-lgcc"
|
||||
// S-ARM64: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// S-ARM64-7: clang{{.*}}" "-cc1" "-triple" "arm64--netbsd7.0.0"
|
||||
// S-ARM64-7: ld{{.*}}" "--eh-frame-hdr" "-Bstatic"
|
||||
// S-ARM64-7: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// S-ARM64-7: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lc"
|
||||
// S-ARM64-7: "-lgcc_eh" "-lc" "-lgcc"
|
||||
// S-ARM64-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// S-ARM: clang{{.*}}" "-cc1" "-triple" "armv5e--netbsd-eabi"
|
||||
// S-ARM: ld{{.*}}" "--eh-frame-hdr" "-Bstatic"
|
||||
// S-ARM: "-m" "armelf_nbsd_eabi"
|
||||
|
|
|
@ -13,6 +13,12 @@
|
|||
// RUN: %clangxx -no-canonical-prefixes -target aarch64--netbsd7.0.0 \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=AARCH64-7 %s
|
||||
// RUN: %clangxx -no-canonical-prefixes -target arm64--netbsd \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=ARM64 %s
|
||||
// RUN: %clangxx -no-canonical-prefixes -target arm64--netbsd7.0.0 \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=ARM64-7 %s
|
||||
// RUN: %clangxx -no-canonical-prefixes -target sparc--netbsd \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=SPARC %s
|
||||
|
@ -35,6 +41,12 @@
|
|||
// RUN: %clangxx -no-canonical-prefixes -target aarch64--netbsd7.0.0 -static \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=S-AARCH64-7 %s
|
||||
// RUN: %clangxx -no-canonical-prefixes -target arm64--netbsd -static \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=S-ARM64 %s
|
||||
// RUN: %clangxx -no-canonical-prefixes -target arm64--netbsd7.0.0 -static \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=S-ARM64-7 %s
|
||||
// RUN: %clangxx -no-canonical-prefixes -target sparc--netbsd -static \
|
||||
// RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \
|
||||
// RUN: | FileCheck -check-prefix=S-SPARC %s
|
||||
|
@ -75,6 +87,20 @@
|
|||
// AARCH64-7: "-lm" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// AARCH64-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// ARM64: clang{{.*}}" "-cc1" "-triple" "arm64--netbsd"
|
||||
// ARM64: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so"
|
||||
// ARM64: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// ARM64: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lstdc++"
|
||||
// ARM64: "-lm" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// ARM64: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// ARM64-7: clang{{.*}}" "-cc1" "-triple" "arm64--netbsd7.0.0"
|
||||
// ARM64-7: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so"
|
||||
// ARM64-7: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// ARM64-7: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lstdc++"
|
||||
// ARM64-7: "-lm" "-lc" "-lgcc" "--as-needed" "-lgcc_s" "--no-as-needed"
|
||||
// ARM64-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// SPARC: clang{{.*}}" "-cc1" "-triple" "sparc--netbsd"
|
||||
// SPARC: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so"
|
||||
// SPARC: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o"
|
||||
|
@ -123,6 +149,20 @@
|
|||
// S-AARCH64-7: "-lm" "-lc" "-lgcc_eh" "-lc" "-lgcc"
|
||||
// S-AARCH64-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// S-ARM64: clang{{.*}}" "-cc1" "-triple" "arm64--netbsd"
|
||||
// S-ARM64: ld{{.*}}" "-Bstatic"
|
||||
// S-ARM64: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// S-ARM64: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lstdc++"
|
||||
// S-ARM64: "-lm" "-lc" "-lgcc_eh" "-lc" "-lgcc"
|
||||
// S-ARM64: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// S-ARM64-7: clang{{.*}}" "-cc1" "-triple" "arm64--netbsd7.0.0"
|
||||
// S-ARM64-7: ld{{.*}}" "-Bstatic"
|
||||
// S-ARM64-7: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o" "{{.*}}/usr/lib{{/|\\\\}}crti.o"
|
||||
// S-ARM64-7: "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" "{{.*}}.o" "-lstdc++"
|
||||
// S-ARM64-7: "-lm" "-lc" "-lgcc_eh" "-lc" "-lgcc"
|
||||
// S-ARM64-7: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o"
|
||||
|
||||
// S-SPARC: clang{{.*}}" "-cc1" "-triple" "sparc--netbsd"
|
||||
// S-SPARC: ld{{.*}}" "-Bstatic"
|
||||
// S-SPARC: "-o" "a.out" "{{.*}}/usr/lib{{/|\\\\}}crt0.o"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang -target aarch64-none-linux-gnu -x c -E -dM %s -o - | FileCheck %s
|
||||
// RUN: %clang -target arm64-none-linux-gnu -x c -E -dM %s -o - | FileCheck %s
|
||||
|
||||
// CHECK: __AARCH64EL__ 1
|
||||
// CHECK: __ARM_64BIT_STATE 1
|
||||
|
|
|
@ -213,6 +213,7 @@
|
|||
// Other definitions vary from platform to platform
|
||||
|
||||
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=aarch64-none-none < /dev/null | FileCheck -check-prefix AARCH64 %s
|
||||
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=arm64-none-none < /dev/null | FileCheck -check-prefix AARCH64 %s
|
||||
//
|
||||
// AARCH64:#define _LP64 1
|
||||
// AARCH64-NOT:#define __AARCH64EB__ 1
|
||||
|
@ -315,6 +316,7 @@
|
|||
// AARCH64:#define __aarch64__ 1
|
||||
//
|
||||
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=aarch64_be-none-none < /dev/null | FileCheck -check-prefix AARCH64-BE %s
|
||||
// RUN: %clang_cc1 -E -dM -ffreestanding -triple=arm64_be-none-none < /dev/null | FileCheck -check-prefix AARCH64-BE %s
|
||||
//
|
||||
// AARCH64-BE:#define _LP64 1
|
||||
// AARCH64-BE:#define __AARCH64EB__ 1
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -ffreestanding -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -triple arm64-linux-gnu -target-feature +neon -ffreestanding -fsyntax-only -verify %s
|
||||
|
||||
#include <arm_neon.h>
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
// RUN: %clang_cc1 %s -triple aarch64-none-linux-gnu -target-feature +neon -fsyntax-only -verify
|
||||
// RUN: %clang_cc1 %s -triple aarch64-none-linux-gnu -target-feature +neon -DUSE_LONG -fsyntax-only -verify
|
||||
// RUN: %clang_cc1 %s -triple arm64-none-linux-gnu -target-feature +neon -fsyntax-only -verify
|
||||
// RUN: %clang_cc1 %s -triple arm64-none-linux-gnu -target-feature +neon -DUSE_LONG -fsyntax-only -verify
|
||||
|
||||
typedef float float32_t;
|
||||
typedef unsigned char poly8_t;
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -DTEST1 -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -fsyntax-only -verify %s
|
||||
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -DTEST1 -fsyntax-only -verify %s
|
||||
|
||||
#ifdef TEST1
|
||||
void __clear_cache(void *start, void *end);
|
||||
|
|
Loading…
Reference in New Issue