brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 1de18a4 Raw
38 lines · plain
1# Test that placing multiple data symbols in the same section works2 3# RUN: llvm-mc -triple=wasm32-unknown-unknown < %s | FileCheck %s4 5test0:6    .functype   test0 () -> (i32, i32)7    i32.const a8    i32.const b9    end_function10 11    .section mysec,"",@12a:13    .int32 4214    .int32 4315    .size a, 816b:17    .int32 4418    .size b, 419 20#      CHECK:   .section  mysec,"",@21# CHECK-NEXT: a:22# CHECK-NEXT:   .int32 4223# CHECK-NEXT:   .int32 4324# CHECK-NEXT:   .size a, 825# CHECK-NEXT: b:26# CHECK-NEXT:   .int32 4427# CHECK-NEXT:   .size b, 428 29# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown < %s | llvm-objdump --triple=wasm32-unknown-unknown -d -t -r - | FileCheck %s --check-prefix=OBJ30 31 32#      OBJ: 00000001 <test0>:33#      OBJ:        3: 41 80 80 80 80 00     i32.const       034# OBJ-NEXT:                         00000004:  R_WASM_MEMORY_ADDR_SLEB      a+035# OBJ-NEXT:        9: 41 88 80 80 80 00     i32.const       836# OBJ-NEXT:                         0000000a:  R_WASM_MEMORY_ADDR_SLEB      b+037# OBJ-NEXT:        f: 0b            end38