forked from plctlab/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Fix hwlp instructions (plctlab#26)
Updated hwlp instructions for CV32E40P from version 1 to version 2 according to the documentation. Co-authored-by: Qihan Cai <[email protected]>
- Loading branch information
Showing
26 changed files
with
164 additions
and
95 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
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
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
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,17 @@ | ||
# RUN: not llvm-mc -triple=riscv32 --mattr=+xcorevhwlp %s 2>&1 \ | ||
# RUN: | FileCheck %s --check-prefixes=CHECK-ERROR | ||
|
||
cv.end 2, 0 | ||
# CHECK-ERROR: loop ID must be an integer in the range [0, 1] | ||
|
||
cv.end -1, 0 | ||
# CHECK-ERROR: loop ID must be an integer in the range [0, 1] | ||
|
||
cv.end 1, 10 | ||
# CHECK-ERROR: invalid operand for instruction | ||
|
||
cv.end 1 | ||
# CHECK-ERROR: too few operands for instruction | ||
|
||
cv.end 1, s2, 0 | ||
# CHECK-ERROR: invalid operand for instruction |
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,14 @@ | ||
# RUN: llvm-mc -triple=riscv32 --mattr=+xcorevhwlp -show-encoding %s \ | ||
# RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INSTR | ||
|
||
cv.end 0, t0 | ||
# CHECK-INSTR: cv.end 0, t0 | ||
# CHECK-ENCODING: [0x2b,0xc3,0x02,0x00] | ||
|
||
cv.end 1, s4 | ||
# CHECK-INSTR: cv.end 1, s4 | ||
# CHECK-ENCODING: [0xab,0x43,0x0a,0x00] | ||
|
||
cv.end 0, zero | ||
# CHECK-INSTR: cv.end 0, zero | ||
# CHECK-ENCODING: [0x2b,0x43,0x00,0x00] |
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
Oops, something went wrong.