diff options
author | Anton Korobeynikov <anton@korobeynikov.info> | 2019-01-15 19:44:05 +0000 |
---|---|---|
committer | Anton Korobeynikov <anton@korobeynikov.info> | 2019-01-15 19:44:05 +0000 |
commit | 24cbd12df6054059a515b917e68e890603fecc3e (patch) | |
tree | 47e140d5318d6c3216bd4ab27faeead08f0337b8 /test/Driver/msp430-mmcu.c | |
parent | 0fafc3882334b5e55897aecb828afecb852256af (diff) | |
download | clang-24cbd12df6054059a515b917e68e890603fecc3e.tar.gz |
[MSP430] Provide a toolchain description
This is an initial implementation for msp430 toolchain including
-mmcu option support
-mhwmult options support
-integrated-as by default
The toolchain uses msp430-elf-as as a linker and supports msp430-gcc toolchain tree.
Patch by Kristina Bessonova!
Differential Revision: https://reviews.llvm.org/D56658
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@351228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/msp430-mmcu.c')
-rw-r--r-- | test/Driver/msp430-mmcu.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Driver/msp430-mmcu.c b/test/Driver/msp430-mmcu.c new file mode 100644 index 0000000000..42caacb97f --- /dev/null +++ b/test/Driver/msp430-mmcu.c @@ -0,0 +1,16 @@ +// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mmcu=msp430c111 2>&1 \ +// RUN: | FileCheck -check-prefix=MSP430-C111 %s + +// MSP430-C111: clang{{.*}} "-cc1" {{.*}} "-D__MSP430C111__" +// MSP430-C111: msp430-elf-ld{{.*}} "-Tmsp430c111.ld" + +// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mmcu=msp430i2020 2>&1 \ +// RUN: | FileCheck -check-prefix=MSP430-I2020 %s + +// MSP430-I2020: clang{{.*}} "-cc1" {{.*}} "-D__MSP430i2020__" +// MSP430-I2020: msp430-elf-ld{{.*}} "-Tmsp430i2020.ld" + +// RUN: %clang %s -### -no-canonical-prefixes -target msp430 -mmcu=not-a-mcu 2>&1 \ +// RUN: | FileCheck -check-prefix=MSP430-UNSUP %s + +// MSP430-UNSUP: error: the clang compiler does not support 'not-a-mcu' |