From 83ab070fc1fbb02ca77b0a37e6ae0eacf58001e1 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Wed, 13 Jul 2011 22:01:08 +0000 Subject: Range checking for CDP[2] immediates. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135092 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ARM/diagnostics.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/MC/ARM/diagnostics.s') diff --git a/test/MC/ARM/diagnostics.s b/test/MC/ARM/diagnostics.s index bf8f125..4069fea 100644 --- a/test/MC/ARM/diagnostics.s +++ b/test/MC/ARM/diagnostics.s @@ -46,3 +46,16 @@ bkpt #65536 @ CHECK-ERRORS: error: invalid operand for instruction + + @ Out of range 4 and 3 bit immediates on CDP[2] + + @ Out of range immediates for CDP/CDP2 + cdp p7, #2, c1, c1, c1, #8 + cdp p7, #1, c1, c1, c1, #8 + cdp2 p7, #2, c1, c1, c1, #8 + cdp2 p7, #1, c1, c1, c1, #8 + +@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: error: invalid operand for instruction +@ CHECK-ERRORS: error: invalid operand for instruction -- cgit v1.1