aboutsummaryrefslogtreecommitdiffstats
path: root/test/MC/ARM/arm-thumb-cpus.s
blob: 9005c7f2a17486ca7c08487a7834713df25c4964 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@ RUN: not llvm-mc -show-encoding -triple=arm-eabi < %s 2>&1 \
@ RUN:  | FileCheck %s --check-prefix=CHECK-ARM-ONLY

@ RUN: llvm-mc -show-encoding -triple=armv4t < %s 2>&1 \
@ RUN:  | FileCheck %s --check-prefix=CHECK-ARM-THUMB

@ RUN: llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-a15 < %s 2>&1 \
@ RUN:  | FileCheck %s --check-prefix=CHECK-ARM-THUMB

@ RUN: not llvm-mc -show-encoding -triple=arm-eabi -mcpu=cortex-m3 < %s 2>&1 \
@ RUN:  | FileCheck %s --check-prefix=CHECK-THUMB-ONLY

@ RUN: not llvm-mc -show-encoding -triple=armv7m-eabi < %s 2>&1 \
@ RUN:  | FileCheck %s --check-prefix=CHECK-THUMB-ONLY

@ RUN: not llvm-mc -show-encoding -triple=armv6m-eabi < %s 2>&1 \
@ RUN:  | FileCheck %s --check-prefix=CHECK-THUMB-ONLY

        @ Make sure correct diagnostics are given for CPUs without support for
        @ one or other of the execution states.
        .thumb
        .arm
        .code 16
        .code 32
@ CHECK-ARM-THUMB-NOT: target does not support

@ CHECK-ARM-ONLY: target does not support Thumb mode
@ CHECK-ARM-ONLY: target does not support Thumb mode

@ CHECK-THUMB-ONLY: target does not support ARM mode
@ CHECK-THUMB-ONLY: target does not support ARM mode