Projet_SETI_RISC-V/riscv-gnu-toolchain/binutils/sim/testsuite/cr16/bne.cgs

23 lines
229 B
Text
Raw Permalink Normal View History

2023-03-06 14:48:14 +01:00
# cr16 testcase for bne disp16
# mach(): cr16
.include "testutils.inc"
start
.global bne
bne:
movw $1, r4
movw $2, r5
cmpw r4,r5
bne test0pass
test1fail:
fail
test0pass:
movw $1, r5
cmpw r4,r5
bne test1fail
pass