2018-08-27 23:45:51 +08:00
|
|
|
; RUN: llc < %s -asm-verbose=false -wasm-keep-registers | FileCheck %s
|
2018-02-10 07:13:22 +08:00
|
|
|
|
2018-05-11 01:49:11 +08:00
|
|
|
target triple = "wasm32-unknown-unknown"
|
2018-02-10 07:13:22 +08:00
|
|
|
|
|
|
|
define void @test() {
|
|
|
|
call void @foo()
|
|
|
|
call void @plain()
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
declare void @foo() #0
|
|
|
|
declare void @plain()
|
|
|
|
|
2019-02-02 06:27:34 +08:00
|
|
|
attributes #0 = { "wasm-import-module"="bar" "wasm-import-name"="qux" }
|
2018-02-10 07:13:22 +08:00
|
|
|
|
|
|
|
; CHECK-NOT: .import_module plain
|
|
|
|
; CHECK: .import_module foo, bar
|
2019-02-02 06:27:34 +08:00
|
|
|
; CHECK: .import_name foo, qux
|
2018-02-10 07:13:22 +08:00
|
|
|
; CHECK-NOT: .import_module plain
|