diff options
author | Simon Atanasyan <simon@atanasyan.com> | 2018-10-15 22:43:23 +0000 |
---|---|---|
committer | Simon Atanasyan <simon@atanasyan.com> | 2018-10-15 22:43:23 +0000 |
commit | db81c7b9c964db39bbc42749dc30316dd9f58eb8 (patch) | |
tree | c9fba593b08f8f80346179749bcebd13840e15a0 /clang/test/Driver/linux-ld.c | |
parent | 6d92ca61f918456726b67d124499cbf0595ba335 (diff) | |
download | bcm5719-llvm-db81c7b9c964db39bbc42749dc30316dd9f58eb8.tar.gz bcm5719-llvm-db81c7b9c964db39bbc42749dc30316dd9f58eb8.zip |
[mips] Fix handling of GNUABIN32 environment in a target triple
The `GNUABIN32` environment in a target triple implies using the N32
ABI. This patch adds support for this environment and switches on N32
ABI if necessary.
Patch by Patch by YunQiang Su.
Differential revision: https://reviews.llvm.org/D51464
llvm-svn: 344570
Diffstat (limited to 'clang/test/Driver/linux-ld.c')
-rw-r--r-- | clang/test/Driver/linux-ld.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/clang/test/Driver/linux-ld.c b/clang/test/Driver/linux-ld.c index d83513ceb0e..d44ac396689 100644 --- a/clang/test/Driver/linux-ld.c +++ b/clang/test/Driver/linux-ld.c @@ -990,6 +990,20 @@ // CHECK-ANDROID-HASH-STYLE-M: "{{.*}}ld{{(.exe)?}}" // CHECK-ANDROID-HASH-STYLE-M: "--hash-style=gnu" // +// RUN: %clang %s -### -o %t.o 2>&1 --target=mips64-linux-gnuabin32 \ +// RUN: | FileCheck --check-prefix=CHECK-MIPS64EL-GNUABIN32 %s +// CHECK-MIPS64EL-GNUABIN32: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS64EL-GNUABIN32: "-m" "elf32btsmipn32" +// CHECK-MIPS64EL-GNUABIN32: "-dynamic-linker" "{{.*}}/lib{{(32)?}}/ld.so.1" +// CHECK-MIPS64EL-GNUABIN32-NOT: "--hash-style={{gnu|both}}" +// +// RUN: %clang %s -### -o %t.o 2>&1 --target=mips64-linux-gnuabi64 \ +// RUN: | FileCheck --check-prefix=CHECK-MIPS64EL-GNUABI64 %s +// CHECK-MIPS64EL-GNUABI64: "{{.*}}ld{{(.exe)?}}" +// CHECK-MIPS64EL-GNUABI64: "-m" "elf64btsmip" +// CHECK-MIPS64EL-GNUABI64: "-dynamic-linker" "{{.*}}/lib{{(64)?}}/ld.so.1" +// CHECK-MIPS64EL-GNUABI64-NOT: "--hash-style={{gnu|both}}" +// // RUN: %clang %s -### -o %t.o 2>&1 \ // RUN: --target=sparc-unknown-linux-gnu \ // RUN: | FileCheck --check-prefix=CHECK-SPARCV8 %s |