1# sh testcase for extu.w $rm, $rn -*- Asm -*- 2# mach: all 3# as: -isa=shcompact 4# ld: -m shelf32 5 6 .include "compact/testutils.inc" 7 8 start 9 10 .global extuw 11extuw: 12 mov #42, r1 13 extu.w r1, r2 14 assert r2, #42 15 16another: 17 mov #0, r0 18 or #255, r0 19 shll8 r0 20 extu.w r0, r1 21 mov #0, r0 22 or #255, r0 23 shll8 r0 24 cmp/eq r0, r1 25 bf wrong 26 27okay: 28 pass 29 30wrong: 31 fail 32