1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 12:33:33 +02:00
llvm-mirror/test/CodeGen/WebAssembly/globl.ll
Dan Gohman e031bf30bf [WebAssembly] Don't emit .import_global for the wasm target.
.import_global is used by the ELF-based target and not needed by the wasm
target.

llvm-svn: 319796
2017-12-05 17:21:57 +00:00

18 lines
371 B
LLVM

; 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: .type foo,@function
; CHECK-LABEL: foo:
; CHECK: .size foo,
define i32* @foo() {
ret i32* @bar
}
; CHECK: .type bar,@object
; CHECK: .globl bar
; CHECK: .size bar, 4
@bar = global i32 2