1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00
llvm-mirror/test/CodeGen/WebAssembly/weak.ll
Thomas Lively 81bb5f99ad [WebAssembly] Remove datalayout strings from llc tests
The data layout strings do not have any effect on llc tests and will become
misleadingly out of date as we continue to update the canonical data layout, so
remove them from the tests.

Differential Revision: https://reviews.llvm.org/D105842
2021-07-14 11:17:08 -07:00

27 lines
505 B
LLVM

; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -wasm-disable-explicit-locals -wasm-keep-registers | FileCheck %s
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