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