summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/ARM/thumb-not-mclass.s
blob: 00978c6a273384796cd220add5a26dcf8d536334 (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
@ RUN: not llvm-mc -triple=thumbv7m-apple-darwin -show-encoding < %s 2> %t
@ RUN: FileCheck < %t %s
@ RUN: not llvm-mc -triple=thumbv6m -show-encoding < %s 2> %t
@ RUN: FileCheck < %t %s
  .syntax unified
  .globl _func

@ Check that the assembler rejects thumb instructions that are not valid
@ on mclass.

@------------------------------------------------------------------------------
@ BLX (immediate)
@------------------------------------------------------------------------------
        blx _baz

@ CHECK: instruction requires: !armv*m

@------------------------------------------------------------------------------
@ SETEND
@------------------------------------------------------------------------------

        setend be
        setend le

@ CHECK: error: invalid instruction
@ CHECK: error: invalid instruction
OpenPOWER on IntegriCloud