1# Test new instructions 2 3 .text 4 .global setpsw 5setpsw: 6 setpsw 0xc1 7 setpsw 0xff 8 9 .text 10 .global clrpsw 11clrpsw: 12 clrpsw 0xc1 13 clrpsw 0xff 14 15 .text 16 .global bset 17bset: 18 bset #0,@(4,r1) 19 bset #1,@(4,r1) 20 bset #7,@(4,r1) 21 22 .text 23 .global bclr 24bclr: 25 bclr #0,@(4,r1) 26 bclr #1,@(4,r1) 27 bclr #7,@(4,r1) 28 29 .text 30 .global btst 31btst: 32 btst #0,fp 33 btst #1,fp 34 btst #7,fp 35 btst #1,fp || mv r0,r2 36 mv r0,r2 || btst #1,fp 37 38 .text 39 .global divuh 40divuh: 41 divuh fp,fp 42 43 .text 44 .global divb 45divb: 46 divb fp,fp 47 48 .text 49 .global divub 50divub: 51 divub fp,fp 52 53 .text 54 .global remh 55remh: 56 remh fp,fp 57 58 .text 59 .global remuh 60remuh: 61 remuh fp,fp 62 63 .text 64 .global remb 65remb: 66 remb fp,fp 67 68 .text 69 .global remub 70remub: 71 remub fp,fp 72 73 .text 74 .global sll 75sll: 76 sll r0,r1 || sll r2,r3 77 mul r0,r1 || sll r2,r3 78 sll r0,r1 || mul r2,r3 79 ldi r0,#1 || sll r2,r3 80 sll r0,r1 || ldi r2,#1 81 82 .text 83 .global slli 84slli: 85 slli r0,#1 || slli r2,#31 86 mul r0,r1 || slli r2,#31 87 slli r0,#1 || mul r2,r3 88 ldi r0,#1 || slli r2,#31 89 slli r0,#1 || ldi r2,#1 90 91 .text 92 .global sra 93sra: 94 sra r0,r1 || sra r2,r3 95 mul r0,r1 || sra r2,r3 96 sra r0,r1 || mul r2,r3 97 ldi r0,#1 || sra r2,r3 98 sra r0,r1 || ldi r2,#1 99 100 .text 101 .global srai 102srai: 103 srai r0,#1 || srai r2,#31 104 mul r0,r1 || srai r2,#31 105 srai r0,#1 || mul r2,r3 106 ldi r0,#1 || srai r2,#31 107 srai r0,#1 || ldi r2,#1 108 109 .text 110 .global sra 111srl: 112 srl r0,r1 || srl r2,r3 113 mul r0,r1 || srl r2,r3 114 srl r0,r1 || mul r2,r3 115 ldi r0,#1 || srl r2,r3 116 srl r0,r1 || ldi r2,#1 117 118 .text 119 .global srai 120srli: 121 srli r0,#1 || srli r2,#31 122 mul r0,r1 || srli r2,#31 123 srli r0,#1 || mul r2,r3 124 ldi r0,#1 || srli r2,#31 125 srli r0,#1 || ldi r2,#1 126 127