Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AArch64 / ras-extension.s
blob2400add87cdde6d0653008d0dc4cb844bcb1635c
1 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+ras < %s | FileCheck %s
2 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a55 < %s | FileCheck %s
3 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-a75 < %s | FileCheck %s
4 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=tsv110 < %s | FileCheck %s
5 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mcpu=cortex-r82 < %s | FileCheck %s
6 // RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8r < %s | FileCheck %s
8 esb
9 // CHECK: esb // encoding: [0x1f,0x22,0x03,0xd5]
11 msr errselr_el1, x0
12 msr errselr_el1, x15
13 msr errselr_el1, x25
14 msr erxctlr_el1, x1
15 msr erxstatus_el1, x2
16 msr erxaddr_el1, x3
17 msr erxmisc0_el1, x4
18 msr erxmisc1_el1, x5
19 msr disr_el1, x6
20 msr vdisr_el2, x7
21 msr vsesr_el2, x8
22 // CHECK: msr ERRSELR_EL1, x0 // encoding: [0x20,0x53,0x18,0xd5]
23 // CHECK: msr ERRSELR_EL1, x15 // encoding: [0x2f,0x53,0x18,0xd5]
24 // CHECK: msr ERRSELR_EL1, x25 // encoding: [0x39,0x53,0x18,0xd5]
25 // CHECK: msr ERXCTLR_EL1, x1 // encoding: [0x21,0x54,0x18,0xd5]
26 // CHECK: msr ERXSTATUS_EL1, x2 // encoding: [0x42,0x54,0x18,0xd5]
27 // CHECK: msr ERXADDR_EL1, x3 // encoding: [0x63,0x54,0x18,0xd5]
28 // CHECK: msr ERXMISC0_EL1, x4 // encoding: [0x04,0x55,0x18,0xd5]
29 // CHECK: msr ERXMISC1_EL1, x5 // encoding: [0x25,0x55,0x18,0xd5]
30 // CHECK: msr DISR_EL1, x6 // encoding: [0x26,0xc1,0x18,0xd5]
31 // CHECK: msr VDISR_EL2, x7 // encoding: [0x27,0xc1,0x1c,0xd5]
32 // CHECK: msr VSESR_EL2, x8 // encoding: [0x68,0x52,0x1c,0xd5]
34 mrs x0, errselr_el1
35 mrs x15, errselr_el1
36 mrs x25, errselr_el1
37 mrs x1, erxctlr_el1
38 mrs x2, erxstatus_el1
39 mrs x3, erxaddr_el1
40 mrs x4, erxmisc0_el1
41 mrs x5, erxmisc1_el1
42 mrs x6, disr_el1
43 mrs x7, vdisr_el2
44 mrs x8, vsesr_el2
45 // CHECK: mrs x0, ERRSELR_EL1 // encoding: [0x20,0x53,0x38,0xd5]
46 // CHECK: mrs x15, ERRSELR_EL1 // encoding: [0x2f,0x53,0x38,0xd5]
47 // CHECK: mrs x25, ERRSELR_EL1 // encoding: [0x39,0x53,0x38,0xd5]
48 // CHECK: mrs x1, ERXCTLR_EL1 // encoding: [0x21,0x54,0x38,0xd5]
49 // CHECK: mrs x2, ERXSTATUS_EL1 // encoding: [0x42,0x54,0x38,0xd5]
50 // CHECK: mrs x3, ERXADDR_EL1 // encoding: [0x63,0x54,0x38,0xd5]
51 // CHECK: mrs x4, ERXMISC0_EL1 // encoding: [0x04,0x55,0x38,0xd5]
52 // CHECK: mrs x5, ERXMISC1_EL1 // encoding: [0x25,0x55,0x38,0xd5]
53 // CHECK: mrs x6, DISR_EL1 // encoding: [0x26,0xc1,0x38,0xd5]
54 // CHECK: mrs x7, VDISR_EL2 // encoding: [0x27,0xc1,0x3c,0xd5]
55 // CHECK: mrs x8, VSESR_EL2 // encoding: [0x68,0x52,0x3c,0xd5]
57 mrs x0, erridr_el1
58 mrs x1, erxfr_el1
59 // CHECK: mrs x0, ERRIDR_EL1 // encoding: [0x00,0x53,0x38,0xd5]
60 // CHECK: mrs x1, ERXFR_EL1 // encoding: [0x01,0x54,0x38,0xd5]