Jacob Young
bb0419599a
Merge pull request #17666 from jacobly0/x86_64-unicode
...
x86_64: pass more std tests
2023-10-24 05:34:13 -04:00
Andrew Kelley
b477279c37
Merge pull request #17688 from ziglang/comptime-src
...
Sema: make `@src().line` comptime-known
2023-10-24 03:58:47 -04:00
Jacob Young
8f69e977f1
x86_64: implement 128-bit builtins
...
* `@clz`
* `@ctz`
* `@popCount`
* `@byteSwap`
* `@bitReverse`
* various encodings used by std
2023-10-23 22:42:18 -04:00
Jacob Young
fbe8c8938b
x86_64: implement @mod for floating-point types
2023-10-23 22:42:18 -04:00
Andrew Kelley
46a6d50fdf
Sema: make @src().line comptime-known
...
Reverts 89cef9f5f7 .
Closes #13315
2023-10-23 18:35:10 -07:00
Andrew Kelley
d4911794ae
rename behavior test to better describe what it does
...
In general, let's not lean on GitHub issue numbers as having meaning.
The goal of behavior tests is to produce a minimum set of tests that
test 100% of the language.
2023-10-23 17:28:10 -07:00
Robin Voetter
4bf27da6a6
Revert "Revert "Merge pull request #17657 from Snektron/spirv-recursive-ptrs""
...
This reverts commit 9f0359d78f in an attempt to
make the tests pass again. The CI failure from that merge should be unrelated
to this commit.
2023-10-23 06:27:12 -04:00
Andrew Kelley
b82459fa43
Merge pull request #17407 from truemedian/http-ng
...
std.http: more proxy support, buffer writes, tls toggle
2023-10-22 17:48:03 -04:00
Jacob Young
27fe945a00
Revert "Revert "Merge pull request #17637 from jacobly0/x86_64-test-std""
...
This reverts commit 6f0198cadb .
2023-10-22 15:46:43 -04:00
Andrew Kelley
6f0198cadb
Revert "Merge pull request #17637 from jacobly0/x86_64-test-std"
...
This reverts commit 0c99ba1eab , reversing
changes made to 5f92b070bf .
This caused a CI failure when it landed in master branch due to a
128-bit `@byteSwap` in std.mem.
2023-10-22 12:16:35 -07:00
Andrew Kelley
9f0359d78f
Revert "Merge pull request #17657 from Snektron/spirv-recursive-ptrs"
...
This reverts commit b822e841cd , reversing
changes made to 0c99ba1eab .
This caused a CI failure when it landed in master branch.
2023-10-22 12:15:31 -07:00
Jan Philipp Hafer
fd2239bde9
child_process + Build: rename exec to run + all related code
...
Justification: exec, execv etc are unix concepts and portable version
should be called differently.
Do no touch non-Zig code. Adjust error names as well, if associated.
Closes #5853 .
2023-10-22 14:47:20 -04:00
Robin Voetter
b822e841cd
Merge pull request #17657 from Snektron/spirv-recursive-ptrs
...
spirv: recursive pointers
2023-10-22 15:35:00 +02:00
Jacob Young
0c99ba1eab
Merge pull request #17637 from jacobly0/x86_64-test-std
...
x86_64: start to enable `test-std` and `test-compiler-rt` testing
2023-10-22 08:06:47 -04:00
Nameless
93e1f8c8e5
std.http.Client: documentaion fixes
2023-10-21 20:53:00 -05:00
Nameless
363d0ee5e1
std.http: rename start->send and request->open to be more inline with operation
2023-10-21 20:52:59 -05:00
Nameless
544ed34d99
std.http.Server: improve documentation, do -> start
...
Response.do was renamed to Response.start to mimic the
naming scheme in http.Client
2023-10-21 20:52:59 -05:00
Nameless
0eef21d8ec
std.http.Client: add option to disable https
...
std_options.http_connection_pool_size removed in favor of
```
client.connection_pool.resize(client.allocator, size);
```
std_options.http_disable_tls will remove all https capability from
std.http when true. Any https request will error with
`error.TlsInitializationFailed`.
Solves #17051 .
2023-10-21 20:52:58 -05:00
Nameless
e1c37f70d4
std.http.Client: store *Connection instead of a pool node, buffer writes
2023-10-21 20:52:58 -05:00
Nameless
1afeada2d9
std.http.Client: enhance proxy support
...
adds connectTunnel to form a HTTP CONNECT tunnel to the desired host.
Primarily implemented for proxies, but like connectUnix may be called by
any user.
adds loadDefaultProxies to load proxy information from common
environment variables (http_proxy, HTTP_PROXY, https_proxy, HTTPS_PROXY,
all_proxy, ALL_PROXY).
- no_proxy and NO_PROXY are currently unsupported.
splits proxy into http_proxy and https_proxy, adds headers field for
arbitrary headers to each proxy.
2023-10-21 20:52:58 -05:00
Andrew Kelley
ecfb18286a
migrate make_ptr_const to new anonymous decl mechanism
...
Instead of creating Module.Decl objects, directly create InternPool
pointer values using the anon_decl Addr encoding.
The LLVM backend needed code to notice the alignment of the pointer and
lower accordingly. The other backends likely need a similar change.
2023-10-21 21:38:41 -04:00
Robin Voetter
6281ad91df
spirv: self-referential pointers via new fwd_ptr_type
...
Its a little ugly but it works.
2023-10-21 17:46:54 +02:00
Robin Voetter
1deec09f03
spirv: improve union operations
...
This removes the strategy where union with different active
fields would be generated, and instead simply pointer casts
the active field type where required. This also allows removing
spv.ptrType and using self.ptrType instead, and allows caching
all union types (because there is only the canonical one).
2023-10-21 17:46:53 +02:00
Jacob Young
920e9668dd
x86_64: enable fixed behavior test
2023-10-21 10:55:41 -04:00
Jacob Young
70c8e7f91d
x86_64: disable failing tests, enable test-compiler-rt testing
2023-10-21 10:55:41 -04:00
Jacob Young
32e85d44eb
x86_64: disable failing tests, enable test-std testing
2023-10-21 10:55:41 -04:00
Jacob Young
2e6e39a700
x86_64: fix bugs and disable erroring tests
2023-10-21 10:55:41 -04:00
Jacob Young
9358a7528f
x86_64: fix crashes
2023-10-21 10:55:41 -04:00
Jakub Konka
b8ff989fa0
elf: force pie in tests affected by QEMU bug
2023-10-19 19:46:23 +02:00
Jakub Konka
1bbe521074
elf: fix flaky link tests
2023-10-19 03:34:47 +02:00
Jacob Young
d8f7c79298
x86_64: improve inline assembly support
...
* C++-style comments
* indirect call operands
* fix misleading immediate debug formatting
2023-10-18 13:57:28 -04:00
Robin Voetter
c3120d5089
Merge pull request #17577 from alichraghi/spirv-1
...
spirv: switch on bool
2023-10-18 16:28:13 +02:00
Robin Voetter
24b065a6a8
Merge pull request #17561 from alichraghi/spirv-0
...
spirv: memcpy
2023-10-18 15:38:30 +02:00
Andrew Kelley
aeadcb3918
disable flaky linker test
...
tracked by #17576
2023-10-17 21:46:13 -07:00
Andrew Kelley
149f2f8adb
Merge pull request #17524 from Vexu/aro-translate-c
...
Add ability to test Aro based `translate-c`
2023-10-18 00:32:59 -04:00
Ali Chraghi
e5d5c1d423
spirv: switch on bool
2023-10-18 02:31:16 +03:30
Andrew Kelley
25400fadf8
disable two flaky link tests
...
Tracking issue #17576
2023-10-17 16:00:14 -07:00
Bogdan Romanyuk
ad168db727
Sema: disallow @intFromPtr for comptime-only types
2023-10-17 20:05:55 +00:00
Jakub Konka
eb5276c94e
Merge pull request #17556 from ziglang/elf-link-zig-proper
...
elf: port 99% of zld ELF linker to Zig proper
2023-10-17 17:36:40 +02:00
Ali Chraghi
6d8a979265
spirv: memcpy
2023-10-17 13:02:30 +03:30
Jakub Konka
666e9df170
elf: ensure we build with -fPIE when testing init array order
2023-10-17 11:30:56 +02:00
Veikka Tuominen
96f9e20152
add c_frontend to translate-c cache hash
2023-10-17 11:55:17 +03:00
Veikka Tuominen
e765495b11
tests: translate-c and run-translated-c to the test harness
2023-10-17 11:55:17 +03:00
Ali Chraghi
e44152e252
spirv: fieldParentPtr
2023-10-16 20:27:28 -04:00
Jakub Konka
77443ac2b5
elf: skip tests on foreign architectures
2023-10-16 21:45:28 +02:00
Jakub Konka
5423778f6f
elf: add self-hosted tests
2023-10-16 19:33:06 +02:00
Jakub Konka
716a45a209
elf: use findFreeSpace mechanics to allocate object-extracted segments
2023-10-16 19:33:05 +02:00
Jakub Konka
b3f40c35dc
elf: fix testTlsOffsetAlignment test
2023-10-16 19:33:05 +02:00
Jakub Konka
67a02bee2c
elf: port more linker tests
2023-10-16 19:33:05 +02:00
Jakub Konka
81b68c7465
elf: port more linker tests
2023-10-16 19:33:05 +02:00