| 1 | # Source file used to test DWARF2 information for MIPS16. |
| 2 | |
| 3 | .set mips16 |
| 4 | |
| 5 | .text |
| 6 | .Ltext0: |
| 7 | .p2align 2 |
| 8 | |
| 9 | .file 1 "mips16-dwarf2.s" |
| 10 | stuff: |
| 11 | .loc 1 1 0 |
| 12 | nop |
| 13 | .loc 1 2 0 |
| 14 | li $2, 0 |
| 15 | .loc 1 3 0 |
| 16 | li $2, 0x1234 |
| 17 | .loc 1 4 0 |
| 18 | lw $2, 0f |
| 19 | .loc 1 5 0 |
| 20 | lw $2, 1f |
| 21 | .loc 1 6 0 |
| 22 | b 2f |
| 23 | nop |
| 24 | .loc 1 7 0 |
| 25 | b 1f |
| 26 | nop |
| 27 | .loc 1 8 0 |
| 28 | |
| 29 | .p2align 8 |
| 30 | 2: |
| 31 | .insn |
| 32 | 0: |
| 33 | .space 2048 |
| 34 | 1: |
| 35 | nop |
| 36 | # align section end to 16-byte boundary for easier testing on multiple targets |
| 37 | .p2align 4 |
| 38 | .Letext0: |
| 39 | |
| 40 | .section .debug_info,"",@progbits |
| 41 | .Ldebug_info0: |
| 42 | .4byte .Ledebug_info0 - .L1debug_info0 # length |
| 43 | .L1debug_info0: |
| 44 | .2byte 2 # version |
| 45 | .4byte .Ldebug_abbrev0 # abbrev offset |
| 46 | .byte 4 # address size |
| 47 | .uleb128 0x1 # abbrev code |
| 48 | .4byte .Ldebug_line0 # DW_AT_stmt_list |
| 49 | .4byte .Ltext0 # DW_AT_low_pc |
| 50 | .4byte .Letext0 # DW_AT_high_pc |
| 51 | .Ledebug_info0: |
| 52 | |
| 53 | .section .debug_abbrev,"",@progbits |
| 54 | .Ldebug_abbrev0: |
| 55 | .uleb128 0x1 # abbrev code |
| 56 | .uleb128 0x11 # DW_TAG_compile_unit |
| 57 | .byte 0x0 # DW_CHILDREN_no |
| 58 | .uleb128 0x10 # DW_AT_stmt_list |
| 59 | .uleb128 0x6 # DW_FORM_data4 |
| 60 | .uleb128 0x11 # DW_AT_low_pc |
| 61 | .uleb128 0x1 # DW_FORM_addr |
| 62 | .uleb128 0x12 # DW_AT_high_pc |
| 63 | .uleb128 0x1 # DW_FORM_addr |
| 64 | .byte 0x0 |
| 65 | .byte 0x0 |
| 66 | |
| 67 | .section .debug_line,"",@progbits |
| 68 | .Ldebug_line0: |