mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[lld][WebAssembly] Convert more tests to asm format. NFC.
Differential Revision: https://reviews.llvm.org/D91681
This commit is contained in:
parent
54ddb1ae8c
commit
b9f542fc73
27
test/CodeGen/WebAssembly/weak.ll
Normal file
27
test/CodeGen/WebAssembly/weak.ll
Normal file
@ -0,0 +1,27 @@
|
||||
; 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
|
Loading…
x
Reference in New Issue
Block a user