brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.1 KiB · a7ce371 Raw
58 lines · plain
1// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a -o - 2>&1 %s  | \2// RUN: FileCheck %s3 4// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+tracev8.4 -o - 2>&1 %s  | \5// RUN: FileCheck %s6 7// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=-v8.4a -o - %s 2>&1 | \8// RUN: FileCheck %s --check-prefix=CHECK-ERROR9 10// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a,-tracev8.4 -o - %s 2>&1 | \11// RUN: FileCheck %s --check-prefixes CHECK-ERROR12 13//------------------------------------------------------------------------------14// ARMV8.4-A Debug, Trace and PMU Extensions15//------------------------------------------------------------------------------16 17msr TRFCR_EL1, x018msr TRFCR_EL2, x019msr TRFCR_EL12, x020 21mrs x0, TRFCR_EL122mrs x0, TRFCR_EL223mrs x0, TRFCR_EL1224 25tsb csync26 27//CHECK:  msr TRFCR_EL1, x0           // encoding: [0x20,0x12,0x18,0xd5]28//CHECK:  msr TRFCR_EL2, x0           // encoding: [0x20,0x12,0x1c,0xd5]29//CHECK:  msr TRFCR_EL12, x0          // encoding: [0x20,0x12,0x1d,0xd5]30 31//CHECK:  mrs x0, TRFCR_EL1           // encoding: [0x20,0x12,0x38,0xd5]32//CHECK:  mrs x0, TRFCR_EL2           // encoding: [0x20,0x12,0x3c,0xd5]33//CHECK:  mrs x0, TRFCR_EL12          // encoding: [0x20,0x12,0x3d,0xd5]34 35//CHECK:  tsb csync                   // encoding: [0x5f,0x22,0x03,0xd5]36 37//CHECK-ERROR: error: expected writable system register or pstate38//CHECK-ERROR: msr TRFCR_EL1, x039//CHECK-ERROR:     ^40//CHECK-ERROR: error: expected writable system register or pstate41//CHECK-ERROR: msr TRFCR_EL2, x042//CHECK-ERROR:     ^43//CHECK-ERROR: error: expected writable system register or pstate44//CHECK-ERROR: msr TRFCR_EL12, x045//CHECK-ERROR:     ^46 47//CHECK-ERROR: error: expected readable system register48//CHECK-ERROR: mrs x0, TRFCR_EL149//CHECK-ERROR:         ^50//CHECK-ERROR: error: expected readable system register51//CHECK-ERROR: mrs x0, TRFCR_EL252//CHECK-ERROR:         ^53//CHECK-ERROR: error: expected readable system register54//CHECK-ERROR: mrs x0, TRFCR_EL1255//CHECK-ERROR:         ^56 57//CHECK-ERROR: error: instruction requires: tracev8.458