You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
854 B
27 lines
854 B
@ 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: error: instruction requires: !armv*m
|
|
|
|
@------------------------------------------------------------------------------
|
|
@ SETEND
|
|
@------------------------------------------------------------------------------
|
|
|
|
setend be
|
|
setend le
|
|
|
|
@ CHECK: error: invalid operand for instruction
|
|
@ CHECK: error: invalid operand for instruction
|