brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 8257478 Raw
43 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.o %s3# RUN: wasm-ld -o %t.wasm %t.ret32.o %t.o4# RUN: obj2yaml %t.wasm | FileCheck %s5 6.functype ret32 (f32) -> (i32)7 8.globl  _start9_start:10  .functype _start () -> ()11  f32.const 0.000000e+0012  call ret3213  drop14  end_function15 16# CHECK:      Sections:17# CHECK:       - Type:            TYPE18# CHECK-NEXT:    Signatures:19# CHECK-NEXT:      - Index:           020# CHECK-NEXT:        ParamTypes:21# CHECK-NEXT:          - F3222# CHECK-NEXT:        ReturnTypes:23# CHECK-NEXT:          - I3224# CHECK-NEXT:      - Index:           125# CHECK-NEXT:        ParamTypes:26# CHECK-NEXT:        ReturnTypes:     []27# CHECK-NEXT:  - Type:            FUNCTION28# CHECK-NEXT:    FunctionTypes:   [ 0, 1 ]29# CHECK:       - Type:            CODE30# CHECK-NEXT:    Functions:31# CHECK:           - Index:       032# CHECK:           - Index:       133# CHECK:         Name:            name34# CHECK-NEXT:    FunctionNames:35# CHECK-NEXT:      - Index:           036# CHECK-NEXT:        Name:            ret3237# CHECK-NEXT:      - Index:           138# CHECK-NEXT:        Name:            _start39# CHECK-NEXT:    GlobalNames:40# CHECK-NEXT:      - Index:           041# CHECK-NEXT:        Name:            __stack_pointer42# CHECK-NEXT: ...43