brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 440eaa5 Raw
38 lines · plain
1// Regression test for a bug in which --disassemble-all had the side effect2// of stopping mapping symbols from being checked in code sections, so that3// mixed Arm/Thumb code would not all be correctly disassembled.4 5@ RUN: llvm-mc -triple arm-unknown-linux -filetype=obj %s -o %t.o6@ RUN: llvm-objdump --no-print-imm-hex -d %t.o | FileCheck %s7@ RUN: llvm-objdump --no-print-imm-hex -d --disassemble-all %t.o | FileCheck %s8 9@ CHECK:       00000000 <armfunc>:10@ CHECK-NEXT:        0: e2800001      add     r0, r0, #111@ CHECK-NEXT:        4: e12fff1e      bx      lr12@ CHECK-NEXT:        8: 00 00         .short  0x000013@ CHECK-EMPTY:14@ CHECK:       0000000a <thmfunc>:15@ CHECK-NEXT:        a: f100 0001     add.w   r0, r0, #116@ CHECK-NEXT:        e: 4770          bx      lr17@ CHECK-NEXT:       10: 00 00         .short  0x000018 19	.arch armv8a20        .text21 22        .arm23	.global	armfunc24	.type	armfunc, %function25armfunc:26        add     r0, r0, #127        bx      lr28        @@ Test that this is not displayed as a .word29        .space  230 31        .thumb32	.global	thmfunc33	.type	thmfunc, %function34thmfunc:35        add     r0, r0, #136        bx      lr37        .space  238