Home | History | Annotate | Download | only in WebAssembly
      1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -disable-wasm-explicit-locals -thread-model=single | FileCheck --check-prefix=SINGLE %s
      2 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
      3 target triple = "wasm32-unknown-unknown"
      4 
      5 ; SINGLE-LABEL: address_of_tls:
      6 define i32 @address_of_tls() {
      7   ; SINGLE: i32.const $push0=, tls
      8   ; SINGLE-NEXT: return $pop0
      9   ret i32 ptrtoint(i32* @tls to i32)
     10 }
     11 
     12 ; SINGLE: .type	tls,@object
     13 ; SINGLE-NEXT: .section	.bss.tls,"",@
     14 ; SINGLE-NEXT: .p2align 2
     15 ; SINGLE-NEXT: tls:
     16 ; SINGLE-NEXT: .int32 0
     17 @tls = internal thread_local global i32 0
     18