brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 7d34351 Raw
35 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme,+mpam < %s \2// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s 2>&1 \6// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+mpam < %s 2>&1 \8// RUN:        | FileCheck %s --check-prefix=CHECK-ERROR9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme,+mpam < %s \10// RUN:        | llvm-objdump -d --mattr=+sme,+mpam - | FileCheck %s --check-prefix=CHECK-INST11// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme,+mpam < %s \12// RUN:   | llvm-objdump -d --mattr=-sme - | FileCheck %s --check-prefix=CHECK-UNKNOWN13// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme,+mpam < %s \14// RUN:        | llvm-objdump -d --mattr=+sme - | FileCheck %s --check-prefix=CHECK-UNKNOWN15// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme,+mpam < %s \16// RUN:        | llvm-objdump -d --mattr=+mpam - | FileCheck %s --check-prefix=CHECK-UNKNOWN17 18// --------------------------------------------------------------------------//19// read20 21mrs x3, MPAMSM_EL122// CHECK-INST: mrs x3, MPAMSM_EL123// CHECK-ENCODING: [0x63,0xa5,0x38,0xd5]24// CHECK-ERROR: expected readable system register25// CHECK-UNKNOWN: d538a563   mrs   x3, S3_0_C10_C5_326 27// --------------------------------------------------------------------------//28// write29 30msr MPAMSM_EL1, x331// CHECK-INST: msr MPAMSM_EL1, x332// CHECK-ENCODING: [0x63,0xa5,0x18,0xd5]33// CHECK-ERROR: expected writable system register or pstate34// CHECK-UNKNOWN: d518a563   msr   S3_0_C10_C5_3, x335