Files
OSACA/examples/striad/striad.s.rv64.gcc.s
Metehan Dundar 1ceac6e9f3 Refactor: RISC-V parser, code formatting, and flake8 compliance
- Enhanced RISC-V parser to support reloc_type and symbol in ImmediateOperand.
- Added missing attributes (reloc_type, symbol) to ImmediateOperand and updated __eq__ for backward compatibility.
- Fixed all flake8 (E501, E265, F401, F841) and Black formatting issues across the codebase.
- Improved docstrings and split long lines for better readability.
- Fixed test failures related to ImmediateOperand instantiation and attribute errors.
- Ensured all tests pass, including edge cases for RISC-V, x86, and AArch64.
- Updated .gitignore and documentation as needed.
- Renamed example files for consistency (rv6 -> rv64).
2025-07-04 23:21:06 +02:00

15 lines
239 B
ArmAsm

striad_riscv:
.L3:
vsetvli a5,a4,e64,m1,ta,ma
vle64.v v2,0(a1)
vle64.v v3,0(a2)
vle64.v v1,0(a3)
slli a6,a5,3
sub a4,a4,a5
add a1,a1,a6
add a2,a2,a6
add a3,a3,a6
vfmadd.vv v1,v3,v2
vse64.v v1,0(a0)
add a0,a0,a6
bne a4,zero,.L3