23 lines
229 B
Text
23 lines
229 B
Text
|
# 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
|