1/* Purpose: test the soundness of the lsr operation */ 2 3 .text 4 .globl _start 5 6_start: 7 { 8 r0 = #-56984 9 r1 = #2147483647 10 } 11 { 12 r2 = #0x19 13 } 14 { 15 r0 &= lsr(r1, r2) 16 } 17 { 18 p0 = cmp.eq(r0, #0x28); if (p0.new) jump:t test2 19 jump fail 20 } 21 22test2: 23 { 24 r0 = #0x0000000a 25 r1 = #0x00000000 26 } 27 { 28 r2 = #-1 29 } 30 { 31 r1:0 = lsl(r1:0, r2) 32 } 33 { 34 p0 = cmp.eq(r0, #0x5); if (p0.new) jump:t pass 35 jump fail 36 } 37