brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · c082c1e Raw
56 lines · plain
1# Testing that __tls_size and __tls_align are correctly emitted when there are2# no thread_local variables.3 4# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s5 6.globl  _start7_start:8  .functype _start () -> ()9  end_function10 11.section  .custom_section.target_features,"",@12  .int8 213  .int8 4314  .int8 715  .ascii  "atomics"16  .int8 4317  .int8 1118  .ascii  "bulk-memory"19 20# RUN: wasm-ld -no-gc-sections --shared-memory --max-memory=131072 --allow-undefined -o %t.wasm %t.o21# RUN: obj2yaml %t.wasm | FileCheck %s22# CHECK:       - Type:            GLOBAL23# CHECK-NEXT:    Globals:24 25# __stack_pointer26# CHECK-NEXT:      - Index:           027# CHECK-NEXT:        Type:            I3228# CHECK-NEXT:        Mutable:         true29# CHECK-NEXT:        InitExpr:30# CHECK-NEXT:          Opcode:          I32_CONST31# CHECK-NEXT:          Value:           6553632 33# __tls_base34# CHECK-NEXT:      - Index:           135# CHECK-NEXT:        Type:            I3236# CHECK-NEXT:        Mutable:         true37# CHECK-NEXT:        InitExpr:38# CHECK-NEXT:          Opcode:          I32_CONST39# CHECK-NEXT:          Value:           040 41# __tls_size42# CHECK-NEXT:      - Index:           243# CHECK-NEXT:        Type:            I3244# CHECK-NEXT:        Mutable:         false45# CHECK-NEXT:        InitExpr:46# CHECK-NEXT:          Opcode:          I32_CONST47# CHECK-NEXT:          Value:           048 49# __tls_align50# CHECK-NEXT:      - Index:           351# CHECK-NEXT:        Type:            I3252# CHECK-NEXT:        Mutable:         false53# CHECK-NEXT:        InitExpr:54# CHECK-NEXT:          Opcode:          I32_CONST55# CHECK-NEXT:          Value:           056