Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / wasm / trace-symbol.s
blob88e5c6f5829e33e342b72a0632c877208a22ede7
1 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o
2 # RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.start.o %s
3 # RUN: wasm-ld -o %t.wasm %t.start.o %t.ret32.o -y ret32 -y _start | FileCheck %s -check-prefix=BOTH
4 # RUN: wasm-ld -o %t.wasm %t.ret32.o %t.start.o -y ret32 -y _start | FileCheck %s -check-prefix=REVERSED
6 # check alias
7 # RUN: wasm-ld -o %t.wasm %t.start.o %t.ret32.o -trace-symbol=_start | FileCheck %s -check-prefixes=JUST-START
9 .functype ret32 (f32) -> (i32)
11 .globl _start
12 _start:
13 .functype _start () -> ()
14 f32.const 0.0
15 call ret32
16 drop
17 end_function
19 # BOTH: start.o: definition of _start
20 # BOTH-NEXT: start.o: reference to ret32
21 # BOTH-NEXT: ret32.o: definition of ret32
23 # REVERSED: ret32.o: definition of ret32
24 # REVERSED-NEXT: start.o: definition of _start
25 # REVERSED-NEXT: start.o: reference to ret32
27 # JUST-START: start.o: definition of _start
28 # JUST-START-NOT: ret32