brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.7 KiB · 0075a83 Raw
42 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %s -o %t.o2# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/merge-string-debug2.s -o %t2.o3 4# RUN: wasm-ld %t.o %t2.o -o %t.wasm --no-entry5# RUN: llvm-readobj -x .debug_str %t.wasm | FileCheck %s --check-prefixes CHECK,CHECK-O16 7# Check that we -r/--reclocatable can handle string merging too8# RUN: wasm-ld --relocatable %t.o %t2.o -o %t3.o9# RUN: wasm-ld -O1 %t3.o -o %t.wasm --no-entry10# RUN: llvm-readobj -x .debug_str %t.wasm | FileCheck %s --check-prefixes CHECK,CHECK-O111 12# RUN: wasm-ld -O0 %t.o %t2.o -o %tO0.wasm --no-entry13# RUN: llvm-readobj -x .debug_str %tO0.wasm | FileCheck %s --check-prefixes CHECK,CHECK-O014# RUN: llvm-readobj -x .debug_str_offsets %tO0.wasm | FileCheck %s --check-prefixes CHECK-OFFSETS15 16.section .debug_str,"S",@17.Linfo_string0:18  .asciz "clang version 13.0.0"19.Linfo_string1:20  .asciz "foobar"21 22.section .debug_other,"",@23  .int32 .Linfo_string024 25.section .debug_str_offsets,"",@26  .int32 .Linfo_string027  .int32 .Linfo_string028  .int32 .Linfo_string029 30# CHECK: Hex dump of section '.debug_str':31 32# CHECK-O0: 0x00000025 636c616e 67207665 7273696f 6e203133 clang version 1333# CHECK-O0: 0x00000035 2e302e30 00666f6f 62617200 636c616e .0.0.foobar.clan34# CHECK-O0: 0x00000045 67207665 7273696f 6e203133 2e302e30 g version 13.0.035# CHECK-O0: 0x00000055 00626172 00666f6f 00                .bar.foo.36 37# CHECK-O1: 0x00000025 666f6f62 61720066 6f6f0063 6c616e67 foobar.foo.clang38# CHECK-O1: 0x00000035 20766572 73696f6e 2031332e 302e3000  version 13.0.0.39 40# CHECK-OFFSETS: Hex dump of section '.debug_str_offsets':41# CHECK-OFFSETS: 0x0000007e 00000000 00000000 00000000          ............42