[llvm] r214872 - Add tests for cp10/cp11 on ARMv5/6

Renato Golin renato.golin at linaro.org
Tue Aug 5 08:29:41 PDT 2014


Author: rengolin
Date: Tue Aug  5 10:29:41 2014
New Revision: 214872

URL: http://llvm.org/viewvc/llvm-project?rev=214872&view=rev
Log:
Add tests for cp10/cp11 on ARMv5/6

Tests for ARMv7/8 are already on diagnostics.s

Added:
    llvm/trunk/test/MC/ARM/coproc-diag.s

Added: llvm/trunk/test/MC/ARM/coproc-diag.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/coproc-diag.s?rev=214872&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/coproc-diag.s (added)
+++ llvm/trunk/test/MC/ARM/coproc-diag.s Tue Aug  5 10:29:41 2014
@@ -0,0 +1,10 @@
+# Special test to make sure we don't error on VFP co-proc access
+@ RUN: llvm-mc -triple=armv5 < %s | FileCheck %s
+@ RUN: llvm-mc -triple=armv6 < %s | FileCheck %s
+
+        @ p10 and p11 are reserved for NEON, but accessible on v5/v6
+        ldc  p10, cr0, [r0], {0x20}
+        ldc2 p11, cr0, [r0], {0x21}
+        ldcl p11, cr0, [r0], {0x20}
+
+@ CHECK-NOT: error: invalid operand for instruction





More information about the llvm-commits mailing list