brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · b04ebc3 Raw
63 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=i686-windows-msvc %s -o %t.obj3 4# RUN: lld-link -safeseh:no -entry:dllmain -dll %t.obj -out:%t.dll -implib:%t.lib5# RUN: llvm-readobj %t.lib | FileCheck -check-prefix DECORATED-IMPLIB %s6# RUN: llvm-readobj --coff-exports %t.dll | FileCheck -check-prefix DECORATED-EXPORTS %s7 8# DECORATED-IMPLIB: Name type: name9# DECORATED-IMPLIB-NEXT: Export name: @fastcall@810# DECORATED-IMPLIB-NEXT: __imp_@fastcall@811# DECORATED-IMPLIB-NEXT: @fastcall@812# DECORATED-IMPLIB: Name type: name13# DECORATED-IMPLIB-NEXT: Export name: _stdcall@814# DECORATED-IMPLIB-NEXT: __imp__stdcall@815# DECORATED-IMPLIB-NEXT: _stdcall@816# DECORATED-IMPLIB: Name type: noprefix17# DECORATED-IMPLIB-NEXT: Export name: _underscored18# DECORATED-IMPLIB-NEXT: __imp___underscored19# DECORATED-IMPLIB-NEXT: __underscored20# DECORATED-IMPLIB: Name type: name21# DECORATED-IMPLIB-NEXT: Export name: vectorcall@@822# DECORATED-IMPLIB-NEXT: __imp_vectorcall@@823# DECORATED-IMPLIB-NEXT: vectorcall@@824 25# DECORATED-EXPORTS: Name: @fastcall@826# DECORATED-EXPORTS: Name: _stdcall@827# DECORATED-EXPORTS: Name: _underscored28# DECORATED-EXPORTS: Name: vectorcall@@829 30        .def     _stdcall@8;31        .scl    2;32        .type   32;33        .endef34        .globl  _stdcall@835        .globl  @fastcall@836        .globl  vectorcall@@837        .globl  __underscored38_stdcall@8:39        movl    8(%esp), %eax40        addl    4(%esp), %eax41        retl    $842@fastcall@8:43        movl    8(%esp), %eax44        addl    4(%esp), %eax45        retl    $846vectorcall@@8:47        movl    8(%esp), %eax48        addl    4(%esp), %eax49        retl    $850__underscored:51        ret52 53        .def     _dllmain;54        .scl    2;55        .type   32;56        .endef57        .globl  _dllmain58_dllmain:59        retl60 61.section .drectve62.ascii "-export:__underscored -export:_stdcall@8 -export:@fastcall@8 -export:vectorcall@@8"63