45 lines · plain
1// REQUIRES: aarch642 3// RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %s -o %t-arm64ec.obj4// RUN: llvm-mc -filetype=obj -triple=aarch64-windows %s -o %t-arm64.obj5// RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o %t-loadcfg.obj6 7// Check that .wowthk section is merged into .text on ARM64EC target.8 9// RUN: lld-link -out:%t.dll -machine:arm64ec %t-arm64ec.obj %t-loadcfg.obj -dll -noentry10// RUN: llvm-objdump -d %t.dll | FileCheck -check-prefix=DISASM %s11// DISASM: 0000000180001000 <.text>:12// DISASM-NEXT: 180001000: 52800040 mov w0, #0x2 // =213// DISASM-NEXT: 180001004: d65f03c0 ret14// DISASM-NEXT: 180001008: 52800060 mov w0, #0x3 // =315// DISASM-NEXT: 18000100c: d65f03c0 ret16 17// Check that .wowthk section is not merged on aarch64 target.18 19// RUN: lld-link -out:%t.dll -machine:arm64 %t-arm64.obj -dll -noentry20// RUN: llvm-objdump -d %t.dll | FileCheck -check-prefix=DISASM2 %s21// DISASM2: 0000000180001000 <.text>:22// DISASM2-NEXT: 180001000: 52800040 mov w0, #0x2 // =223// DISASM2-NEXT: 180001004: d65f03c0 ret24// DISASM2-EMPTY:25// DISASM2-NEXT: Disassembly of section .wowthk:26// DISASM2-EMPTY:27// DISASM2-NEXT: 0000000180002000 <.wowthk>:28// DISASM2-NEXT: 180002000: 52800060 mov w0, #0x3 // =329// DISASM2-NEXT: 180002004: d65f03c0 ret30 31 32 .text33 .globl arm64ec_func_sym34 .p2align 2, 0x035arm64ec_func_sym:36 mov w0, #237 ret38 39 .section .wowthk$aa, "x"40 .globl wowthk_sym41 .p2align 3, 0x042wowthk_sym:43 mov w0, #344 ret45