1 .text 2prefix: 3 # The following should all disassemble to: paddi rX,rY,disp 4 pla 10,0(9) 5 paddi 10,9,0 6 paddi 10,9,0,0 7 pla 11,~(1<<15)(9) 8 paddi 11,9,~(1<<15) 9 paddi 11,9,~(1<<15),0 10 pla 12,8589934591(9) 11 psubi 12,9,-8589934591 12 psubi 12,9,-8589934591,0 13 paddi 12,9,8589934591 14 paddi 12,9,8589934591,0 15 pla 13,-8589934592(9) 16 psubi 13,9,8589934592 17 psubi 13,9,8589934592,0 18 paddi 13,9,-8589934592 19 paddi 13,9,-8589934592,0 20 21 # The following should all disassemble to: pla rX,disp 22 pla 14,0 23 paddi 14,0,0,1 24 pla 15,~(1<<15) 25 psubi 15,0,-(~(1<<15)),1 26 paddi 15,0,~(1<<15),1 27 pla 16,8589934591 28 psubi 16,0,-8589934591,1 29 paddi 16,0,8589934591,1 30 pla 17,-8589934592 31 psubi 17,0,8589934592,1 32 paddi 17,0,-8589934592,1 33 34 # The following should all disassemble to: pli rX,immed 35 pli 20,13 36 pla 20,13(0) 37 psubi 20,0,-13 38 paddi 20,0,13 39 pli 21,~(1<<15) 40 pla 21,~(1<<15)(0) 41 paddi 21,0,~(1<<15) 42 pli 22,8589934591 43 pla 22,8589934591(0) 44 psubi 22,0,-8589934591 45 psubi 22,0,-8589934591,0 46 paddi 22,0,8589934591 47 paddi 22,0,8589934591,0 48 pli 23,-8589934592 49 pla 23,-8589934592(0) 50 psubi 23,0,8589934592 51 psubi 23,0,8589934592,0 52 paddi 23,0,-8589934592 53 paddi 23,0,-8589934592,0 54 55 # Tests of prefix loads and stores 56 plbz 3,0(1) 57 plbz 3,0(1),0 58 plbz 3,~(1<<15)(1) 59 plbz 3,~(1<<15)(1),0 60 plbz 3,8589934591(1) 61 plbz 3,8589934591(1),0 62 plbz 3,-8589934592(1) 63 plbz 3,-8589934592(1),0 64 plbz 3,0(0) 65 plbz 4,0(0),1 66 plbz 4,0 67 plbz 3,~(1<<15)(0) 68 plbz 4,~(1<<15)(0),1 69 plbz 4,~(1<<15) 70 plbz 3,8589934591(0) 71 plbz 4,8589934591(0),1 72 plbz 4,8589934591 73 plbz 3,-8589934592(0) 74 plbz 4,-8589934592(0),1 75 plbz 4,-8589934592 76 plhz 5,4(10),0 77 plhz 5,4(0),1 78 plha 6,8(10),0 79 plha 6,8(0),1 80 plwz 7,12(10),0 81 plwz 7,12(0),1 82 plwa 8,16(10),0 83 plwa 8,16(0),1 84 pld 9,20(10),0 85 pld 9,20(0),1 86 plfs 10,24(10),0 87 plfs 10,24(0),1 88 plfd 11,28(10),0 89 plfd 11,28(0),1 90 plxsd 13,36(10),0 91 plxsd 13,36(0),1 92 plxssp 14,40(10),0 93 plxssp 14,40(0),1 94 plq 16,48(10),0 95 plq 16,48(0),1 96 plxv 17,64(10),0 97 plxv 17,64(0),1 98 plxv 34,64(10),0 99 plxv 34,64(0),1 100 pstb 3,52(11),0 101 pstb 3,52(0),1 102 psth 4,56(11),0 103 psth 4,56(0),1 104 pstw 5,60(11),0 105 pstw 5,60(0),1 106 pstfs 6,64(11),0 107 pstfs 6,64(0),1 108 pstfd 7,68(11),0 109 pstfd 7,68(0),1 110 pstxsd 9,76(11),0 111 pstxsd 9,76(0),1 112 pstxssp 10,80(11),0 113 pstxssp 10,80(0),1 114 pstd 11,84(11),0 115 pstd 11,84(0),1 116 pstq 12,88(11),0 117 pstq 12,88(0),1 118 pstxv 13,96(11),0 119 pstxv 13,96(0),1 120 pstxv 63,96(11),0 121 pstxv 63,96(0),1 122 123# test d34 values of interest when bfd_vma is 32-bit 124 pli 1,0x7fffffff 125 pli 2,0x80000000 126 pli 3,0xffffffff 127 pli 4,0 128 pli 5,-1 129 pli 6,-0x7fffffff 130 pli 7,-0x80000000 131 pli 8,~0x7fffffff 132 pli 9,~0x80000000 133