ARM: improve instruction validation for thumb mode
[oota-llvm.git] / test / MC / ARM / coproc-diag.s
1 # Special test to make sure we don't error on VFP co-proc access
2 @ RUN: llvm-mc -triple=armv5 < %s | FileCheck %s
3 @ RUN: llvm-mc -triple=armv6 < %s | FileCheck %s
4
5         @ p10 and p11 are reserved for NEON, but accessible on v5/v6
6         ldc  p10, cr0, [r0], {0x20}
7         ldc2 p11, cr0, [r0], {0x21}
8         ldcl p11, cr0, [r0], {0x20}
9
10 @ CHECK-NOT: error: invalid operand for instruction