1# cr16 testcase for ashuw $sr,$dr 2# mach(): cr16 3 4 .include "testutils.inc" 5 6 start 7 8 .global ashuw 9ashuw: 10 11 movw $0x1ff1, r4 12 movw $12,r5 13 ashuw r5, r4 14 15 cmpw $0x1000, r4 16 beq ok 17not_ok: 18 fail 19ok: 20 movw $0x1ff1, r4 21 movw $-12,r5 22 ashuw r5, r4 23 24 test_h_gr r4, 0x1 25 26 pass 27