1 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.3a --disassemble < %s 2>&1 | FileCheck %s
2 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8r --disassemble < %s 2>&1 | FileCheck %s
3 # RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+pauth --disassemble < %s 2>&1 | FileCheck %s
5 # CHECK: warning: potentially undefined instruction encoding
6 # CHECK-NEXT: [0x00,0x0c,0x20,0xf8]
7 # CHECK: warning: potentially undefined instruction encoding
8 # CHECK-NEXT: [0x00,0x0c,0xa0,0xf8]
9 # CHECK: ldraa x0, [x0, #0]!
10 # CHECK: ldrab x0, [x0, #0]!
49 # CHECK: pacga x0, x1, x2
100 [0x1f,0x0c,0x3f,0xd6]
101 [0xff,0x0b,0x5f,0xd6]
102 [0xff,0x0f,0x5f,0xd6]
103 [0xff,0x0b,0x9f,0xd6]
104 [0xff,0x0f,0x9f,0xd6]
106 # CHECK: ldraa x0, [x1, #4088]
107 # CHECK: ldraa x0, [x1, #-4096]
108 # CHECK: ldrab x0, [x1, #4088]
109 # CHECK: ldrab x0, [x1, #-4096]
110 # CHECK: ldraa x0, [x1, #4088]!
111 # CHECK: ldraa x0, [x1, #-4096]!
112 # CHECK: ldrab x0, [x1, #4088]!
113 # CHECK: ldrab x0, [x1, #-4096]!
114 [0x20,0xf4,0x3f,0xf8]
115 [0x20,0x04,0x60,0xf8]
116 [0x20,0xf4,0xbf,0xf8]
117 [0x20,0x04,0xe0,0xf8]
118 [0x20,0xfc,0x3f,0xf8]
119 [0x20,0x0c,0x60,0xf8]
120 [0x20,0xfc,0xbf,0xf8]
121 [0x20,0x0c,0xe0,0xf8]
123 # CHECK: ldraa x0, [x1]
124 # CHECK: ldrab x0, [x1]
125 [0x20,0x04,0x20,0xf8]
126 [0x20,0x04,0xa0,0xf8]
128 # CHECK: ldraa x0, [x1, #0]!
129 # CHECK: ldrab x0, [x1, #0]!
130 [0x20,0x0c,0x20,0xf8]
131 [0x20,0x0c,0xa0,0xf8]