1*4b169a6bSchristos# cr16 testcase for cmpb $imm4, reg 2*4b169a6bSchristos# mach(): cr16 3*4b169a6bSchristos 4*4b169a6bSchristos .include "testutils.inc" 5*4b169a6bSchristos 6*4b169a6bSchristos start 7*4b169a6bSchristos 8*4b169a6bSchristos .global cmpb_i 9*4b169a6bSchristoscmpb_i: 10*4b169a6bSchristos mvi_h_condbit 0 11*4b169a6bSchristos movw $0x2311, r4 12*4b169a6bSchristos cmpb $0x4211, r4 13*4b169a6bSchristos beq ok 14*4b169a6bSchristosnot_ok: 15*4b169a6bSchristos fail 16*4b169a6bSchristosok: 17*4b169a6bSchristos mvi_h_condbit 1 18*4b169a6bSchristos cmpb $0x4222,r4 19*4b169a6bSchristos beq not_ok 20*4b169a6bSchristos 21*4b169a6bSchristos pass 22