1 #objdump: -dr --prefix-addresses --show-raw-insn 2 #name: NIOS2 R2 ldw 3 #as: -march=r2 4 5 # Test the ld instruction 6 7 .*: +file format elf32-littlenios2 8 9 Disassembly of section .text: 10 0+0000 <[^>]*> 00002017 ldw r4,0\(zero\) 11 0+0004 <[^>]*> 00042017 ldw r4,4\(zero\) 12 0+0008 <[^>]*> 07fc2017 ldw r4,2044\(zero\) 13 0+000c <[^>]*> f8002017 ldw r4,-2048\(zero\) 14 0+0010 <[^>]*> 00002157 ldw r4,0\(r5\) 15 0+0014 <[^>]*> 00042157 ldw r4,4\(r5\) 16 0+0018 <[^>]*> 07fc2157 ldw r4,2044\(r5\) 17 0+001c <[^>]*> f8002157 ldw r4,-2048\(r5\) 18 0+0020 <[^>]*> 00002017 ldw r4,0\(zero\) 19 [ ]*20: R_NIOS2_S16 .data 20 0+0024 <[^>]*> 00002017 ldw r4,0\(zero\) 21 [ ]*24: R_NIOS2_S16 big_external_data_label 22 0+0028 <[^>]*> 00002017 ldw r4,0\(zero\) 23 [ ]*28: R_NIOS2_S16 small_external_data_label 24 0+002c <[^>]*> 00002017 ldw r4,0\(zero\) 25 [ ]*2c: R_NIOS2_S16 big_external_common 26 0+0030 <[^>]*> 00002017 ldw r4,0\(zero\) 27 [ ]*30: R_NIOS2_S16 small_external_common 28 0+0034 <[^>]*> 00002017 ldw r4,0\(zero\) 29 [ ]*34: R_NIOS2_S16 .bss 30 0+0038 <[^>]*> 00002017 ldw r4,0\(zero\) 31 [ ]*38: R_NIOS2_S16 .bss\+0x400 32 0+003c <[^>]*> 00002017 ldw r4,0\(zero\) 33 [ ]*3c: R_NIOS2_S16 .data\+0x4 34 0+0040 <[^>]*> 00002017 ldw r4,0\(zero\) 35 [ ]*40: R_NIOS2_S16 big_external_data_label\+0x4 36 0+0044 <[^>]*> 00002017 ldw r4,0\(zero\) 37 [ ]*44: R_NIOS2_S16 small_external_data_label\+0x4 38 0+0048 <[^>]*> 00002017 ldw r4,0\(zero\) 39 [ ]*48: R_NIOS2_S16 big_external_common\+0x4 40 0+004c <[^>]*> 00002017 ldw r4,0\(zero\) 41 [ ]*4c: R_NIOS2_S16 small_external_common\+0x4 42 0+0050 <[^>]*> 00002017 ldw r4,0\(zero\) 43 [ ]*50: R_NIOS2_S16 .bss\+0x4 44 0+0054 <[^>]*> 00002017 ldw r4,0\(zero\) 45 [ ]*54: R_NIOS2_S16 .bss\+0x404 46 0+0058 <[^>]*> 00002017 ldw r4,0\(zero\) 47 [ ]*58: R_NIOS2_S16 .data-0x800 48 0+005c <[^>]*> 00002017 ldw r4,0\(zero\) 49 [ ]*5c: R_NIOS2_S16 big_external_data_label-0x800 50 0+0060 <[^>]*> 00002017 ldw r4,0\(zero\) 51 [ ]*60: R_NIOS2_S16 small_external_data_label-0x800 52 0+0064 <[^>]*> 00002017 ldw r4,0\(zero\) 53 [ ]*64: R_NIOS2_S16 big_external_common-0x800 54 0+0068 <[^>]*> 00002017 ldw r4,0\(zero\) 55 [ ]*68: R_NIOS2_S16 small_external_common-0x800 56 0+006c <[^>]*> 00002017 ldw r4,0\(zero\) 57 [ ]*6c: R_NIOS2_S16 .bss-0x800 58 0+0070 <[^>]*> 00002017 ldw r4,0\(zero\) 59 [ ]*70: R_NIOS2_S16 .bss-0x400 60 0+0074 <[^>]*> 00002017 ldw r4,0\(zero\) 61 [ ]*74: R_NIOS2_S16 .data\+0x10000 62 0+0078 <[^>]*> 00002157 ldw r4,0\(r5\) 63 [ ]*78: R_NIOS2_S16 .data 64 0+007c <[^>]*> 00002157 ldw r4,0\(r5\) 65 [ ]*7c: R_NIOS2_S16 big_external_data_label 66 0+0080 <[^>]*> 00002157 ldw r4,0\(r5\) 67 [ ]*80: R_NIOS2_S16 small_external_data_label 68 0+0084 <[^>]*> 00002157 ldw r4,0\(r5\) 69 [ ]*84: R_NIOS2_S16 big_external_common 70 0+0088 <[^>]*> 00002157 ldw r4,0\(r5\) 71 [ ]*88: R_NIOS2_S16 small_external_common 72 0+008c <[^>]*> 00002157 ldw r4,0\(r5\) 73 [ ]*8c: R_NIOS2_S16 .bss 74 0+0090 <[^>]*> 00002157 ldw r4,0\(r5\) 75 [ ]*90: R_NIOS2_S16 .bss\+0x400 76 0+0094 <[^>]*> 00002157 ldw r4,0\(r5\) 77 [ ]*94: R_NIOS2_S16 .data\+0x4 78 0+0098 <[^>]*> 00002157 ldw r4,0\(r5\) 79 [ ]*98: R_NIOS2_S16 big_external_data_label\+0x4 80 0+009c <[^>]*> 00002157 ldw r4,0\(r5\) 81 [ ]*9c: R_NIOS2_S16 small_external_data_label\+0x4 82 0+00a0 <[^>]*> 00002157 ldw r4,0\(r5\) 83 [ ]*a0: R_NIOS2_S16 big_external_common\+0x4 84 0+00a4 <[^>]*> 00002157 ldw r4,0\(r5\) 85 [ ]*a4: R_NIOS2_S16 small_external_common\+0x4 86 0+00a8 <[^>]*> 00002157 ldw r4,0\(r5\) 87 [ ]*a8: R_NIOS2_S16 .bss\+0x4 88 0+00ac <[^>]*> 00002157 ldw r4,0\(r5\) 89 [ ]*ac: R_NIOS2_S16 .bss\+0x404 90 0+00b0 <[^>]*> 00002157 ldw r4,0\(r5\) 91 [ ]*b0: R_NIOS2_S16 .data-0x800 92 0+00b4 <[^>]*> 00002157 ldw r4,0\(r5\) 93 [ ]*b4: R_NIOS2_S16 big_external_data_label-0x800 94 0+00b8 <[^>]*> 00002157 ldw r4,0\(r5\) 95 [ ]*b8: R_NIOS2_S16 small_external_data_label-0x800 96 0+00bc <[^>]*> 00002157 ldw r4,0\(r5\) 97 [ ]*bc: R_NIOS2_S16 big_external_common-0x800 98 0+00c0 <[^>]*> 00002157 ldw r4,0\(r5\) 99 [ ]*c0: R_NIOS2_S16 small_external_common-0x800 100 0+00c4 <[^>]*> 00002157 ldw r4,0\(r5\) 101 [ ]*c4: R_NIOS2_S16 .bss-0x800 102 0+00c8 <[^>]*> 00002157 ldw r4,0\(r5\) 103 [ ]*c8: R_NIOS2_S16 .bss-0x400 104 0+00cc <[^>]*> 80002028 ldwio r4,0\(zero\) 105 0+00d0 <[^>]*> 80042028 ldwio r4,4\(zero\) 106 0+00d4 <[^>]*> 87fc2028 ldwio r4,2044\(zero\) 107 0+00d8 <[^>]*> 88002028 ldwio r4,-2048\(zero\) 108 0+00dc <[^>]*> 80002168 ldwio r4,0\(r5\) 109 0+00e0 <[^>]*> 80042168 ldwio r4,4\(r5\) 110 0+00e4 <[^>]*> 87fc2168 ldwio r4,2044\(r5\) 111 0+00e8 <[^>]*> 88002168 ldwio r4,-2048\(r5\) 112 0+00ec <[^>]*> 80002028 ldwio r4,0\(zero\) 113 [ ]*ec: R_NIOS2_R2_S12 .data 114 0+00f0 <[^>]*> 80002028 ldwio r4,0\(zero\) 115 [ ]*f0: R_NIOS2_R2_S12 big_external_data_label 116 0+00f4 <[^>]*> 80002028 ldwio r4,0\(zero\) 117 [ ]*f4: R_NIOS2_R2_S12 small_external_data_label 118 0+00f8 <[^>]*> 80002028 ldwio r4,0\(zero\) 119 [ ]*f8: R_NIOS2_R2_S12 big_external_common 120 0+00fc <[^>]*> 80002028 ldwio r4,0\(zero\) 121 [ ]*fc: R_NIOS2_R2_S12 small_external_common 122 0+0100 <[^>]*> 80002028 ldwio r4,0\(zero\) 123 [ ]*100: R_NIOS2_R2_S12 .bss 124 0+0104 <[^>]*> 80002028 ldwio r4,0\(zero\) 125 [ ]*104: R_NIOS2_R2_S12 .bss\+0x400 126 0+0108 <[^>]*> 80002028 ldwio r4,0\(zero\) 127 [ ]*108: R_NIOS2_R2_S12 .data\+0x4 128 0+010c <[^>]*> 80002028 ldwio r4,0\(zero\) 129 [ ]*10c: R_NIOS2_R2_S12 big_external_data_label\+0x4 130 0+0110 <[^>]*> 80002028 ldwio r4,0\(zero\) 131 [ ]*110: R_NIOS2_R2_S12 small_external_data_label\+0x4 132 0+0114 <[^>]*> 80002028 ldwio r4,0\(zero\) 133 [ ]*114: R_NIOS2_R2_S12 big_external_common\+0x4 134 0+0118 <[^>]*> 80002028 ldwio r4,0\(zero\) 135 [ ]*118: R_NIOS2_R2_S12 small_external_common\+0x4 136 0+011c <[^>]*> 80002028 ldwio r4,0\(zero\) 137 [ ]*11c: R_NIOS2_R2_S12 .bss\+0x4 138 0+0120 <[^>]*> 80002028 ldwio r4,0\(zero\) 139 [ ]*120: R_NIOS2_R2_S12 .bss\+0x404 140 0+0124 <[^>]*> 80002028 ldwio r4,0\(zero\) 141 [ ]*124: R_NIOS2_R2_S12 .data-0x800 142 0+0128 <[^>]*> 80002028 ldwio r4,0\(zero\) 143 [ ]*128: R_NIOS2_R2_S12 big_external_data_label-0x800 144 0+012c <[^>]*> 80002028 ldwio r4,0\(zero\) 145 [ ]*12c: R_NIOS2_R2_S12 small_external_data_label-0x800 146 0+0130 <[^>]*> 80002028 ldwio r4,0\(zero\) 147 [ ]*130: R_NIOS2_R2_S12 big_external_common-0x800 148 0+0134 <[^>]*> 80002028 ldwio r4,0\(zero\) 149 [ ]*134: R_NIOS2_R2_S12 small_external_common-0x800 150 0+0138 <[^>]*> 80002028 ldwio r4,0\(zero\) 151 [ ]*138: R_NIOS2_R2_S12 .bss-0x800 152 0+013c <[^>]*> 80002028 ldwio r4,0\(zero\) 153 [ ]*13c: R_NIOS2_R2_S12 .bss-0x400 154 0+0140 <[^>]*> 80002028 ldwio r4,0\(zero\) 155 [ ]*140: R_NIOS2_R2_S12 .data\+0x10000 156 0+0144 <[^>]*> 80002168 ldwio r4,0\(r5\) 157 [ ]*144: R_NIOS2_R2_S12 .data 158 0+0148 <[^>]*> 80002168 ldwio r4,0\(r5\) 159 [ ]*148: R_NIOS2_R2_S12 big_external_data_label 160 0+014c <[^>]*> 80002168 ldwio r4,0\(r5\) 161 [ ]*14c: R_NIOS2_R2_S12 small_external_data_label 162 0+0150 <[^>]*> 80002168 ldwio r4,0\(r5\) 163 [ ]*150: R_NIOS2_R2_S12 big_external_common 164 0+0154 <[^>]*> 80002168 ldwio r4,0\(r5\) 165 [ ]*154: R_NIOS2_R2_S12 small_external_common 166 0+0158 <[^>]*> 80002168 ldwio r4,0\(r5\) 167 [ ]*158: R_NIOS2_R2_S12 .bss 168 0+015c <[^>]*> 80002168 ldwio r4,0\(r5\) 169 [ ]*15c: R_NIOS2_R2_S12 .bss\+0x400 170 0+0160 <[^>]*> 80002168 ldwio r4,0\(r5\) 171 [ ]*160: R_NIOS2_R2_S12 .data\+0x4 172 0+0164 <[^>]*> 80002168 ldwio r4,0\(r5\) 173 [ ]*164: R_NIOS2_R2_S12 big_external_data_label\+0x4 174 0+0168 <[^>]*> 80002168 ldwio r4,0\(r5\) 175 [ ]*168: R_NIOS2_R2_S12 small_external_data_label\+0x4 176 0+016c <[^>]*> 80002168 ldwio r4,0\(r5\) 177 [ ]*16c: R_NIOS2_R2_S12 big_external_common\+0x4 178 0+0170 <[^>]*> 80002168 ldwio r4,0\(r5\) 179 [ ]*170: R_NIOS2_R2_S12 small_external_common\+0x4 180 0+0174 <[^>]*> 80002168 ldwio r4,0\(r5\) 181 [ ]*174: R_NIOS2_R2_S12 .bss\+0x4 182 0+0178 <[^>]*> 80002168 ldwio r4,0\(r5\) 183 [ ]*178: R_NIOS2_R2_S12 .bss\+0x404 184 0+017c <[^>]*> 80002168 ldwio r4,0\(r5\) 185 [ ]*17c: R_NIOS2_R2_S12 .data-0x800 186 0+0180 <[^>]*> 80002168 ldwio r4,0\(r5\) 187 [ ]*180: R_NIOS2_R2_S12 big_external_data_label-0x800 188 0+0184 <[^>]*> 80002168 ldwio r4,0\(r5\) 189 [ ]*184: R_NIOS2_R2_S12 small_external_data_label-0x800 190 0+0188 <[^>]*> 80002168 ldwio r4,0\(r5\) 191 [ ]*188: R_NIOS2_R2_S12 big_external_common-0x800 192 0+018c <[^>]*> 80002168 ldwio r4,0\(r5\) 193 [ ]*18c: R_NIOS2_R2_S12 small_external_common-0x800 194 0+0190 <[^>]*> 80002168 ldwio r4,0\(r5\) 195 [ ]*190: R_NIOS2_R2_S12 .bss-0x800 196 0+0194 <[^>]*> 80002168 ldwio r4,0\(r5\) 197 [ ]*194: R_NIOS2_R2_S12 .bss-0x400 198