Introduce CPUStringIsValid() into MCSubtargetInfo and use it for ARM .cpu parsing.
[oota-llvm.git] / test / MC / ARM / cpu-test.s
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
8 dsb
9 .cpu arm9       
10 // CHECK-ERROR: error: instruction requires: data-barriers
11 dsb
12 // CHECK-ERROR: error: Unknown CPU name
13 .cpu foobar