Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add VBRD/VMV vector instructions. In order to do that, also support VM512 registers and RV instruction format in MC layer. Also add regression tests for new instructions. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D89641
- Loading branch information
Showing
5 changed files
with
200 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# RUN: llvm-mc -triple=ve --show-encoding < %s \ | ||
# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST | ||
# RUN: llvm-mc -triple=ve -filetype=obj < %s | llvm-objdump -d - \ | ||
# RUN: | FileCheck %s --check-prefixes=CHECK-INST | ||
|
||
# CHECK-INST: vbrd %v11, 23 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x00,0x17,0x00,0x8c] | ||
vbrd %v11, 23 | ||
|
||
# CHECK-INST: vbrd %v11, %s12, %vm15 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x00,0x8c,0x0f,0x8c] | ||
vbrd %v11, %s12, %vm15 | ||
|
||
# CHECK-INST: vbrd %vix, %s22 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0xff,0x00,0x96,0x00,0x8c] | ||
vbrd %vix, %s22, %vm0 | ||
|
||
# CHECK-INST: vbrdl %v11, 23 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x00,0x17,0x40,0x8c] | ||
vbrdl %v11, 23 | ||
|
||
# CHECK-INST: vbrdl %v11, %s12, %vm15 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x00,0x8c,0x4f,0x8c] | ||
vbrdl %v11, %s12, %vm15 | ||
|
||
# CHECK-INST: vbrdl %vix, %s22 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0xff,0x00,0x96,0x40,0x8c] | ||
vbrdl %vix, %s22, %vm0 | ||
|
||
# CHECK-INST: vbrdu %v11, 23 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x00,0x17,0x80,0x8c] | ||
vbrdu %v11, 23 | ||
|
||
# CHECK-INST: vbrdu %v11, %s12, %vm15 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x00,0x8c,0x8f,0x8c] | ||
vbrdu %v11, %s12, %vm15 | ||
|
||
# CHECK-INST: vbrdu %vix, %s22 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0xff,0x00,0x96,0x80,0x8c] | ||
vbrdu %vix, %s22, %vm0 | ||
|
||
# CHECK-INST: pvbrd %v11, 23 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x00,0x17,0xc0,0x8c] | ||
pvbrd %v11, 23 | ||
|
||
# CHECK-INST: pvbrd %v11, %s12, %vm14 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0x0b,0x00,0x8c,0xce,0x8c] | ||
pvbrd %v11, %s12, %vm14 | ||
|
||
# CHECK-INST: pvbrd %vix, %s22 | ||
# CHECK-ENCODING: encoding: [0x00,0x00,0x00,0xff,0x00,0x96,0xc0,0x8c] | ||
pvbrd %vix, %s22, %vm0 |
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,16 @@ | ||
# RUN: llvm-mc -triple=ve --show-encoding < %s \ | ||
# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST | ||
# RUN: llvm-mc -triple=ve -filetype=obj < %s | llvm-objdump -d - \ | ||
# RUN: | FileCheck %s --check-prefixes=CHECK-INST | ||
|
||
# CHECK-INST: vmv %v11, 23, %v11 | ||
# CHECK-ENCODING: encoding: [0x00,0x0b,0x00,0x0b,0x00,0x17,0x00,0x9c] | ||
vmv %v11, 23, %v11 | ||
|
||
# CHECK-INST: vmv %v11, %s12, %vix, %vm15 | ||
# CHECK-ENCODING: encoding: [0x00,0xff,0x00,0x0b,0x00,0x8c,0x0f,0x9c] | ||
vmv %v11, %s12, %vix, %vm15 | ||
|
||
# CHECK-INST: vmv %vix, 127, %v63 | ||
# CHECK-ENCODING: encoding: [0x00,0x3f,0x00,0xff,0x00,0x7f,0x00,0x9c] | ||
vmv %vix, 127, %v63, %vm0 |