brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.5 KiB · 72c735f Raw
98 lines · plain
1# RUN: llvm-mc -triple=wasm32-unknown-unknown -mattr=+simd128,+nontrapping-fptoint,+exception-handling < %s | FileCheck %s2# Check that it converts to .o without errors:3# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj -mattr=+simd128,+nontrapping-fptoint,+exception-handling < %s | obj2yaml | FileCheck -check-prefixes=BIN,BIN32 %s4 5# Same again for wasm646 7# RUN: llvm-mc -triple=wasm64-unknown-unknown -mattr=+simd128,+nontrapping-fptoint,+exception-handling < %s | FileCheck %s8# Check that it converts to .o without errors:9# RUN: llvm-mc -triple=wasm64-unknown-unknown -filetype=obj -mattr=+simd128,+nontrapping-fptoint,+exception-handling < %s | obj2yaml | FileCheck -check-prefixes=BIN,BIN64 %s10 11# Minimal test for data sections.12 13test0:14    .functype   test0 () -> (i32)15    i32.const .L.str16.Ltestlabel:17    end_function18 19    .section	.rodata..L.str,"",@20.L.str:21    .int8	10022    .size	.L.str, 123 24 25# CHECK:           .text26# CHECK-LABEL: test0:27# CHECK-NEXT:      .functype test0 () -> (i32)28# CHECK-NEXT:      i32.const .L.str29# CHECK-NEXT:  .Ltestlabel:30# CHECK-NEXT:      end_function31 32# CHECK:	    .section	.rodata..L.str,"",@33# CHECK-NEXT:.L.str:34# CHECK-NEXT:	.int8	10035 36 37# BIN:      --- !WASM38# BIN-NEXT: FileHeader:39# BIN-NEXT:   Version:         0x140# BIN-NEXT: Sections:41# BIN-NEXT:   - Type:            TYPE42# BIN-NEXT:     Signatures:43# BIN-NEXT:       - Index:           044# BIN-NEXT:         ParamTypes:      []45# BIN-NEXT:         ReturnTypes:46# BIN-NEXT:           - I3247# BIN-NEXT:   - Type:            IMPORT48# BIN-NEXT:     Imports:49# BIN-NEXT:       - Module:          env50# BIN-NEXT:         Field:           __linear_memory51# BIN-NEXT:         Kind:            MEMORY52# BIN-NEXT:         Memory:53# BIN64-NEXT:         Flags:           [ IS_64 ]54# BIN-NEXT:           Minimum:         0x155# BIN-NEXT:   - Type:            FUNCTION56# BIN-NEXT:     FunctionTypes:   [ 0 ]57# BIN-NEXT:   - Type:            DATACOUNT58# BIN-NEXT:     Count:           159# BIN-NEXT:   - Type:            CODE60# BIN-NEXT:     Relocations:61# BIN-NEXT:       - Type:            R_WASM_MEMORY_ADDR_SLEB62# BIN-NEXT:         Index:           163# BIN-NEXT:         Offset:          0x464# BIN-NEXT:     Functions:65# BIN-NEXT:       - Index:           066# BIN-NEXT:         Locals:          []67# BIN-NEXT:         Body:            4180808080000B68# BIN-NEXT:   - Type:            DATA69# BIN-NEXT:     Segments:70# BIN-NEXT:       - SectionOffset:   671# BIN-NEXT:         InitFlags:       072# BIN-NEXT:         Offset:73# BIN32-NEXT:         Opcode:          I32_CONST74# BIN64-NEXT:         Opcode:          I64_CONST75# BIN-NEXT:           Value:           076# BIN-NEXT:         Content:         '64'77# BIN-NEXT:   - Type:            CUSTOM78# BIN-NEXT:     Name:            linking79# BIN-NEXT:     Version:         280# BIN-NEXT:     SymbolTable:81# BIN-NEXT:       - Index:           082# BIN-NEXT:         Kind:            FUNCTION83# BIN-NEXT:         Name:            test084# BIN-NEXT:         Flags:           [ BINDING_LOCAL ]85# BIN-NEXT:         Function:        086# BIN-NEXT:       - Index:           187# BIN-NEXT:         Kind:            DATA88# BIN-NEXT:         Name:            .L.str89# BIN-NEXT:         Flags:           [ BINDING_LOCAL ]90# BIN-NEXT:         Segment:         091# BIN-NEXT:         Size:            192# BIN-NEXT:     SegmentInfo:93# BIN-NEXT:       - Index:           094# BIN-NEXT:         Name:            .rodata..L.str95# BIN-NEXT:         Alignment:       096# BIN-NEXT:         Flags:           [  ]97# BIN-NEXT: ...98