Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 243:System/pios_board.c **** double in1 = 3;
- 244:System/pios_board.c **** float in2 = 3;
- 245:System/pios_board.c **** double out = 3;
- 246:System/pios_board.c **** void bad_math() {
- 269 .loc 2 246 0
- 270 .cfi_startproc
- 271 @ args = 0, pretend = 0, frame = 0
- 272 @ frame_needed = 0, uses_anonymous_args = 0
- 273 @ link register save eliminated.
- 247:System/pios_board.c **** in1 = (double) 1.0;
- 274 .loc 2 247 0
- 275 0070 0849 ldr r1, .L30
- 276 0072 094B ldr r3, .L30+4
- 277 0074 0020 movs r0, #0
- 278 0076 41EC170B fmdrr d7, r0, r1
- 248:System/pios_board.c **** in2 = (double) 2.0;
- 249:System/pios_board.c **** out = in1 * in2;
- 279 .loc 2 249 0
- 280 007a 0020 movs r0, #0
- 281 007c 4FF08041 mov r1, #1073741824
- 247:System/pios_board.c **** in1 = (double) 1.0;
- 282 .loc 2 247 0
- 283 0080 83ED007B fstd d7, [r3, #0]
- 284 .loc 2 249 0
- 285 0084 41EC170B fmdrr d7, r0, r1
- 248:System/pios_board.c **** in2 = (double) 2.0;
- 286 .loc 2 248 0
- 287 0088 4FF08042 mov r2, #1073741824
- 288 008c 9A60 str r2, [r3, #8] @ float
- 289 .loc 2 249 0
- 290 008e 83ED047B fstd d7, [r3, #16]
- 250:System/pios_board.c **** }
- 291 .loc 2 250 0
- 292 0092 7047 bx lr
- 293 .L31:
- 294 .align 2
- 295 .L30:
- 296 0094 0000F03F .word 1072693248
- 297 0098 00000000 .word .LANCHOR1
- 298 .cfi_endproc
- 299 .LFE120:
- 301 .global __aeabi_f2d
- 302 .global __aeabi_dmul
- 303 .align 1
- 304 .global bad_math_2
- 305 .thumb
- 306 .thumb_func
- 308 bad_math_2:
- 309 .LFB121:
- 251:System/pios_board.c **** void bad_math_2() {
- 310 .loc 2 251 0
- 311 .cfi_startproc
- 312 @ args = 0, pretend = 0, frame = 0
- 313 @ frame_needed = 0, uses_anonymous_args = 0
- 314 009c 10B5 push {r4, lr}
- 315 .LCFI0:
- 316 .cfi_def_cfa_offset 8
- 317 .cfi_offset 14, -4
- 318 .cfi_offset 4, -8
- 252:System/pios_board.c **** out = in1 * in2;
- 319 .loc 2 252 0
- 320 009e 064C ldr r4, .L33
- 321 00a0 94ED020A flds s0, [r4, #8]
- 322 00a4 FFF7FEFF bl __aeabi_f2d
- 323 00a8 94ED001B fldd d1, [r4, #0]
- 324 00ac FFF7FEFF bl __aeabi_dmul
- 325 00b0 84ED040B fstd d0, [r4, #16]
- 253:System/pios_board.c **** }
- 326 .loc 2 253 0
- 327 00b4 10BD pop {r4, pc}
- 328 .L34:
- 329 00b6 00BF .align 2
- 330 .L33:
- 331 00b8 00000000 .word .LANCHOR1
- 332 .cfi_endproc
- 333 .LFE121:
- 335 .align 1
- 336 .global test
- 337 .thumb
- 338 .thumb_func
- 340 test:
- 341 .LFB122:
- 254:System/pios_board.c ****
- 255:System/pios_board.c **** double test(float a) { return (double)a; }
- 342 .loc 2 255 0
- 343 .cfi_startproc
- 344 @ args = 0, pretend = 0, frame = 0
- 345 @ frame_needed = 0, uses_anonymous_args = 0
- 346 .LVL0:
- 347 00bc 08B5 push {r3, lr}
- 348 .LCFI1:
- 349 .cfi_def_cfa_offset 8
- 350 .cfi_offset 14, -4
- 351 .cfi_offset 3, -8
- 352 .loc 2 255 0
- 353 00be FFF7FEFF bl __aeabi_f2d
- 354 .LVL1:
- 355 00c2 08BD pop {r3, pc}
- 356 .cfi_endproc
- 357 .LFE122:
- 359 .align 1
- 360 .global PIOS_Board_Init
- 361 .thumb
- 362 .thumb_func
- 364 PIOS_Board_Init:
- 365 .LFB123:
Add Comment
Please, Sign In to add comment