brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 4fd83f7 Raw
52 lines · plain
1// RUN: not llvm-mc -triple aarch64 -mattr=+sve -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-SVE2// RUN: not llvm-mc -triple aarch64 -show-encoding < %s 2>&1 | FileCheck %s --check-prefix=CHECK-NOSVE3 4 5// --------------------------------------------------------------------------//6// ID_AA64ZFR0_EL1 is read-only7 8msr ID_AA64ZFR0_EL1, x39// CHECK-SVE: error: expected writable system register or pstate10// CHECK-SVE-NEXT:         msr ID_AA64ZFR0_EL1, x311 12 13// --------------------------------------------------------------------------//14// Check that the other SVE registers are only readable/writable when15// the +sve attribute is set.16 17mrs x3, ID_AA64ZFR0_EL118// CHECK-NOSVE: error: expected readable system register19// CHECK-NOSVE: mrs x3, ID_AA64ZFR0_EL120 21mrs x3, ZCR_EL122// CHECK-NOSVE: error: expected readable system register23// CHECK-NOSVE-NEXT: mrs x3, ZCR_EL124 25mrs x3, ZCR_EL226// CHECK-NOSVE: error: expected readable system register27// CHECK-NOSVE-NEXT: mrs x3, ZCR_EL228 29mrs x3, ZCR_EL330// CHECK-NOSVE: error: expected readable system register31// CHECK-NOSVE-NEXT: mrs x3, ZCR_EL332 33mrs x3, ZCR_EL1234// CHECK-NOSVE: error: expected readable system register35// CHECK-NOSVE-NEXT: mrs x3, ZCR_EL1236 37msr ZCR_EL1, x338// CHECK-NOSVE: error: expected writable system register or pstate39// CHECK-NOSVE-NEXT: msr ZCR_EL1, x340 41msr ZCR_EL2, x342// CHECK-NOSVE: error: expected writable system register or pstate43// CHECK-NOSVE-NEXT: msr ZCR_EL2, x344 45msr ZCR_EL3, x346// CHECK-NOSVE: error: expected writable system register or pstate47// CHECK-NOSVE-NEXT: msr ZCR_EL3, x348 49msr ZCR_EL12, x350// CHECK-NOSVE: error: expected writable system register or pstate51// CHECK-NOSVE-NEXT: msr ZCR_EL12, x352