1// RUN: llvm-mc -triple aarch64 -mattr=+el3 -show-encoding < %s | FileCheck %s 2// RUN: llvm-mc -triple aarch64 -mattr=+v8a -show-encoding < %s | FileCheck %s 3// RUN: not llvm-mc -triple aarch64 -show-encoding -mattr=+v8r %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR 4 5// The immediate defaults to zero 6// CHECK: dcps3 // encoding: [0x03,0x00,0xa0,0xd4] 7dcps3 8 9// CHECK: encoding: [0x83,0x00,0xa0,0xd4] 10// CHECK: encoding: [0xe3,0x00,0x00,0xd4] 11 12dcps3 #4 13smc #7 14 15// CHECK-ERROR: {{[0-9]+}}:{{[0-9]+}}: error: instruction requires: el3 16// CHECK-ERROR-NEXT: dcps3 17// CHECK-ERROR-NEXT: ^ 18// CHECK-ERROR-NEXT: {{[0-9]+}}:{{[0-9]+}}: error: instruction requires: el3 19// CHECK-ERROR-NEXT: dcps3 #4 20// CHECK-ERROR-NEXT: ^ 21// CHECK-ERROR-NEXT: {{[0-9]+}}:{{[0-9]+}}: error: instruction requires: el3 22// CHECK-ERROR-NEXT: smc #7 23// CHECK-ERROR-NEXT: ^ 24