1// RUN: not llvm-mc -o - -triple arm-gnueabi-freebsd11.0 < %s > %t 2> %t2
2// RUN: FileCheck %s < %t
3// RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t2
4
5// CHECK: .cpu cortex-a8
6.cpu cortex-a8
7// CHECK: dsb     sy
8dsb
9.cpu arm9
10// CHECK-ERROR: error: instruction requires: data-barriers
11dsb
12// CHECK-ERROR: error: Unknown CPU name
13.cpu foobar
14// CHECK: .cpu cortex-m3
15.cpu cortex-m3
16// CHECK: sub sp, #16
17sub sp,#16
18