1@ RUN: not llvm-mc -show-encoding -triple=arm-eabi < %s 2>&1 \
2@ RUN:  | FileCheck %s --check-prefix=CHECK-ARM-ONLY
3
4@ RUN: llvm-mc -show-encoding -triple=armv4t < %s 2>&1 \
5@ RUN:  | FileCheck %s --check-prefix=CHECK-ARM-THUMB
6
7@ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-a15 < %s 2>&1 \
8@ RUN:  | FileCheck %s --check-prefix=CHECK-ARM-THUMB
9
10@ RUN: not llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-m3 < %s 2>&1 \
11@ RUN:  | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
12
13@ RUN: not llvm-mc -show-encoding -triple=armv7m-eabi < %s 2>&1 \
14@ RUN:  | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
15
16@ RUN: not llvm-mc -show-encoding -triple=armv6m-eabi < %s 2>&1 \
17@ RUN:  | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
18
19@ RUN: not llvm-mc -show-encoding -triple=armv6sm-eabi < %s 2>&1 \
20@ RUN:  | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
21
22@ RUN: not llvm-mc -show-encoding -triple=thumbv7-win32-gnu < %s 2>&1 \
23@ RUN:  | FileCheck %s --check-prefix=CHECK-THUMB-ONLY
24
25        @ Make sure correct diagnostics are given for CPUs without support for
26        @ one or other of the execution states.
27        .thumb
28        .arm
29        .code 16
30        .code 32
31@ CHECK-ARM-THUMB-NOT: target does not support
32
33@ CHECK-ARM-ONLY: target does not support Thumb mode
34@ CHECK-ARM-ONLY: target does not support Thumb mode
35
36@ CHECK-THUMB-ONLY: target does not support ARM mode
37@ CHECK-THUMB-ONLY: target does not support ARM mode
38