Jakub Konka
9487007ffe
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
44f3085851
elf: refactor tests and disable currently impossible combinations
2023-10-16 19:33:05 +02:00
Jakub Konka
df656c4eef
elf: test exporting symbols in exes
2023-10-16 19:33:05 +02:00
Jakub Konka
f2ad71991a
elf: test --export-dynamic flag
2023-10-16 19:33:05 +02:00
Jakub Konka
20980b33e3
elf: test entry point
2023-10-16 19:33:05 +02:00
Jakub Konka
9861a9ea75
elf: test various copyrel edge cases
2023-10-16 19:33:05 +02:00
Jakub Konka
b6006df565
elf: refactor canonical PLT test
2023-10-16 19:33:05 +02:00
Jakub Konka
c940735c4d
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
149dd82d54
elf: add --as-needed test
2023-10-16 19:33:05 +02:00
Jakub Konka
7ff9461b88
elf: test large alignment of funcs in exe
2023-10-16 19:33:05 +02:00
Jakub Konka
11bdfe1179
elf: test large alignment of funcs in DSO
2023-10-16 19:33:04 +02:00
Jakub Konka
031e12b963
elf: override default dynamic linker path with system\`s dl when appropriate
2023-10-16 19:33:04 +02:00
Jakub Konka
62c6c4a46d
elf: more DSO tests
2023-10-16 19:33:04 +02:00
Jakub Konka
e53fa93170
elf: test basic DSO generation and linking
2023-10-16 19:33:04 +02:00
Jakub Konka
ac03a35e82
elf: test common symbols in archives
2023-10-16 19:33:04 +02:00
Jakub Konka
cf2c8c0789
elf: test common symbols handling
2023-10-16 19:33:04 +02:00
Jakub Konka
9a80ac0429
elf: add garbage collection of sections
2023-10-16 19:33:04 +02:00
Jakub Konka
2ee221328f
elf: test garbage collection of sections
2023-10-16 19:33:04 +02:00
Jakub Konka
f1b9c365f2
elf: add incomplete handling of build-obj -fllvm -fno-lld
2023-10-16 19:33:04 +02:00
Jakub Konka
976d4f51cc
elf: add hello-world c++ link test
2023-10-16 19:33:04 +02:00
Jakub Konka
621ddc003a
elf: temporarily disable non-llvm linker tests
2023-10-16 19:33:04 +02:00
Veikka Tuominen
14efbf5ed1
Sema: fix missing check for tuple default initializers
...
Closes #17525
2023-10-16 14:00:18 +03:00
Bogdan Romanyuk
ebde525cce
Sema: fix @extern error on function pointer
2023-10-16 01:30:39 +00:00
Robin Voetter
8c153221b9
wasm: disable division test
...
Seems that bit integers are not properly supported
2023-10-15 20:08:19 +02:00
Robin Voetter
faad97edff
spirv: update failing / passing tests
...
Some tests are now failing due to debug info changes, some tests
now pass due to improved compiler functionality.
2023-10-15 20:08:18 +02:00
Ali Chraghi
45a1945dc4
spirv: simple binary and comparison vector operations
2023-10-15 14:00:33 +02:00
Robin Voetter
9c20449cc5
wasm: lower min/max for floats to compiler_rt
...
The min and max builtins in Zig have some intricate behavior
related to floats, that is not replicated with the min and max
wasm instructions or using simple select operations. By lowering
these instructions to compiler_rt, handling around NaNs is done
correctly.
See also https://github.com/WebAssembly/design/issues/214
2023-10-15 14:00:32 +02:00
Ali Chraghi
2fe16e072a
spirv: emit vectors as arrays
2023-10-15 14:00:32 +02:00
Robin Voetter
3ca1f88898
std.testing: disable expectEqualSlices printing for spirv
2023-10-15 14:00:26 +02:00
Robin Voetter
b1499df1b8
spirv: sign-extension for strange integers
2023-10-15 14:00:09 +02:00
Robin Voetter
4f279078c8
spirv: air min/max
2023-10-15 14:00:07 +02:00
Robin Voetter
f858bf1616
spirv: air bitcast for non-numeric non-pointer types
2023-10-15 14:00:07 +02:00
Robin Voetter
0af16a58a0
spirv: fix air is_null optional slice field type
2023-10-15 14:00:06 +02:00
Robin Voetter
d0e7a3596b
spirv: allow generation of *i0
2023-10-15 14:00:06 +02:00
Robin Voetter
2d52fc762d
spirv: handle zero-sized arrays
2023-10-15 14:00:05 +02:00
Ali Chraghi
d8b591766a
spirv: fpext and fptrunc instructions
2023-10-15 14:00:04 +02:00
Robin Voetter
d2692af8e2
spirv: override function return type to void if it has no runtime bits
2023-10-15 14:00:04 +02:00
Robin Voetter
ae3efab226
spirv: generate *void as pointer to opaque
2023-10-15 14:00:03 +02:00
Robin Voetter
fe51ff9fc1
spirv: make air is_null not emit OpPtr(Not)Equal
2023-10-15 14:00:03 +02:00
Robin Voetter
15cf1315bb
spirv: fix incorrect repr of some optional operations
2023-10-15 14:00:01 +02:00
Robin Voetter
0a3e566f57
spirv: make bitcasts between the same spirv type a no-op
2023-10-15 14:00:01 +02:00
Robin Voetter
4a6a024a4b
spirv: properly skip comptime function parameters
2023-10-15 14:00:00 +02:00
Robin Voetter
89b1dafa78
spirv: aggregate_init for structs
2023-10-15 13:59:55 +02:00
Robin Voetter
08ea9a9ff6
spirv: cast result of .elem pointers to right type if needed
2023-10-15 13:59:23 +02:00
Robin Voetter
a7c3d5e4ec
spirv: constant elem ptr fix
2023-10-15 13:59:22 +02:00
Luuk de Gram
b0f031f573
Merge pull request #17523 from xxxbxxx/wasm-codegen
...
wasm codegen fixes
2023-10-15 05:51:41 +02:00
Peng He
a126afa1c3
translate-c: fix crash when last stmt of stmt expr is a decl
2023-10-14 17:09:54 +00:00
Xavier Bouchoux
78fe3feedb
tests: enable already passing behaviour tests for self-hosted wasm
...
1611 passed; 262 skipped; 0 failed.
(was: 1543 passed; 330 skipped; 0 failed.)
2023-10-14 12:50:39 +02:00
Xavier Bouchoux
d5991ee7ca
codegen/wasm: fix non-byte-sized signed integer comparison
2023-10-14 10:23:36 +02:00
Xavier Bouchoux
27a19908ed
codegen/wasm: fix tuple member offset computation
...
It didn't account for field alignement.
2023-10-14 10:23:36 +02:00