-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bit Manipulation Instructions in GNU Assembler
Bit manipulation instructions are useful to work on single bits or groups of bits within a word. The cv.bitrev instruction from a bit manipulation perspective without describing it’s application as part of an FFT. The bit reverse instruction will reverse bits in groupings of 1, 2 or 3 bits. bfd/ * elfxx-riscv.c: Added INSN_CLASS_COREV_BITMANIP. gas/config/ * tc-riscv.c: Added b6 for ENCODE_CV_BITMANIP_UIMM5 for unsigned 5-bit immediate and b7 for ENCODE_CV_BITMANIP_UIMM2 for unsigned 2-bit immediate. gas/doc/ * c-riscv.texi: Updated documentation to include COREV bit manipulation version 1 and 2. include/opcode/ * riscv-opc.h: Added corresponding 16 MATCH and MASK macros for bit manipulation. * riscv.h: Added EXTRACT_CV_BITMANIP_UIMM5 EXTRACT_CV_BITMANIP_UIMM2, ENCODE_CV_BITMANIP_UIMM5, ENCODE_CV_BITMANIP_UIMM2. opcodes/ * riscv-dis.c: Added disassemble information for EXTRACT_CV_BITMANIP_UIMM5 and EXTRACT_CV_BITMANIP_UIMM2. * riscv-opc.c: Added 16 instructions to riscv_opcode[]. Signed-off-by: NandniJamnadas <[email protected]> Changed the immediate order in bit maipulation instructions Resolves the encoding problem identified in #68. Files Changed: gas/testsuite/gas/riscv: * cv-bitmanip-march-xcorev.d: Updated the tests with the changed immediate order. cv-bitmanip-march-xcorev.s: Likewise. cv-bitmanip-march-xcorevbitmanip.d: Likewise. cv-bitmanip-march-xcorevbitmanip.s: Likewise. cv-bitrev-fail.l: Likewise. cv-bitrev-fail.s: Likewise. cv-bitrev-pass.d: Likewise. cv-bitrev-pass.s: Likewise. opcodes: * riscv-opc.c: Changed the order of ls2 and ls3 in instructions cv.extract, cv.instert, cv.bclr, cv.bset, and cv.bitrev.
- Loading branch information
1 parent
a855a1c
commit 154e388
Showing
90 changed files
with
793 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"C_Cpp.dimInactiveRegions": false | ||
} |
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,3 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bclr-fail.s | ||
#error_output: cv-bitmanip-bclr-fail.l |
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,7 @@ | ||
.*: Assembler messages: | ||
.*: Error: illegal operands `cv.bclr x32,x32,20,20' | ||
.*: Error: illegal operands `cv.bclr x33,x33,20,20' | ||
.*: Error: illegal operands `cv.bclr x6,x7,0,32' | ||
.*: Error: illegal operands `cv.bclr x6,x7,32,0' | ||
.*: Error: illegal operands `cv.bclr x6,x7,0,-1' | ||
.*: Error: illegal operands `cv.bclr x6,x7,-1,0' |
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,9 @@ | ||
target: | ||
#Register Tests | ||
cv.bclr x32, x32, 20, 20 | ||
cv.bclr x33, x33, 20, 20 | ||
#Immediate Values Test | ||
cv.bclr x6, x7, 0, 32 | ||
cv.bclr x6, x7, 32, 0 | ||
cv.bclr x6, x7, 0, -1 | ||
cv.bclr x6, x7, -1, 0 |
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,19 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bclr-pass.s | ||
#objdump: -d | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0+000 <target>: | ||
|
||
0: 2940105b cv.bclr zero,zero,20,20 | ||
4: 294090db cv.bclr ra,ra,20,20 | ||
8: 2941115b cv.bclr sp,sp,20,20 | ||
c: 2944145b cv.bclr s0,s0,20,20 | ||
10: 294a1a5b cv.bclr s4,s4,20,20 | ||
14: 294f9fdb cv.bclr t6,t6,20,20 | ||
18: 0003935b cv.bclr t1,t2,0,0 | ||
1c: 3ff3935b cv.bclr t1,t2,31,31 |
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,11 @@ | ||
target: | ||
#Register Tests | ||
cv.bclr x0, x0, 20, 20 | ||
cv.bclr x1, x1, 20, 20 | ||
cv.bclr x2, x2, 20, 20 | ||
cv.bclr x8, x8, 20, 20 | ||
cv.bclr x20, x20, 20, 20 | ||
cv.bclr x31, x31, 20, 20 | ||
#Immediate Values Test | ||
cv.bclr x6, x7, 0, 0 | ||
cv.bclr x6, x7, 31, 31 |
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,3 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bclrr-fail.s | ||
#error_output: cv-bitmanip-bclrr-fail.l |
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,3 @@ | ||
.*: Assembler messages: | ||
.*: Error: illegal operands `cv.bclrr x32,x32,x32' | ||
.*: Error: illegal operands `cv.bclrr x33,x33,x33' |
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,4 @@ | ||
target: | ||
#Boundary Register Tests | ||
cv.bclrr x32, x32, x32 | ||
cv.bclrr x33, x33, x33 |
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 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bclrr-pass.s | ||
#objdump: -d | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0+000 <target>: | ||
0: 3800302b cv.bclrr zero,zero,zero | ||
4: 3810b0ab cv.bclrr ra,ra,ra | ||
8: 3821312b cv.bclrr sp,sp,sp | ||
c: 3884342b cv.bclrr s0,s0,s0 | ||
10: 394a3a2b cv.bclrr s4,s4,s4 | ||
14: 39ffbfab cv.bclrr t6,t6,t6 |
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,8 @@ | ||
target: | ||
#Register Tests | ||
cv.bclrr x0, x0, x0 | ||
cv.bclrr x1, x1, x1 | ||
cv.bclrr x2, x2, x2 | ||
cv.bclrr x8, x8, x8 | ||
cv.bclrr x20, x20, x20 | ||
cv.bclrr x31, x31, x31 |
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,3 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bitrev-fail.s | ||
#error_output: cv-bitmanip-bitrev-fail.l |
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,7 @@ | ||
.*: Assembler messages: | ||
.*: Error: illegal operands `cv.bitrev x32,x32,2,20' | ||
.*: Error: illegal operands `cv.bitrev x33,x33,2,20' | ||
.*: Error: illegal operands `cv.bitrev x6,x7,-1,0' | ||
.*: Error: illegal operands `cv.bitrev x6,x7,0,-1' | ||
.*: Error: illegal operands `cv.bitrev x6,x7,0,32' | ||
.*: Error: illegal operands `cv.bitrev x6,x7,4,0' |
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,9 @@ | ||
target: | ||
#Register Tests | ||
cv.bitrev x32, x32, 2, 20 | ||
cv.bitrev x33, x33, 2, 20 | ||
#Immediate Values Test | ||
cv.bitrev x6, x7, -1, 0 | ||
cv.bitrev x6, x7, 0, -1 | ||
cv.bitrev x6, x7, 0, 32 | ||
cv.bitrev x6, x7, 4, 0 |
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,18 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bitrev-pass.s | ||
#objdump: -d | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0+000 <target>: | ||
0: c540105b cv.bitrev zero,zero,2,20 | ||
4: c54090db cv.bitrev ra,ra,2,20 | ||
8: c541115b cv.bitrev sp,sp,2,20 | ||
c: c544145b cv.bitrev s0,s0,2,20 | ||
10: c54a1a5b cv.bitrev s4,s4,2,20 | ||
14: c54f9fdb cv.bitrev t6,t6,2,20 | ||
18: c003935b cv.bitrev t1,t2,0,0 | ||
1c: c7f3935b cv.bitrev t1,t2,3,31 |
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,11 @@ | ||
target: | ||
#Register Tests | ||
cv.bitrev x0, x0, 2, 20 | ||
cv.bitrev x1, x1, 2, 20 | ||
cv.bitrev x2, x2, 2, 20 | ||
cv.bitrev x8, x8, 2, 20 | ||
cv.bitrev x20, x20, 2, 20 | ||
cv.bitrev x31, x31, 2, 20 | ||
#Immediate Values Test | ||
cv.bitrev x6, x7, 0, 0 | ||
cv.bitrev x6, x7, 3, 31 |
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,3 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bset-fail.s | ||
#error_output: cv-bitmanip-bset-fail.l |
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,7 @@ | ||
.*: Assembler messages: | ||
.*: Error: illegal operands `cv.bset x32,x32,20,20' | ||
.*: Error: illegal operands `cv.bset x33,x33,20,20' | ||
.*: Error: illegal operands `cv.bset x6,x7,0,32' | ||
.*: Error: illegal operands `cv.bset x6,x7,32,0' | ||
.*: Error: illegal operands `cv.bset x6,x7,0,-1' | ||
.*: Error: illegal operands `cv.bset x6,x7,-1,0' |
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,9 @@ | ||
target: | ||
#Register Tests | ||
cv.bset x32, x32, 20, 20 | ||
cv.bset x33, x33, 20, 20 | ||
#Immediate Values Test | ||
cv.bset x6, x7, 0, 32 | ||
cv.bset x6, x7, 32, 0 | ||
cv.bset x6, x7, 0, -1 | ||
cv.bset x6, x7, -1, 0 |
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,19 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bset-pass.s | ||
#objdump: -d | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0+000 <target>: | ||
|
||
0: 6940105b cv.bset zero,zero,20,20 | ||
4: 694090db cv.bset ra,ra,20,20 | ||
8: 6941115b cv.bset sp,sp,20,20 | ||
c: 6944145b cv.bset s0,s0,20,20 | ||
10: 694a1a5b cv.bset s4,s4,20,20 | ||
14: 694f9fdb cv.bset t6,t6,20,20 | ||
18: 4003935b cv.bset t1,t2,0,0 | ||
1c: 7ff3935b cv.bset t1,t2,31,31 |
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,11 @@ | ||
target: | ||
#Register Tests | ||
cv.bset x0, x0, 20, 20 | ||
cv.bset x1, x1, 20, 20 | ||
cv.bset x2, x2, 20, 20 | ||
cv.bset x8, x8, 20, 20 | ||
cv.bset x20, x20, 20, 20 | ||
cv.bset x31, x31, 20, 20 | ||
#Immediate Values Test | ||
cv.bset x6, x7, 0, 0 | ||
cv.bset x6, x7, 31, 31 |
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,3 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bsetr-fail.s | ||
#error_output: cv-bitmanip-bsetr-fail.l |
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,3 @@ | ||
.*: Assembler messages: | ||
.*: Error: illegal operands `cv.bsetr x32,x32,x32' | ||
.*: Error: illegal operands `cv.bsetr x33,x33,x33' |
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,4 @@ | ||
target: | ||
#Boundary Register Tests | ||
cv.bsetr x32, x32, x32 | ||
cv.bsetr x33, x33, x33 |
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 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-bsetr-pass.s | ||
#objdump: -d | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0+000 <target>: | ||
0: 3a00302b cv.bsetr zero,zero,zero | ||
4: 3a10b0ab cv.bsetr ra,ra,ra | ||
8: 3a21312b cv.bsetr sp,sp,sp | ||
c: 3a84342b cv.bsetr s0,s0,s0 | ||
10: 3b4a3a2b cv.bsetr s4,s4,s4 | ||
14: 3bffbfab cv.bsetr t6,t6,t6 |
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,8 @@ | ||
target: | ||
#Register Tests | ||
cv.bsetr x0, x0, x0 | ||
cv.bsetr x1, x1, x1 | ||
cv.bsetr x2, x2, x2 | ||
cv.bsetr x8, x8, x8 | ||
cv.bsetr x20, x20, x20 | ||
cv.bsetr x31, x31, x31 |
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,3 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-clb-fail.s | ||
#error_output: cv-bitmanip-clb-fail.l |
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,3 @@ | ||
.*: Assembler messages: | ||
.*: Error: illegal operands `cv.clb x32,x32' | ||
.*: Error: illegal operands `cv.clb x33,x33' |
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,4 @@ | ||
target: | ||
#Boundary Register Tests | ||
cv.clb x32, x32 | ||
cv.clb x33, x33 |
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 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-clb-pass.s | ||
#objdump: -d | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0+000 <target>: | ||
0: 4600302b cv.clb zero,zero | ||
4: 4600b0ab cv.clb ra,ra | ||
8: 4601312b cv.clb sp,sp | ||
c: 4604342b cv.clb s0,s0 | ||
10: 460a3a2b cv.clb s4,s4 | ||
14: 460fbfab cv.clb t6,t6 |
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,8 @@ | ||
target: | ||
#Register Tests | ||
cv.clb x0, x0 | ||
cv.clb x1, x1 | ||
cv.clb x2, x2 | ||
cv.clb x8, x8 | ||
cv.clb x20, x20 | ||
cv.clb x31, x31 |
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,3 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-cnt-fail.s | ||
#error_output: cv-bitmanip-cnt-fail.l |
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,3 @@ | ||
.*: Assembler messages: | ||
.*: Error: illegal operands `cv.cnt x32,x32' | ||
.*: Error: illegal operands `cv.cnt x33,x33' |
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,4 @@ | ||
target: | ||
#Boundary Register Tests | ||
cv.cnt x32, x32 | ||
cv.cnt x33, x33 |
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 @@ | ||
#as: -march=rv32i_xcvbitmanip | ||
#source: cv-bitmanip-cnt-pass.s | ||
#objdump: -d | ||
|
||
.*:[ ]+file format .* | ||
|
||
|
||
Disassembly of section .text: | ||
|
||
0+000 <target>: | ||
0: 4800302b cv.cnt zero,zero | ||
4: 4800b0ab cv.cnt ra,ra | ||
8: 4801312b cv.cnt sp,sp | ||
c: 4804342b cv.cnt s0,s0 | ||
10: 480a3a2b cv.cnt s4,s4 | ||
14: 480fbfab cv.cnt t6,t6 |
Oops, something went wrong.