brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · d851894 Raw
63 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve < %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: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \6// RUN:        | llvm-objdump -d --mattr=+sve - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve < %s \8// RUN:   | llvm-objdump -d --mattr=-sve - | FileCheck %s --check-prefix=CHECK-UNKNOWN9 10mrs x3, ID_AA64ZFR0_EL111// CHECK-INST: mrs x3, ID_AA64ZFR0_EL112// CHECK-ENCODING: [0x83,0x04,0x38,0xd5]13// CHECK-ERROR: expected readable system register14// CHECK-UNKNOWN: d5380483   mrs   x3, S3_0_C0_C4_415 16mrs x3, ZCR_EL117// CHECK-INST: mrs x3, ZCR_EL118// CHECK-ENCODING: [0x03,0x12,0x38,0xd5]19// CHECK-ERROR: expected readable system register20// CHECK-UNKNOWN: d5381203   mrs   x3, S3_0_C1_C2_021 22mrs x3, ZCR_EL223// CHECK-INST: mrs x3, ZCR_EL224// CHECK-ENCODING: [0x03,0x12,0x3c,0xd5]25// CHECK-ERROR: expected readable system register26// CHECK-UNKNOWN: d53c1203   mrs   x3, S3_4_C1_C2_027 28mrs x3, ZCR_EL329// CHECK-INST: mrs x3, ZCR_EL330// CHECK-ENCODING: [0x03,0x12,0x3e,0xd5]31// CHECK-ERROR: expected readable system register32// CHECK-UNKNOWN: d53e1203   mrs   x3, S3_6_C1_C2_033 34mrs x3, ZCR_EL1235// CHECK-INST: mrs x3, ZCR_EL1236// CHECK-ENCODING: [0x03,0x12,0x3d,0xd5]37// CHECK-ERROR: expected readable system register38// CHECK-UNKNOWN: d53d1203   mrs   x3, S3_5_C1_C2_039 40msr ZCR_EL1, x341// CHECK-INST: msr ZCR_EL1, x342// CHECK-ENCODING: [0x03,0x12,0x18,0xd5]43// CHECK-ERROR: expected writable system register or pstate44// CHECK-UNKNOWN: d5181203   msr   S3_0_C1_C2_0, x345 46msr ZCR_EL2, x347// CHECK-INST: msr ZCR_EL2, x348// CHECK-ENCODING: [0x03,0x12,0x1c,0xd5]49// CHECK-ERROR: expected writable system register or pstate50// CHECK-UNKNOWN: d51c1203   msr   S3_4_C1_C2_0, x351 52msr ZCR_EL3, x353// CHECK-INST: msr ZCR_EL3, x354// CHECK-ENCODING: [0x03,0x12,0x1e,0xd5]55// CHECK-ERROR: expected writable system register or pstate56// CHECK-UNKNOWN: d51e1203   msr   S3_6_C1_C2_0, x357 58msr ZCR_EL12, x359// CHECK-INST: msr ZCR_EL12, x360// CHECK-ENCODING: [0x03,0x12,0x1d,0xd5]61// CHECK-ERROR: expected writable system register or pstate62// CHECK-UNKNOWN: d51d1203   msr   S3_5_C1_C2_0, x363