1 // Check frontend and linker invocations on reduced Debian MIPS toolchain. 2 // This toolchain icludes O32 ABI only. 3 4 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 5 // RUN: --target=mips-linux-gnu \ 6 // RUN: --sysroot=%S/Inputs/debian_reduced_mips_tree \ 7 // RUN: --gcc-toolchain="" \ 8 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-MIPS %s 9 // CHECK-DEBIAN-MIPS: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 10 // CHECK-DEBIAN-MIPS: "{{.*}}/usr/lib/gcc/mips-linux-gnu/4.7{{/|\\\\}}crtbegin.o" 11 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7" 12 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7/../../../mips-linux-gnu" 13 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/mips-linux-gnu" 14 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7/../../.." 15 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/lib" 16 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib" 17 18 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 19 // RUN: --target=mipsel-linux-gnu \ 20 // RUN: --sysroot=%S/Inputs/debian_reduced_mips_tree \ 21 // RUN: --gcc-toolchain="" \ 22 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-MIPSEL %s 23 // CHECK-DEBIAN-MIPSEL: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 24 // CHECK-DEBIAN-MIPSEL: "{{.*}}/usr/lib/gcc/mipsel-linux-gnu/4.7{{/|\\\\}}crtbegin.o" 25 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7" 26 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu" 27 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/mipsel-linux-gnu" 28 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7/../../.." 29 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/lib" 30 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib" 31