Add tests for stage 7

This commit is contained in:
2025-11-06 18:52:31 +01:00
parent 1c829366de
commit 37435c6677
9 changed files with 128 additions and 0 deletions

16
bench/tests/op/xor.s Normal file
View File

@@ -0,0 +1,16 @@
# expected: 00000000, 000001EF
.text
_start:
# 1 XOR 1 should equal 0000000
addi x1, x0, -1
addi x2, x0, -1
xor x31, x1, x2
addi x1, x0, 0x1BC
addi x2, x0, 0x1EF
addi x3, x0, 0x1BC
# Xor is involutive and commutative, applying it twice should give us the original operand
xor x1, x1, x2
xor x31, x1, x3