• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@ RUN: not llvm-mc -triple=thumbv7m-apple-darwin -show-encoding < %s 2> %t
2@ RUN: FileCheck < %t %s
3@ RUN: not llvm-mc -triple=thumbv6m -show-encoding < %s 2> %t
4@ RUN: FileCheck < %t %s
5  .syntax unified
6  .globl _func
7
8@ Check that the assembler rejects thumb instructions that are not valid
9@ on mclass.
10
11@------------------------------------------------------------------------------
12@ BLX (immediate)
13@------------------------------------------------------------------------------
14        blx _baz
15
16@ CHECK: error: instruction requires: !armv*m
17
18@------------------------------------------------------------------------------
19@ SETEND
20@------------------------------------------------------------------------------
21
22        setend be
23        setend le
24
25@ CHECK: error: invalid operand for instruction
26@ CHECK: error: invalid operand for instruction
27