-
Notifications
You must be signed in to change notification settings - Fork 12.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AArch64] Assembler support for v8.3 RCpc
Added assembler and disassembler support for the new Release Consistent processor consistent instructions, introduced with ARM v8.3-A for AArch64. Differential Revision: https://reviews.llvm.org/D36522 llvm-svn: 310575
- Loading branch information
1 parent
9d95764
commit 71a474d
Showing
6 changed files
with
77 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// RUN: llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.3a < %s 2>&1 | FileCheck %s | ||
// RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.2a < %s 2> %t | ||
// RUN: FileCheck --check-prefix=CHECK-REQ %s < %t | ||
|
||
ldaprb w0, [x0, #0] | ||
ldaprh w0, [x17, #0] | ||
ldapr w0, [x1, #0] | ||
ldapr x0, [x0, #0] | ||
ldapr w18, [x0] | ||
ldapr x15, [x0] | ||
|
||
// CHECK: ldaprb w0, [x0] // encoding: [0x00,0xc0,0xbf,0x38] | ||
// CHECK: ldaprh w0, [x17] // encoding: [0x20,0xc2,0xbf,0x78] | ||
// CHECK: ldapr w0, [x1] // encoding: [0x20,0xc0,0xbf,0xb8] | ||
// CHECK: ldapr x0, [x0] // encoding: [0x00,0xc0,0xbf,0xf8] | ||
// CHECK: ldapr w18, [x0] // encoding: [0x12,0xc0,0xbf,0xb8] | ||
// CHECK: ldapr x15, [x0] // encoding: [0x0f,0xc0,0xbf,0xf8] | ||
// CHECK-REQ: error: invalid operand for instruction | ||
// CHECK-REQ: error: invalid operand for instruction | ||
// CHECK-REQ: error: invalid operand for instruction | ||
// CHECK-REQ: error: invalid operand for instruction | ||
// CHECK-REQ: error: instruction requires: rcpc | ||
// CHECK-REQ: error: instruction requires: rcpc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# RUN: llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.3a --disassemble < %s | FileCheck %s | ||
|
||
# CHECK: ldaprb w0, [x0] | ||
# CHECK: ldaprh w0, [x0] | ||
# CHECK: ldapr w0, [x0] | ||
# CHECK: ldapr x0, [x0] | ||
[0x00,0xc0,0xbf,0x38] | ||
[0x00,0xc0,0xbf,0x78] | ||
[0x00,0xc0,0xbf,0xb8] | ||
[0x00,0xc0,0xbf,0xf8] | ||
|
||
# RUN: not llvm-mc -triple aarch64-none-linux-gnu -mattr=+v8.2a --disassemble < %s 2>&1 | FileCheck --check-prefix=CHECK-V8_2A %s | ||
|
||
# CHECK-V8_2A: warning: invalid instruction encoding | ||
# CHECK-V8_2A: [0x00,0xc0,0xbf,0x38] | ||
# CHECK-V8_2A: ^ | ||
# CHECK-V8_2A: warning: invalid instruction encoding | ||
# CHECK-V8_2A: [0x00,0xc0,0xbf,0x78] | ||
# CHECK-V8_2A: ^ | ||
# CHECK-V8_2A: warning: invalid instruction encoding | ||
# CHECK-V8_2A: [0x00,0xc0,0xbf,0xb8] | ||
# CHECK-V8_2A: ^ | ||
# CHECK-V8_2A: warning: invalid instruction encoding | ||
# CHECK-V8_2A: [0x00,0xc0,0xbf,0xf8] | ||
# CHECK-V8_2A: ^ | ||
|