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: | FileCheck --check-prefix=CHECK-DEBIAN-MIPS %s 8 // CHECK-DEBIAN-MIPS: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 9 // CHECK-DEBIAN-MIPS: "{{.*}}/usr/lib/gcc/mips-linux-gnu/4.7{{/|\\\\}}crtbegin.o" 10 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7" 11 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7/../../../mips-linux-gnu" 12 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/mips-linux-gnu" 13 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib/gcc/mips-linux-gnu/4.7/../../.." 14 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/lib" 15 // CHECK-DEBIAN-MIPS: "-L[[SYSROOT]]/usr/lib" 16 17 // RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ 18 // RUN: --target=mipsel-linux-gnu \ 19 // RUN: --sysroot=%S/Inputs/debian_reduced_mips_tree \ 20 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-MIPSEL %s 21 // CHECK-DEBIAN-MIPSEL: "{{.*}}ld{{(.exe)?}}" "--sysroot=[[SYSROOT:[^"]+]]" 22 // CHECK-DEBIAN-MIPSEL: "{{.*}}/usr/lib/gcc/mipsel-linux-gnu/4.7{{/|\\\\}}crtbegin.o" 23 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7" 24 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7/../../../mipsel-linux-gnu" 25 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/mipsel-linux-gnu" 26 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib/gcc/mipsel-linux-gnu/4.7/../../.." 27 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/lib" 28 // CHECK-DEBIAN-MIPSEL: "-L[[SYSROOT]]/usr/lib" 29