brintos

brintos / llvm-project-archived public Read only

0
0
Text · 983 B · 88e5c6f Raw
29 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/ret32.s -o %t.ret32.o2# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.start.o %s3# RUN: wasm-ld -o %t.wasm %t.start.o %t.ret32.o -y ret32 -y _start | FileCheck %s -check-prefix=BOTH4# RUN: wasm-ld -o %t.wasm %t.ret32.o %t.start.o -y ret32 -y _start | FileCheck %s -check-prefix=REVERSED5 6# check alias7# RUN: wasm-ld -o %t.wasm %t.start.o %t.ret32.o -trace-symbol=_start | FileCheck %s -check-prefixes=JUST-START8 9.functype ret32 (f32) -> (i32)10 11.globl  _start12_start:13  .functype _start () -> ()14  f32.const 0.015  call ret3216  drop17  end_function18 19# BOTH:          start.o: definition of _start20# BOTH-NEXT:     start.o: reference to ret3221# BOTH-NEXT:     ret32.o: definition of ret3222 23# REVERSED:      ret32.o: definition of ret3224# REVERSED-NEXT: start.o: definition of _start25# REVERSED-NEXT: start.o: reference to ret3226 27# JUST-START: start.o: definition of _start28# JUST-START-NOT: ret3229