brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · c521449 Raw
30 lines · plain
1; REQUIRES: aarch64, x862 3; RUN: llvm-as %s -o %t.obj4; RUN: llvm-mc -filetype=obj -triple=arm64ec-windows %S/Inputs/loadconfig-arm64ec.s -o %t-loadconfig.obj5 6; RUN: lld-link -machine:arm64ec %t.obj %t-loadconfig.obj -out:%t.exe -subsystem:console7; RUN: llvm-objdump -d %t.exe | FileCheck %s8 9; CHECK:      0000000140001000 <.text>:10; CHECK-NEXT: 140001000: 00000009     udf     #0x911; CHECK-NEXT: 140001004: 52800020     mov     w0, #0x1                // =112; CHECK-NEXT: 140001008: d65f03c0     ret13 14; CHECK:      0000000140002000 <.hexpthk>:15; CHECK-NEXT: 140002000: 48 8b c4                     movq    %rsp, %rax16; CHECK-NEXT: 140002003: 48 89 58 20                  movq    %rbx, 0x20(%rax)17; CHECK-NEXT: 140002007: 55                           pushq   %rbp18; CHECK-NEXT: 140002008: 5d                           popq    %rbp19; CHECK-NEXT: 140002009: e9 f6 ef ff ff               jmp     0x140001004 <.text+0x4>20; CHECK-NEXT: 14000200e: cc                           int321; CHECK-NEXT: 14000200f: cc                           int322 23target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-p:64:64-i32:32-i64:64-i128:128-n32:64-S128-Fn32"24target triple = "arm64ec-unknown-windows-msvc"25 26define dso_local i32 @mainCRTStartup() {27entry:28  ret i32 129}30