Skip to content

Commit

Permalink
[sample] use addw instead of add
Browse files Browse the repository at this point in the history
  • Loading branch information
herumi committed Jan 10, 2024
1 parent 236abb4 commit e672fae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ using namespace Xbyak_riscv;
struct Code : CodeGenerator {
Code(int v)
{
add(a0, a0, a1);
addi(a0, a0, v);
addw(a0, a0, a1);
addiw(a0, a0, v);
ret();
}
};
Expand Down

0 comments on commit e672fae

Please sign in to comment.