annotate clang/test/Driver/miamcu-opt.c @ 222:81f6424ef0e3 llvm-original

LLVM original branch
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 18 Jul 2021 22:10:01 +0900 (2021-07-18)
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // REQUIRES: clang-driver
anatofuz
parents:
diff changeset
2 // REQUIRES: x86-registered-target
anatofuz
parents:
diff changeset
3 //
anatofuz
parents:
diff changeset
4 // RUN: %clang -miamcu -rtlib=platform -no-canonical-prefixes %s -### -o %t.o 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
5 // RUN: %clang -miamcu -rtlib=platform -no-canonical-prefixes -m32 %s -### -o %t.o 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
6 // RUN: %clang -miamcu -rtlib=platform -no-canonical-prefixes -target x86_64-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
7 // RUN: %clang -mno-iamcu -miamcu -rtlib=platform -no-canonical-prefixes %s -### -o %t.o 2>&1 | FileCheck %s
anatofuz
parents:
diff changeset
8 // RUN: %clang -miamcu -rtlib=platform -no-canonical-prefixes -m64 %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=M64
anatofuz
parents:
diff changeset
9 // RUN: %clang -miamcu -rtlib=platform -no-canonical-prefixes -dynamic %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=DYNAMIC
anatofuz
parents:
diff changeset
10 // RUN: %clang -miamcu -rtlib=platform -no-canonical-prefixes -target armv8-eabi %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=NOT-X86
anatofuz
parents:
diff changeset
11 // RUN: %clang -miamcu -mno-iamcu -no-canonical-prefixes -target x86_64-unknown-linux-gnu %s -### -o %t.o 2>&1 | FileCheck %s -check-prefix=MNOIAMCU
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // M64: error: invalid argument '-miamcu' not allowed with '-m64'
anatofuz
parents:
diff changeset
14
anatofuz
parents:
diff changeset
15 // DYNAMIC: error: invalid argument '-dynamic' not allowed with '-static'
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 // NOT-X86: error: unsupported option '-miamcu' for target 'armv8-unknown-unknown-eabi'
anatofuz
parents:
diff changeset
18
anatofuz
parents:
diff changeset
19 // MNOIAMCU-NOT: "-triple" "i586-intel-elfiamcu"
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // CHECK: "{{.*}}clang{{.*}}" "-cc1"
anatofuz
parents:
diff changeset
22 // CHECK: "-triple" "i586-intel-elfiamcu"
anatofuz
parents:
diff changeset
23 // CHECK: "-static-define"
anatofuz
parents:
diff changeset
24 // CHECK: "-mfloat-abi" "soft"
anatofuz
parents:
diff changeset
25 // CHECK: "-mstack-alignment=4"
anatofuz
parents:
diff changeset
26
anatofuz
parents:
diff changeset
27 // CHECK: "{{.*}}ld{{(.exe)?}}"
anatofuz
parents:
diff changeset
28 // CHECK: "-m" "elf_iamcu"
anatofuz
parents:
diff changeset
29 // CHECK: "-static"
anatofuz
parents:
diff changeset
30 // CHECK-NOT: crt1
anatofuz
parents:
diff changeset
31 // CHECK-NOT: crti
anatofuz
parents:
diff changeset
32 // CHECK-NOT: ctrbegin
anatofuz
parents:
diff changeset
33 // CHECK: crt0
anatofuz
parents:
diff changeset
34 // CHECK: "--start-group" "-lgcc" "-lc" "-lgloss" "--end-group" "--as-needed" "-lsoftfp" "--no-as-needed"
anatofuz
parents:
diff changeset
35 // CHECK-NOT: crtend
anatofuz
parents:
diff changeset
36 // CHECK-NOT: ctrn