You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
560 B

; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers | FileCheck %s
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
target triple = "wasm32-unknown-unknown"
; CHECK: .weak f
define weak i32 @f() {
unreachable
}
; CHECK: g:
; CHECK: call h
define void @g() {
tail call void @h( )
ret void
}
; CHECK: bar:
; CHECK: .int32 foo
; CHECK: .size bar, 4
@bar = global i32* @foo
; CHECK: .weak h
declare extern_weak void @h()
; CHECK: .weak foo
@foo = extern_weak global i32