brintos

brintos / llvm-project-archived public Read only

0
0
Text · 978 B · 0e46177 Raw
32 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s2# RUN: wasm-ld --no-entry %t.o -o %t.wasm3# RUN: obj2yaml %t.wasm | FileCheck %s4 5# Check that "__llvm_covfun" custom section is aligned to 8 bytes.6 7        .section        .custom_section.__llvm_covfun,"GR",@,__covrec_A8        .int32  19        .int8   210# pad   .int8   011#       .int8   012#       .int8   013 14        .section        .custom_section.__llvm_covfun,"GR",@,__covrec_B15        .int32  316 17# CHECK:      - Type:            CUSTOM18# CHECK-NEXT:   Name:            __llvm_covfun19# CHECK-NEXT:   Payload:         '010000000200000003000000'20 21# Check that regular custom sections are not aligned.22        .section        .custom_section.foo,"GR",@,foo_A23        .int32  124        .int8   225 26        .section        .custom_section.foo,"GR",@,foo_B27        .int32  328 29# CHECK:      - Type:            CUSTOM30# CHECK-NEXT:   Name:            foo31# CHECK-NEXT:   Payload:         '010000000203000000'32