|
6 | 6 | ; RUN: llc --mtriple=wasm32-unknown-unknown -filetype=obj %s -o %t.atomics.bulk-mem.pic.o -relocation-model=pic -mattr=+atomics,+bulk-memory,+mutable-globals
|
7 | 7 | ; RUN: llc --mtriple=wasm64-unknown-unknown -filetype=obj %s -o %t.atomics.bulk-mem.pic-mem64.o -relocation-model=pic -mattr=+atomics,+bulk-memory,+mutable-globals
|
8 | 8 |
|
9 |
| -; atomics, shared memory => error |
| 9 | +;; atomics, shared memory => error |
10 | 10 | ; RUN: not wasm-ld -no-gc-sections --no-entry --shared-memory --max-memory=131072 %t.atomics.o -o %t.atomics.wasm 2>&1 | FileCheck %s --check-prefix ERROR
|
11 | 11 |
|
12 |
| -; bulk memory, unshared memory => active segments |
| 12 | +;; bulk memory, unshared memory => active segments |
13 | 13 | ; RUN: wasm-ld -no-gc-sections --no-entry %t.bulk-mem.o -o %t.bulk-mem.wasm
|
14 | 14 | ; RUN: obj2yaml %t.bulk-mem.wasm | FileCheck %s --check-prefixes ACTIVE,ACTIVE32
|
15 | 15 |
|
16 |
| -; bulk memory, unshared memory, wasm64 => active segments |
| 16 | +;; bulk memory, unshared memory, wasm64 => active segments |
17 | 17 | ; RUN: wasm-ld -mwasm64 -no-gc-sections --no-entry %t.bulk-mem64.o -o %t.bulk-mem64.wasm
|
18 | 18 | ; RUN: obj2yaml %t.bulk-mem64.wasm | FileCheck %s --check-prefixes ACTIVE,ACTIVE64
|
19 | 19 |
|
20 |
| -; atomics, bulk memory, shared memory => passive segments |
| 20 | +;; atomics, bulk memory, shared memory => passive segments |
21 | 21 | ; RUN: wasm-ld -no-gc-sections --no-entry --shared-memory --max-memory=131072 %t.atomics.bulk-mem.o -o %t.atomics.bulk-mem.wasm
|
22 | 22 | ; RUN: obj2yaml %t.atomics.bulk-mem.wasm | FileCheck %s --check-prefix PASSIVE
|
23 | 23 | ; RUN: llvm-objdump --disassemble-symbols=__wasm_call_ctors,__wasm_init_memory --no-show-raw-insn --no-leading-addr %t.atomics.bulk-mem.wasm | FileCheck %s --check-prefixes DIS,NOPIC-DIS -DPTR=i32
|
24 | 24 |
|
25 |
| -; atomics, bulk memory, shared memory, wasm64 => passive segments |
| 25 | +;; atomics, bulk memory, shared memory, wasm64 => passive segments |
26 | 26 | ; RUN: wasm-ld -mwasm64 -no-gc-sections --no-entry --shared-memory --max-memory=131072 %t.atomics.bulk-mem64.o -o %t.atomics.bulk-mem64.wasm
|
27 | 27 | ; RUN: obj2yaml %t.atomics.bulk-mem64.wasm | FileCheck %s --check-prefix PASSIVE
|
28 | 28 | ; RUN: llvm-objdump --disassemble-symbols=__wasm_call_ctors,__wasm_init_memory --no-show-raw-insn --no-leading-addr %t.atomics.bulk-mem64.wasm | FileCheck %s --check-prefixes DIS,NOPIC-DIS -DPTR=i64
|
29 | 29 |
|
30 |
| -; Also test in combination with PIC/pie |
| 30 | +;; Also test in combination with PIC/pie |
31 | 31 | ; RUN: wasm-ld --experimental-pic -pie -no-gc-sections --no-entry --shared-memory --max-memory=131072 %t.atomics.bulk-mem.pic.o -o %t.pic.wasm
|
32 | 32 | ; RUN: obj2yaml %t.pic.wasm | FileCheck %s --check-prefixes PASSIVE-PIC,PASSIVE32-PIC
|
33 |
| -; RUN: llvm-objdump --disassemble-symbols=__wasm_call_ctors,__wasm_apply_data_relocs,__wasm_init_memory --no-show-raw-insn --no-leading-addr %t.pic.wasm | FileCheck %s --check-prefixes DIS,PIC-DIS -DPTR=i32 |
| 33 | +; RUN: llvm-objdump --disassemble-symbols=__wasm_call_ctors,__wasm_init_memory --no-show-raw-insn --no-leading-addr %t.pic.wasm | FileCheck %s --check-prefixes DIS,PIC-DIS -DPTR=i32 |
34 | 34 |
|
35 |
| -; Also test in combination with PIC/pie + wasm64 |
| 35 | +;; Also test in combination with PIC/pie + wasm64 |
36 | 36 | ; RUN: wasm-ld -mwasm64 --experimental-pic -pie -no-gc-sections --no-entry --shared-memory --max-memory=131072 %t.atomics.bulk-mem.pic-mem64.o -o %t.pic-mem64.wasm
|
37 | 37 | ; RUN: obj2yaml %t.pic-mem64.wasm | FileCheck %s --check-prefixes PASSIVE-PIC,PASSIVE64-PIC
|
38 |
| -; RUN: llvm-objdump --disassemble-symbols=__wasm_call_ctors,__wasm_apply_data_relocs,__wasm_init_memory --no-show-raw-insn --no-leading-addr %t.pic-mem64.wasm | FileCheck %s --check-prefixes DIS,PIC-DIS -DPTR=i64 |
| 38 | +; RUN: llvm-objdump --disassemble-symbols=__wasm_call_ctors,__wasm_init_memory --no-show-raw-insn --no-leading-addr %t.pic-mem64.wasm | FileCheck %s --check-prefixes DIS,PIC-DIS -DPTR=i64 |
39 | 39 |
|
40 | 40 | @a = hidden global [6 x i8] c"hello\00", align 1
|
41 | 41 | @b = hidden global [8 x i8] c"goodbye\00", align 1
|
|
151 | 151 | ; PASSIVE-PIC-NEXT: - Index: 2
|
152 | 152 | ; PASSIVE-PIC-NEXT: Name: __wasm_init_memory
|
153 | 153 |
|
154 |
| -; no data relocations. |
| 154 | +;; no data relocations. |
155 | 155 | ; DIS-LABEL: <__wasm_call_ctors>:
|
156 | 156 | ; DIS-EMPTY:
|
157 | 157 | ; DIS-NEXT: end
|
|
0 commit comments