;
; group l, test 2
;
; shl.16, shr.16
;

m4_include(..\tmacros.h)

INIT_TEST(l,0x01)

; declare symbols here
SYM(next0)
SYM(next1)
SYM(next2)
SYM(next3)

; Begin test here

SUBTEST(1)

;   shl.16   a
    ld.16   a,0x5555
    shl.16   a
    cmpb.eq.16	a,0xaaaa,next0
    FAIL
next0:
    shr.16   a
    cmpb.eq.16	a,0x5555,next1
    FAIL
next1:

SUBTEST(2)
;   shl.16   b
    ld.16   b,0x5555
    shl.16   b
    copy    a,b
    cmpb.eq.16	a,0xaaaa,next2
    FAIL
next2:
    shr.16   b
    copy    a,b
    cmpb.eq.16	a,0x5555,next3
    FAIL
next3:

;   Finally, when done branch to pass
    END_TEST
