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 @ Make sure correct diagnostics are given for CPUs without support for 23 @ one or other of the execution states. 24 .thumb 25 .arm 26 .code 16 27 .code 32 28@ CHECK-ARM-THUMB-NOT: target does not support 29 30@ CHECK-ARM-ONLY: target does not support Thumb mode 31@ CHECK-ARM-ONLY: target does not support Thumb mode 32 33@ CHECK-THUMB-ONLY: target does not support ARM mode 34@ CHECK-THUMB-ONLY: target does not support ARM mode 35