2019-01-16 03:44:05 +08:00
|
|
|
// A basic clang -cc1 command-line, and simple environment check.
|
|
|
|
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=CC1 %s
|
|
|
|
// CC1: clang{{.*}} "-cc1" "-triple" "msp430"
|
|
|
|
|
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 \
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/basic_msp430_tree --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430 %s
|
|
|
|
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430: "{{.*}}Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}bin{{/|\\\\}}msp430-elf-ld"
|
2019-01-16 03:44:05 +08:00
|
|
|
// MSP430: "-L{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/430"
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430: "-L{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}msp430-elf{{/|\\\\}}lib/430"
|
|
|
|
// MSP430: "{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}msp430-elf{{/|\\\\}}lib/430{{/|\\\\}}crt0.o"
|
|
|
|
// MSP430: "{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/430{{/|\\\\}}crtbegin.o"
|
2019-01-16 03:44:05 +08:00
|
|
|
// MSP430: "--start-group" "-lmul_none" "-lgcc" "-lc" "-lcrt" "-lnosys" "--end-group"
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430: "{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/430{{/|\\\\}}crtend.o"
|
|
|
|
// MSP430: "{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}msp430-elf{{/|\\\\}}lib/430{{/|\\\\}}crtn.o"
|
2019-01-16 03:44:05 +08:00
|
|
|
|
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -nodefaultlibs \
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/basic_msp430_tree --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-NO-DFT-LIB %s
|
|
|
|
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430-NO-DFT-LIB: "{{.*}}Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}bin{{/|\\\\}}msp430-elf-ld"
|
2019-01-16 03:44:05 +08:00
|
|
|
// MSP430-NO-DFT-LIB: "-L{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/430"
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430-NO-DFT-LIB: "-L{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}msp430-elf{{/|\\\\}}lib/430"
|
|
|
|
// MSP430-NO-DFT-LIB: "{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}msp430-elf{{/|\\\\}}lib/430{{/|\\\\}}crt0.o"
|
|
|
|
// MSP430-NO-DFT-LIB: "{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/430{{/|\\\\}}crtbegin.o"
|
2019-01-16 03:44:05 +08:00
|
|
|
// MSP430-NO-DFT-LIB: "--start-group" "-lmul_none" "-lgcc" "--end-group"
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430-NO-DFT-LIB: "{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/430{{/|\\\\}}crtend.o"
|
|
|
|
// MSP430-NO-DFT-LIB: "{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}msp430-elf{{/|\\\\}}lib/430{{/|\\\\}}crtn.o"
|
2019-01-16 03:44:05 +08:00
|
|
|
|
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -nostartfiles \
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/basic_msp430_tree --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-NO-START %s
|
|
|
|
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430-NO-START: "{{.*}}Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}bin{{/|\\\\}}msp430-elf-ld"
|
2019-01-16 03:44:05 +08:00
|
|
|
// MSP430-NO-START: "-L{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/430"
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430-NO-START: "-L{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}msp430-elf{{/|\\\\}}lib/430"
|
2019-01-16 03:44:05 +08:00
|
|
|
// MSP430-NO-START: "--start-group" "-lmul_none" "-lgcc" "-lc" "-lcrt" "-lnosys" "--end-group"
|
|
|
|
|
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -nostdlib \
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: --gcc-toolchain=%S/Inputs/basic_msp430_tree --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-NO-STD-LIB %s
|
|
|
|
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430-NO-STD-LIB: "{{.*}}Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}bin{{/|\\\\}}msp430-elf-ld"
|
2019-01-16 03:44:05 +08:00
|
|
|
// MSP430-NO-STD-LIB: "-L{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/430"
|
2019-01-16 21:28:30 +08:00
|
|
|
// MSP430-NO-STD-LIB: "-L{{.*}}/Inputs/basic_msp430_tree/lib/gcc/msp430-elf/7.3.1/../../..{{/|\\\\}}..{{/|\\\\}}msp430-elf{{/|\\\\}}lib/430"
|
2019-01-16 03:44:05 +08:00
|
|
|
// MSP430-NO-STD-LIB: "--start-group" "-lmul_none" "-lgcc" "--end-group"
|
|
|
|
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mmcu=msp430f147 --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-16BIT %s
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mmcu=msp430f147 -mhwmult=auto --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-16BIT %s
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mhwmult=16bit --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-16BIT %s
|
|
|
|
|
|
|
|
// MSP430-HWMult-16BIT: "--start-group" "-lmul_16"
|
|
|
|
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mmcu=msp430f4783 --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-32BIT %s
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mmcu=msp430f4783 -mhwmult=auto --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-32BIT %s
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mhwmult=32bit --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-32BIT %s
|
|
|
|
|
|
|
|
// MSP430-HWMult-32BIT: "--start-group" "-lmul_32"
|
|
|
|
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mhwmult=f5series --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-F5 %s
|
|
|
|
// MSP430-HWMult-F5: "--start-group" "-lmul_f5"
|
|
|
|
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mhwmult=none --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-NONE %s
|
2019-09-28 20:21:06 +08:00
|
|
|
// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mhwmult=none -mmcu=msp430f4783 --sysroot="" 2>&1 \
|
2019-01-16 03:44:05 +08:00
|
|
|
// RUN: | FileCheck -check-prefix=MSP430-HWMult-NONE %s
|
|
|
|
|
|
|
|
// MSP430-HWMult-NONE: "--start-group" "-lmul_none"
|