annotate clang/test/Driver/arm-execute-only.c @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children c4bab56944e8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: not %clang -c -target thumbv6m-eabi -mexecute-only %s 2>&1 | \
anatofuz
parents:
diff changeset
2 // RUN: FileCheck --check-prefix CHECK-EXECUTE-ONLY-NOT-SUPPORTED %s
anatofuz
parents:
diff changeset
3 // CHECK-EXECUTE-ONLY-NOT-SUPPORTED: error: execute only is not supported for the thumbv6m sub-architecture
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 // RUN: not %clang -target armv8m.main-eabi -mexecute-only -mno-movt %s 2>&1 \
anatofuz
parents:
diff changeset
6 // RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY-NO-MOVT
anatofuz
parents:
diff changeset
7 // CHECK-EXECUTE-ONLY-NO-MOVT: error: option '-mexecute-only' cannot be specified with '-mno-movt'
anatofuz
parents:
diff changeset
8
anatofuz
parents:
diff changeset
9 // RUN: not %clang -target armv8m.main-eabi -mexecute-only -mlong-calls %s 2>&1 \
anatofuz
parents:
diff changeset
10 // RUN: | FileCheck %s -check-prefix CHECK-EXECUTE-ONLY-LONG-CALLS
anatofuz
parents:
diff changeset
11 // CHECK-EXECUTE-ONLY-LONG-CALLS: error: option '-mexecute-only' cannot be specified with '-mlong-calls'
anatofuz
parents:
diff changeset
12
anatofuz
parents:
diff changeset
13 // RUN: %clang -target armv7m-eabi -x assembler -mexecute-only %s -c -### 2>&1 \
221
79ff65ed7e25 LLVM12 Original
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 150
diff changeset
14 // RUN: | FileCheck %s --check-prefix=CHECK-NO-EXECUTE-ONLY-ASM
150
anatofuz
parents:
diff changeset
15 // CHECK-NO-EXECUTE-ONLY-ASM: warning: argument unused during compilation: '-mexecute-only'
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 // -mpure-code flag for GCC compatibility
anatofuz
parents:
diff changeset
18 // RUN: not %clang -c -target thumbv6m-eabi -mpure-code %s 2>&1 | \
anatofuz
parents:
diff changeset
19 // RUN: FileCheck --check-prefix CHECK-EXECUTE-ONLY-NOT-SUPPORTED %s
anatofuz
parents:
diff changeset
20
anatofuz
parents:
diff changeset
21 // RUN: not %clang -target armv8m.main-eabi -mpure-code -mno-movt %s 2>&1 \
anatofuz
parents:
diff changeset
22 // RUN: | FileCheck %s -check-prefix CHECK-PURE-CODE-NO-MOVT
anatofuz
parents:
diff changeset
23 // CHECK-PURE-CODE-NO-MOVT: error: option '-mpure-code' cannot be specified with '-mno-movt'
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 // RUN: not %clang -target armv8m.main-eabi -mpure-code -mlong-calls %s 2>&1 \
anatofuz
parents:
diff changeset
26 // RUN: | FileCheck %s -check-prefix CHECK-PURE-CODE-LONG-CALLS
anatofuz
parents:
diff changeset
27 // CHECK-PURE-CODE-LONG-CALLS: error: option '-mpure-code' cannot be specified with '-mlong-calls'