llvm-project/lld/test/pecoff/armnt-mov32t-exec.test

22 lines
783 B
Plaintext

# REQUIRES: arm
# RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-mov32t-exec.obj.yaml
# RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
# RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:get_function %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: 40 f2 00 00 movw r0, #0
BEFORE: 8: c0 f2 00 00 movt r0, #0
BEFORE: c: 70 47 bx lr
AFTER: Disassembly of section .text:
AFTER: 1000: 70 47 bx lr
AFTER: 1002: 00 bf nop
AFTER: 1004: 41 f2 01 00 movw r0, #4097
AFTER: 1008: c0 f2 40 00 movt r0, #64
AFTER: 100c: 70 47 bx lr