llvm-project/lld/test/wasm
Thomas Lively 15a5e86fb3 [lld][WebAssembly] Allow `atomics` feature with unshared memory
https://github.com/WebAssembly/threads/issues/144 updated the
WebAssembly threads proposal to make atomic operations on unshared memories
valid. This change updates the feature checking in the linker accordingly.
Production WebAssembly engines have recently been updated to allow this
behvaior, but after this change users who accidentally use atomics with unshared
memories on older versions of the engines will get validation errors at runtime
rather than link errors.

Differential Revision: https://reviews.llvm.org/D79530
2020-09-24 20:35:29 -07:00
..
Inputs [lld][WebAssembly] Error on import/export of mutable global without `mutable-globals` feature 2020-09-12 14:28:14 -07:00
lto [lld][WebAssembly] Give better error message on bad archive member 2020-06-30 21:36:36 -07:00
alias.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
archive-export.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
archive-no-index.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
archive-weak-undefined.ll [lld][WebAssembly] Handle weakly referenced symbols when lazy (archive) version is see first 2020-08-10 08:16:55 -07:00
archive.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
bss-only.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
call-indirect.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
comdats.ll [lld][WebAssembly] Fix handling of comdat functions in init array. 2019-07-17 18:43:36 +00:00
compress-relocs.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
conflict.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
corrupted.wasm.test [lld/WebAssembly] Slightly nicer error message for malformed input files 2019-06-26 00:52:46 +00:00
ctor_return_value.s [lld][WebAssembly] Allow ctors functions that return values 2020-06-18 13:11:40 -07:00
custom-section-name.ll [WebAssembly] Elide data segments for .bss sections 2019-10-15 19:05:11 +00:00
custom-sections.ll
cxx-mangling.ll [WebAssembly] Don't export __data_end and __heap_base by default. 2019-05-31 22:51:59 +00:00
data-layout.ll [WebAssembly] 64-bit memory limits 2020-07-06 12:40:45 -07:00
data-segment-merging.ll [WebAssembly] Sort output data sections to place .bss last 2019-09-19 01:14:59 +00:00
data-segments.ll [lld][WebAssembly] Do not emit initialization for .bss segments 2020-05-21 11:33:25 -07:00
debug-removed-fn.ll [lld][Wasm] Wasm-ld emits invalid .debug_ranges entries for non-live symbols 2020-03-26 14:26:31 -07:00
debuginfo-relocs.s [WebAssembly][lld] Fix crash when applying relocations to debug sections 2019-08-20 18:39:24 +00:00
debuginfo.test Revert "[DebugInfo] Remove dots from getFilenameByIndex return value" 2020-09-15 10:06:47 -07:00
demangle.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
driver.ll [lld][WebAssembly] Do not require --shared-memory with --relocatable 2020-04-14 13:49:28 -07:00
early-exit-for-bad-paths.s [lld][WebAssembly] Add initial support for -Map/--print-map 2020-09-12 16:10:51 -07:00
emit-relocs-fpic.s [lld][WebAssembly] Error on import/export of mutable global without `mutable-globals` feature 2020-09-12 14:28:14 -07:00
emit-relocs.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
entry-signature.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
entry.ll [WebAssembly] Don't export __data_end and __heap_base by default. 2019-05-31 22:51:59 +00:00
event-section.ll [WebAssembly] Handle event exports 2020-04-06 11:28:38 -07:00
export-all.ll [WebAssembly] Don't error when --undefined symbols are not found 2018-08-04 00:04:06 +00:00
export-all.s [lld][WebAssembly] Fix --export-all when __stack_pointer is present 2020-09-15 06:17:01 -07:00
export-empty.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
export-name.ll [WebAssembly] Support wasm exports with zero-length names. 2020-03-26 16:20:43 -07:00
export-optional-lazy.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
export-table.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
export.ll Fix lld testcases I missed in D78413 (9b9454a) 2020-04-20 12:48:57 -07:00
externref.s [WebAssembly] Add support for externalref to MC and wasm-ld 2020-06-22 15:57:24 -07:00
fatal-warnings.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
function-imports-first.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
function-imports.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
function-index.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
gc-imports.s [lld][WebAssembly] Error on import/export of mutable global without `mutable-globals` feature 2020-09-12 14:28:14 -07:00
gc-sections.ll [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
global-base.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
globals.s [WebAssembly] Add assembly syntax for mutable globals 2020-09-11 11:11:02 -07:00
growable-table.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
import-attribute-mismatch.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
import-memory.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
import-module.ll [WebAssembly] Support imports from custom module names 2019-02-01 02:29:57 +00:00
import-name.ll [lld][WebAssembly] Allow symbols with explict import names to be undefined at link time. 2020-02-19 18:02:49 -08:00
import-table.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
init-fini-gc.ll [WebAssembly] Fix crash when __wasm_call_ctor is GCd in programs containing static init/fini 2019-03-02 04:55:02 +00:00
init-fini.ll [WebAssembly] Test change after disabling MachineBlockPlacement 2019-03-05 20:36:20 +00:00
invalid-stack-size.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
large-memory.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
lit.local.cfg [WebAssembly] Fix list of relocations with addends in lld 2019-06-26 00:52:42 +00:00
load-undefined.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
local-symbols.ll [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
locals-duplicate.test [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
many-functions.ll [WebAssembly] Update MC for bulk memory 2019-02-19 22:56:19 +00:00
map-file.s [lld][WebAssembly] Add initial support for -Map/--print-map 2020-09-12 16:10:51 -07:00
multivalue-return-func-types.s [lld][WebAssembly] Emit all return types of multivalue functions 2020-08-12 13:14:15 -07:00
mutable-globals.s [lld][WebAssembly] Allow globals imports via import_name/import_module 2020-09-14 20:35:03 -07:00
no-tls.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
optional-symbol.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
pic-static.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
pie.ll [lld][WebAssembly] Error on import/export of mutable global without `mutable-globals` feature 2020-09-12 14:28:14 -07:00
reloc-addend.ll [WebAssembly] Sort output data sections to place .bss last 2019-09-19 01:14:59 +00:00
relocatable.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
reproduce.ll Fix test to put its outputs into the temp directory. 2019-05-21 19:41:19 +00:00
responsefile.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
section-symbol-relocs.yaml [WebAssembly] Don't generate empty type sections. 2019-05-16 21:22:43 +00:00
shared-export-dynamic.ll [lld][WebAssembly] Honor --no-export-dynamic even with -shared 2019-08-19 16:34:51 +00:00
shared-memory-no-atomics.yaml [WebAssembly] Disallow 'shared-mem' rather than 'atomics' 2020-05-08 13:52:39 -07:00
shared-memory.yaml [lld][WebAssembly] Allow `atomics` feature with unshared memory 2020-09-24 20:35:29 -07:00
shared-needed.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
shared.ll [lld][WebAssembly] Error on import/export of mutable global without `mutable-globals` feature 2020-09-12 14:28:14 -07:00
signature-mismatch-export.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
signature-mismatch-relocatable.s [lld][WebAssembly] Fix for --relocatable and signature mismatches 2020-05-13 10:27:09 -07:00
signature-mismatch-unknown.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
signature-mismatch-weak.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
signature-mismatch.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
stack-first.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
stack-pointer.ll [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
startstop.ll [lld][WebAssembly] Fix __start/__stop symbols when combining input segments 2019-07-08 10:35:08 +00:00
strip-all.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
strip-debug.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
symbol-type-mismatch.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
target-feature-disallowed.yaml [LLD] Restore tests that use "-" as output 2019-03-27 15:30:52 +00:00
target-feature-none.yaml [LLD] Restore tests that use "-" as output 2019-03-27 15:30:52 +00:00
target-feature-required.yaml [WebAssembly] Improve feature validation error messages 2019-05-30 21:57:23 +00:00
target-feature-used.yaml [WebAssembly] Improve feature validation error messages 2019-05-30 21:57:23 +00:00
threads.s [lld][COFF][ELF][WebAssembly] Replace --[no-]threads /threads[:no] with --threads={1,2,...} /threads:{1,2,...} 2020-03-31 08:46:12 -07:00
tls-align.ll [WebAssembly] Sort output data sections to place .bss last 2019-09-19 01:14:59 +00:00
tls.ll [WebAssembly] Sort output data sections to place .bss last 2019-09-19 01:14:59 +00:00
trace-symbol.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
trace.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
undefined-data.ll [lld][WebAssembly] Honor --allow-undefined for data symbols too 2020-05-06 12:39:29 -07:00
undefined-entry.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
undefined-weak-call.ll [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
undefined.ll [lld][WebAssembly] Report undefined symbols during scanRelocations 2019-07-09 20:45:20 +00:00
version.s [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
visibility-hidden.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
weak-alias-overide.ll [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
weak-alias.ll [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
weak-and-strong-undef.s [lld][WebAssembly] Handle mixed strong and weak undefined symbols 2020-02-28 10:16:10 -08:00
weak-symbols.ll [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
weak-undefined.ll [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
whole-archive.test [lld][WebAssembly] Convert some lld tests to assembly 2020-05-28 16:52:01 -07:00
wrap.ll [WebAssebmly] Add support for --wrap 2019-05-24 14:14:25 +00:00