[llvm-readobj] - Simplify stack-sizes.test test case.
[llvm-complete.git] / test / MC / AArch64 / ras-extension.s
blobef429edad8d5db6ddcd280241512abf2c23c167e
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
6 esb
7 // CHECK: esb // encoding: [0x1f,0x22,0x03,0xd5]
9 msr errselr_el1, x0
10 msr errselr_el1, x15
11 msr errselr_el1, x25
12 msr erxctlr_el1, x1
13 msr erxstatus_el1, x2
14 msr erxaddr_el1, x3
15 msr erxmisc0_el1, x4
16 msr erxmisc1_el1, x5
17 msr disr_el1, x6
18 msr vdisr_el2, x7
19 msr vsesr_el2, x8
20 // CHECK: msr ERRSELR_EL1, x0 // encoding: [0x20,0x53,0x18,0xd5]
21 // CHECK: msr ERRSELR_EL1, x15 // encoding: [0x2f,0x53,0x18,0xd5]
22 // CHECK: msr ERRSELR_EL1, x25 // encoding: [0x39,0x53,0x18,0xd5]
23 // CHECK: msr ERXCTLR_EL1, x1 // encoding: [0x21,0x54,0x18,0xd5]
24 // CHECK: msr ERXSTATUS_EL1, x2 // encoding: [0x42,0x54,0x18,0xd5]
25 // CHECK: msr ERXADDR_EL1, x3 // encoding: [0x63,0x54,0x18,0xd5]
26 // CHECK: msr ERXMISC0_EL1, x4 // encoding: [0x04,0x55,0x18,0xd5]
27 // CHECK: msr ERXMISC1_EL1, x5 // encoding: [0x25,0x55,0x18,0xd5]
28 // CHECK: msr DISR_EL1, x6 // encoding: [0x26,0xc1,0x18,0xd5]
29 // CHECK: msr VDISR_EL2, x7 // encoding: [0x27,0xc1,0x1c,0xd5]
30 // CHECK: msr VSESR_EL2, x8 // encoding: [0x68,0x52,0x1c,0xd5]
32 mrs x0, errselr_el1
33 mrs x15, errselr_el1
34 mrs x25, errselr_el1
35 mrs x1, erxctlr_el1
36 mrs x2, erxstatus_el1
37 mrs x3, erxaddr_el1
38 mrs x4, erxmisc0_el1
39 mrs x5, erxmisc1_el1
40 mrs x6, disr_el1
41 mrs x7, vdisr_el2
42 mrs x8, vsesr_el2
43 // CHECK: mrs x0, ERRSELR_EL1 // encoding: [0x20,0x53,0x38,0xd5]
44 // CHECK: mrs x15, ERRSELR_EL1 // encoding: [0x2f,0x53,0x38,0xd5]
45 // CHECK: mrs x25, ERRSELR_EL1 // encoding: [0x39,0x53,0x38,0xd5]
46 // CHECK: mrs x1, ERXCTLR_EL1 // encoding: [0x21,0x54,0x38,0xd5]
47 // CHECK: mrs x2, ERXSTATUS_EL1 // encoding: [0x42,0x54,0x38,0xd5]
48 // CHECK: mrs x3, ERXADDR_EL1 // encoding: [0x63,0x54,0x38,0xd5]
49 // CHECK: mrs x4, ERXMISC0_EL1 // encoding: [0x04,0x55,0x38,0xd5]
50 // CHECK: mrs x5, ERXMISC1_EL1 // encoding: [0x25,0x55,0x38,0xd5]
51 // CHECK: mrs x6, DISR_EL1 // encoding: [0x26,0xc1,0x38,0xd5]
52 // CHECK: mrs x7, VDISR_EL2 // encoding: [0x27,0xc1,0x3c,0xd5]
53 // CHECK: mrs x8, VSESR_EL2 // encoding: [0x68,0x52,0x3c,0xd5]
55 mrs x0, erridr_el1
56 mrs x1, erxfr_el1
57 // CHECK: mrs x0, ERRIDR_EL1 // encoding: [0x00,0x53,0x38,0xd5]
58 // CHECK: mrs x1, ERXFR_EL1 // encoding: [0x01,0x54,0x38,0xd5]