Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / armv8.4a-ras.s
blob4bf833710a4934db704198c658bf2b525d14d8ea
1 // RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding < %s 2> %t | FileCheck %s --check-prefix=CHECK
2 // RUN: FileCheck --check-prefix=CHECK-RO < %t %s
4 //------------------------------------------------------------------------------
5 // ARMV8.4-A RAS Extensions
6 //------------------------------------------------------------------------------
8 // Read/Write registers:
10 msr ERXPFGCTL_EL1, x0
11 mrs x0,ERXPFGCTL_EL1
13 //CHECK: msr ERXPFGCTL_EL1, x0 // encoding: [0xa0,0x54,0x18,0xd5]
14 //CHECK: mrs x0, ERXPFGCTL_EL1 // encoding: [0xa0,0x54,0x38,0xd5]
16 msr ERXPFGCDN_EL1, x0
17 mrs x0,ERXPFGCDN_EL1
19 //CHECK: msr ERXPFGCDN_EL1, x0 // encoding: [0xc0,0x54,0x18,0xd5]
20 //CHECK: mrs x0, ERXPFGCDN_EL1 // encoding: [0xc0,0x54,0x38,0xd5]
22 msr ERXMISC2_EL1, x0
23 mrs x0, ERXMISC2_EL1
25 //CHECK: msr ERXMISC2_EL1, x0 // encoding: [0x40,0x55,0x18,0xd5]
26 //CHECK: mrs x0, ERXMISC2_EL1 // encoding: [0x40,0x55,0x38,0xd5]
28 msr ERXMISC3_EL1, x0
29 mrs x0, ERXMISC3_EL1
31 //CHECK: msr ERXMISC3_EL1, x0 // encoding: [0x60,0x55,0x18,0xd5]
32 //CHECK: mrs x0, ERXMISC3_EL1 // encoding: [0x60,0x55,0x38,0xd5]
34 // Read-only registers:
36 mrs x0,ERXPFGF_EL1
37 msr ERXPFGF_EL1, x0
39 //CHECK: mrs x0, ERXPFGF_EL1 // encoding: [0x80,0x54,0x38,0xd5]
40 //CHECK-RO: error: expected writable system register or pstate