Add tests for stage 7
This commit is contained in:
16
bench/tests/op/xor.s
Normal file
16
bench/tests/op/xor.s
Normal 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
|
||||
Reference in New Issue
Block a user