llvm-project/lld/test/pecoff/armnt-branch24t.test

21 lines
706 B
Plaintext

# REQUIRES: arm
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-branch24t.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe %t.obj
# RUN: llvm-objdump -d %t.exe | FileCheck %s -check-prefix AFTER
BEFORE: Disassembly of section .text:
BEFORE: 0: 70 47 bx lr
BEFORE: 2: 00 bf nop
BEFORE: 4: 20 20 movs r0, #32
BEFORE: 6: 00 f0 00 b8 b.w #0
AFTER: Disassembly of section .text:
AFTER: .text:
AFTER: 1000: 70 47 bx lr
AFTER: 1002: 00 bf nop
AFTER: 1004: 20 20 movs r0, #32
AFTER: 1006: ff f7 fb bf b.w #-10