llvm.org GIT mirror llvm / testing test / CodeGen / WebAssembly / globl.ll
testing

Tree @testing (Download .tar.gz)

globl.ll @testingraw · history · blame

; RUN: llc < %s -asm-verbose=false | FileCheck %s

target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown-wasm"

; CHECK: .globl foo
; CHECK-LABEL: foo:
define void @foo() {
  ret void
}

; Check import directives - must be at the end of the file
; CHECK: .import_global bar{{$}}
@bar = external global i32