[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AArch64 / armv8.4a-flag-error.s
blobdd34cff8ffbc596eb0e28b70cb8c87b702188eb2
1 // RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a < %s 2>&1 | FileCheck %s --check-prefix=CHECK
3 //------------------------------------------------------------------------------
4 // Armv8.4-A flag manipulation instructions
5 //------------------------------------------------------------------------------
7 rmif x1, #64, #15
8 rmif x1, #-1, #15
9 rmif x1, #63, #16
10 rmif x1, #63, #-1
11 rmif sp, #63, #1
13 //CHECK: error: immediate must be an integer in range [0, 63].
14 //CHECK-NEXT: rmif x1, #64, #15
15 //CHECK-NEXT: ^
16 //CHECK-NEXT: error: immediate must be an integer in range [0, 63].
17 //CHECK-NEXT: rmif x1, #-1, #15
18 //CHECK-NEXT: ^
19 //CHECK-NEXT: error: immediate must be an integer in range [0, 15].
20 //CHECK-NEXT: rmif x1, #63, #16
21 //CHECK-NEXT: ^
22 //CHECK-NEXT: error: immediate must be an integer in range [0, 15].
23 //CHECK-NEXT: rmif x1, #63, #-1
24 //CHECK-NEXT: ^
25 //CHECK-NEXT: error: invalid operand for instruction
26 //CHECK-NEXT: rmif sp, #63, #1
27 //CHECK-NEXT: ^