Robin Voetter
cc381d56a6
Merge pull request #23654 from alichraghi/continue
...
Compilation: don't build compiler_rt or ubsan_rt for amdgcn and ptx
2025-04-30 20:46:12 +02:00
Alex Rønne Petersen
399da543e5
Merge pull request #23720 from alexrp/sparc-stuff
2025-04-29 00:34:01 +02:00
mlugg
d038676a1f
Sema: fix a few indexing bugs
...
* Indexing zero-bit types should not produce AIR indexing instructions
* Getting a runtime-known element pointer from a many-pointer should
check that the many-pointer is not comptime-only
Resolves : #23405
2025-04-28 19:43:58 +01:00
Alex Rønne Petersen
12f56b8740
test: Disable vector reduce operation for sparc.
...
https://github.com/ziglang/zig/issues/23719
2025-04-28 12:05:19 +02:00
Alex Rønne Petersen
fd4fcefe8a
test: Disable some varargs behavior tests on sparc.
...
https://github.com/ziglang/zig/issues/23718
2025-04-28 12:05:19 +02:00
Ali Cheraghi
9bd8f8ed56
test: skip "struct fields get automatically reordered" for spirv64 backend
2025-04-28 10:49:19 +03:30
xdBronch
410298271e
Sema: fix memcpy with C pointers
2025-04-28 05:09:12 +01:00
Alex Rønne Petersen
5ed8bd5c85
Sema: Fix some ptr alignment checks to handle a potential ISA tag bit.
...
Closes #23570 .
2025-04-27 23:54:54 +01:00
dweiller
4e78836d29
test: add tests for @memmove
2025-04-26 13:34:17 +10:00
Andrew Kelley
65bd8d52c8
Merge pull request #23061 from pavelverigo/stage2-wasm-misc
...
stage2-wasm: multiple fixes
2025-04-11 15:56:35 -04:00
kcbanner
fa59153896
Value: ensure that extern structs have their layout resolved in ptrField
2025-04-11 15:30:20 -04:00
Jacob Young
c82e1fe880
Merge pull request #23355 from jacobly0/x86_64-rewrite
...
x86_64: start rewriting overflow operations
2025-04-11 05:21:44 -04:00
Alex Rønne Petersen
382aa48f04
test: Disable a bunch of vector behavior tests for hexagon.
...
Most of the failures are:
* https://github.com/llvm/llvm-project/issues/118879
* https://github.com/llvm/llvm-project/issues/134659
But some are also miscompilations leading to wrong results. I'm not going to
investigate the latter further until all the backend crashes have been resolved.
2025-04-11 02:28:35 +02:00
Jacob Young
1eb5d70d12
x86_64: fix switch on big ints
2025-04-09 20:14:12 -04:00
Jacob Young
bc10131db1
x86_64: rewrite scalar @mulWithOverflow
...
Closes #19607
2025-04-09 20:14:12 -04:00
Jacob Young
55ce756868
x86_64: rewrite scalar @subWithOverflow
2025-04-09 20:14:12 -04:00
Jacob Young
80068b6e59
x86_64: rewrite scalar @addWithOverflow
2025-04-09 20:14:12 -04:00
Jacob Young
426684b2f8
behavior: fix issues with x86_64 backend tests
...
* Oops, I accidentally disabled most of them.
* Cleanup some workarounds for now closed issues.
* Test binary operations with more scalar integer types.
2025-04-09 20:14:12 -04:00
Alex Rønne Petersen
6880d2c4a3
test: Disable @prefetch behavior test for loongarch.
...
https://github.com/llvm/llvm-project/issues/134624
2025-04-07 16:03:22 +02:00
Jacob Young
470e2b63d9
Dwarf: handle undefined type values
...
Closes #23461
2025-04-05 21:42:33 -04:00
Jacob Young
9827ffe1de
x86_64: fix incorrect handling of unreusable operands
...
Closes #23448
2025-04-05 20:49:56 -04:00
Alex Rønne Petersen
96fe4fb969
Revert "test: Partially disable vector float operators on mips."
...
This reverts commit 19a91084c2a29175bad47d41cd11935904ede0b9.
Closes #21051 .
2025-04-04 06:08:10 +02:00
Alex Rønne Petersen
cf9c6f5298
compiler: Update max int alignments for some targets.
2025-04-04 06:08:10 +02:00
Mason Remaley
06ee383da9
compiler: allow @import of ZON without a result type
...
In particular, this allows importing `build.zig.zon` at comptime.
2025-04-02 05:53:22 +01:00
David Rubin
1b62a22268
Sema: increment extra index even if return type is generic
2025-04-02 01:34:17 +02:00
mlugg
d53cc5e5b2
Sema: allow @ptrCast slice of zero-bit type to slice of non-zero-bit type
...
This is actually completely well-defined. The resulting slice always has
0 elements. The only disallowed case is casting *to* a slice of a
zero-bit type, because in that case, you cna't figure out how many
destination elements to use (and there's *no* valid destination length
if the source slice corresponds to more than 0 bits).
2025-03-31 19:03:08 -04:00
David Rubin
acfdad8581
Sema: convert slice sentinel to single pointer correctly
2025-03-30 03:41:00 +01:00
mlugg
f296eec294
Zcu: resolve layout of analyzed declaration type
...
Resolves : #19888
2025-03-29 22:46:31 +00:00
Alex Rønne Petersen
cb8d7a8110
Merge pull request #23310 from Rexicon226/fix-23309
...
big.int: return normalized results from `{add,sub}Carry`
2025-03-25 18:44:35 +01:00
David Rubin
89db4f2e93
Sema: use unwrapped generic owner in getFuncInstanceIes
2025-03-24 19:04:10 +00:00
Pavel Verigo
33ad2c949e
stage2-wasm: packed store/load 128 bits
2025-03-24 15:00:00 +01:00
Pavel Verigo
47cd0961cb
stage2-wasm: pass field_parent_ptr tests
...
Handle packed containers, also fixes packed union lowering for non int type + union field pointer logic fix
2025-03-24 15:00:00 +01:00
Pavel Verigo
58b38238f5
stage2-wasm: enable undef test + ignore undef store/memset with safety off
2025-03-24 15:00:00 +01:00
Pavel Verigo
07f14bd43b
stage2-wasm: fix error union handling
2025-03-24 15:00:00 +01:00
Pavel Verigo
0e109add37
stage2-wasm: clean memcpy + fix another bug in aggr_init for optionals arr
2025-03-24 15:00:00 +01:00
Pavel Verigo
15bc2ab0a8
stage2-wasm: clz fix
2025-03-24 15:00:00 +01:00
Pavel Verigo
a429d04ba9
stage2-wasm: enable already working tests
2025-03-24 14:59:58 +01:00
Pavel Verigo
ca2bd6d6ef
stage2-wasm: fix comparing and storing optionals
2025-03-24 14:58:05 +01:00
David Rubin
22013f1b39
test: add a behavior test for 0-length loop fix
2025-03-24 06:58:01 -07:00
mlugg
26fdb81c16
Sema: fix in-memory coercion of functions introducing new generic parameters
...
While it is not allowed for a function coercion to change whether a
function is generic, it *is* okay to make existing concrete parameters
of a generic function also generic, or vice versa. Either of these cases
implies that the result is a generic function, so comptime type checks
will happen when the function is ultimately called.
Resolves : #21099
2025-03-24 04:32:45 +00:00
Jacob Young
98640cbeb8
Merge pull request #23209 from jacobly0/x86_64-rewrite
...
x86_64: rewrite wrapping multiplication
2025-03-23 21:56:58 -04:00
Jacob Young
f7e045c806
Merge pull request #23256 from xtexx/fix-gh-20113
...
x86_64: fix packedStore miscomp by spilling EFLAGS
2025-03-23 21:46:46 -04:00
Jacob Young
6705cbd5eb
codegen: fix packed byte-aligned relocations
...
Closes #23131
2025-03-23 18:35:34 -04:00
Bingwu Zhang
a26f1768d8
x86_64: add behavior test for packed store
2025-03-22 16:36:14 +08:00
Jacob Young
2361468e23
x86_64: rewrite scalar shifts
2025-03-21 21:51:09 -04:00
Jacob Young
8e15321c7c
behavior: split up x86_64 math tests
2025-03-21 21:51:08 -04:00
Jacob Young
c5c1c8538d
x86_64: rewrite wrapping multiplication
2025-03-21 21:51:08 -04:00
Ali Cheraghi
d18eaf8586
spirv: aligned load for physical storage variables
...
Resolves #23212
2025-03-18 07:05:50 +03:30
Ali Cheraghi
54c097f50d
spirv: packed struct init + field val access
2025-03-18 07:05:48 +03:30
Ali Cheraghi
50539a2447
spirv/target: arbitrary_precision_integers feature support
2025-03-17 21:56:17 +03:30