Implements stage 6: tests passing
This commit is contained in:
12
bench/tests/op/xori.s
Normal file
12
bench/tests/op/xori.s
Normal file
@@ -0,0 +1,12 @@
|
||||
# expected: 00000000, 000001EF
|
||||
.text
|
||||
_start:
|
||||
# 1 XOR 1 should equal 0000000
|
||||
addi x1, x0, -1
|
||||
xori x31, x1, -1
|
||||
|
||||
addi x1, x0, 0x1BC
|
||||
|
||||
# Xor is involutive and commutative, applying it twice should give us the original operand
|
||||
xori x1, x1, 0x1EF
|
||||
xori x31, x1, 0x1BC
|
||||
Reference in New Issue
Block a user