brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1018 B · ed54f3c Raw
33 lines · plain
1# REQUIRES: arm2 3# RUN: llvm-mc -triple thumbv6m-arm-eabi --filetype=obj %s -o %t.o4# RUN: ld.lld %t.o -o %t5# RUN: llvm-objdump -d %t --no-show-raw-insn | FileCheck %s --check-prefixes=CHECK,CHECK-LE6 7# RUN: llvm-mc -triple thumbebv6m-arm-eabi --filetype=obj %s -o %t.o8# RUN: ld.lld %t.o -o %t9# RUN: llvm-objdump -d %t --no-show-raw-insn | FileCheck %s --check-prefixes=CHECK,CHECK-BE10 11# CHECK-LE:                    file format elf32-littlearm12# CHECK-BE:                    file format elf32-bigarm13 14# CHECK:                       Disassembly of section .text:15 16# CHECK-LABEL: [[#%x,TARGET:]] <target>:17# CHECK-NEXT:      [[#TARGET]]: bx lr18 19# CHECK-LABEL:                 <_start>:20# CHECK-NEXT:                   b      0x[[#TARGET]] <target>21# CHECK-NEXT:                   beq    0x[[#TARGET]] <target>22 23    .thumb24    .section .text.1, "ax", %progbits25target:26    bx lr27 28    .section .text.2, "ax", %progbits29    .globl _start30_start:31    b.n target   // R_ARM_THM_JUMP1132    beq.n target // R_ARM_THM_JUMP833