diff options
author | Andrey Turetskiy <andrey.turetskiy@gmail.com> | 2016-04-19 15:50:57 +0000 |
---|---|---|
committer | Andrey Turetskiy <andrey.turetskiy@gmail.com> | 2016-04-19 15:50:57 +0000 |
commit | 268cc8e48c1328a101bb5e4da91b8a78ba8a3ef4 (patch) | |
tree | fa8987f40b66dfb2234dbe6bd7c2489342c30ac5 /test/Driver/miamcu-opt.c | |
parent | e039f91f418010165fdf6b20ac8cdf023c25b777 (diff) |
Compilation for Intel MCU (Part 1/3)
Add -miamcu option which:
* Sets IAMCU triple
* Sets IAMCU ABI
* Enforces static compilation
Differential Revision: http://reviews.llvm.org/D18398
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@266747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/miamcu-opt.c')
-rw-r--r-- | test/Driver/miamcu-opt.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Driver/miamcu-opt.c b/test/Driver/miamcu-opt.c new file mode 100644 index 0000000000..0c9a926999 --- /dev/null +++ b/test/Driver/miamcu-opt.c @@ -0,0 +1,21 @@ +// RUN: %clang -miamcu %s -### -o %t.o 2>&1 | FileCheck %s +// RUN: %clang -miamcu -m32 %s -### -o %t.o 2>&1 | FileCheck %s +// RUN: %clang -miamcu -target x86_64-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck %s +// RUN: %clang -miamcu -m64 %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=M64 +// RUN: %clang -miamcu -dynamic %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=DYNAMIC +// RUN: %clang -miamcu -target armv8-eabi %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=NOT-X86 + +// M64: error: invalid argument '-miamcu' not allowed with '-m64' + +// DYNAMIC: error: invalid argument '-dynamic' not allowed with '-static' + +// NOT-X86: error: unsupported option '-miamcu' for target 'armv8---eabi' + +// CHECK: "-cc1" +// CHECK: "-triple" "i586-intel-elfiamcu" +// CHECK: "-static-define" +// CHECK: "-mfloat-abi" "soft" +// CHECK: "-mstack-alignment=4" + +// CHECK: bin/gcc +// CHECK: "-static" |