0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test/behavior
Andrew Kelley 83f69af971 stage2: implement runtime array multiplication
Additionally:

 * Sema: fix array cat/mul not setting the sentinel value
   - This required an LLVM backend enhancement to the handling of the
     AIR instruction aggregate_init that likely needs to be
     propagated to the other backends.
 * Sema: report integer overflow of array concatenation in a proper
   compile error instead of crashing.
 * Sema: fix not using proper pointer address space for array cat/mul
History 2022-05-25 22:33:48 -07:00
..
bugs wasm: enable 128bit integer behavior tests 2022-05-18 07:43:33 +02:00
hasdecl move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
import move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
namespace_depends_on_compile_var move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
pub_enum move behavior tests from test/stage1/ to test/ 2021-04-29 15:54:04 -07:00
usingnamespace std: fix regressions from this branch 2021-09-01 17:54:07 -07:00
align.zig mark some more behavior tests as passing 2022-05-25 00:12:56 -07:00
alignof.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
array.zig clean up behavior tests 2022-04-22 07:52:21 -07:00
asm.zig stage2: implement global assembly 2022-05-04 20:38:53 -07:00
async_fn.zig behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -07:00
atomics.zig stage2: improve semantics of atomic operations 2022-05-04 17:34:16 -07:00
await_struct.zig behavior tests: disable failing stage1 test 2022-03-23 14:06:07 -07:00
basic.zig x64: re-enable behavior tests 2022-05-19 19:39:34 +02:00
bit_shifting.zig stage2 AArch64: Enable behavior testing 2022-02-14 22:33:01 +01:00
bitcast.zig mark some more behavior tests as passing 2022-05-25 00:12:56 -07:00
bitreverse.zig stage2: implement @bitReverse for vectors 2022-03-18 16:28:38 +01:00
bool.zig C backend: fix @boolToInt 2021-10-28 17:33:05 -07:00
byteswap.zig Avoid index out of bounds for one-valued types in zirValidateArrayInit 2022-03-17 18:00:48 -07:00
byval_arg_var.zig arm: lock dest register in shl_overflow so that we do not spill it 2022-05-07 22:53:17 +02:00
call.zig stage2: fix @call when used in a comptime or nosuspend block 2022-05-20 02:47:20 -07:00
cast.zig Sema: fix comptime @floatCast downcast 2022-05-20 02:47:20 -07:00
cast_int.zig organize behavior tests 2022-03-18 15:02:52 -07:00
comptime_memory.zig stage2: add test for fixed issue 2022-03-21 15:05:21 +02:00
const_slice_child.zig Sema: implement @truncate for SIMD vectors 2022-03-15 15:09:48 -07:00
decltest.zig stage2: add decltests 2022-02-13 14:42:20 +02:00
defer.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
enum.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
error.zig stage2: treat error{}!void as a zero-bit type 2022-05-24 17:53:04 -07:00
eval.zig stage2: implement runtime array multiplication 2022-05-25 22:33:48 -07:00
export.zig Sema: fix export with Internal linkage 2022-04-24 20:24:37 -07:00
export_self_referential_type_info.zig stage2: fix mem{set,cpy} for non comptime mutable pointers 2022-03-08 11:23:38 +02:00
field_parent_ptr.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
floatop.zig Sema: fix bigIntToFloat 2022-05-03 21:50:00 -07:00
fn.zig clean up behavior tests 2022-04-22 07:52:21 -07:00
fn_delegation.zig stage2 AArch64: Enable behavior testing 2022-02-14 22:33:01 +01:00
fn_in_struct_in_comptime.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
for.zig CBE: fix C output after PR #11302, reenable tests 2022-03-29 02:28:20 -04:00
generics.zig Sema: fix generic instantiation false negatives 2022-04-14 06:08:28 -07:00
hasdecl.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
hasfield.zig Sema: make @hasField support tuples too 2022-03-11 12:59:20 -07:00
if.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
import.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
incomplete_struct_param_tld.zig stage2 ARM: implement ret_load 2022-03-08 21:10:04 +01:00
int128.zig wasm: enable 128bit integer behavior tests 2022-05-18 07:43:33 +02:00
int_div.zig CBE: implement mod, divFloor, divTrunc 2022-03-19 21:01:36 -04:00
inttoptr.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
ir_block_deps.zig x64: pass more behavior tests 2022-02-28 23:20:05 +01:00
math.zig x64: re-enable behavior tests 2022-05-19 19:39:34 +02:00
maximum_minimum.zig wasm: Enable passing behavior tests 2022-04-02 21:54:01 +02:00
member_func.zig Port more behavior tests 2022-02-22 21:57:42 +01:00
merge_error_sets.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
muladd.zig enable newly passing behavior tests 2022-04-27 17:24:36 -07:00
namespace_depends_on_compile_var.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
null.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
optional.zig stage2 llvm: fix optional pointers to zero bit payloads 2022-04-15 19:17:50 +03:00
packed-struct.zig mark some more behavior tests as passing 2022-05-25 00:12:56 -07:00
pointers.zig stage2: fix pointer arithmetic result type 2022-05-17 23:50:38 -07:00
popcount.zig wasm: enable 128bit integer behavior tests 2022-05-18 07:43:33 +02:00
prefetch.zig stage1: implement @prefetch() builtin 2021-12-11 00:29:31 +01:00
ptrcast.zig wasm: Write nops for padding debug info 2022-05-09 18:51:46 +02:00
pub_enum.zig Merge remote-tracking branch 'origin/master' into stage2-whole-file-astgen 2021-05-08 14:45:21 -07:00
ref_var_in_if_after_if_2nd_switch_prong.zig Port more behavior tests 2022-02-22 21:57:42 +01:00
reflection.zig LLVM: add extra padding to structs and tuples sometimes 2022-03-01 18:24:00 -07:00
saturating_arithmetic.zig organize behavior tests 2022-03-18 15:02:52 -07:00
select.zig sema: coerce inputs to vectors in zirSelect 2022-03-25 19:14:11 +01:00
shuffle.zig mark some more behavior tests as passing 2022-05-25 00:12:56 -07:00
sizeof_and_typeof.zig Sema: check for generic poison in resolveInst 2022-05-25 23:11:13 +03:00
slice.zig Sema: fix slice field modification at comptime 2022-04-28 17:45:33 +03:00
slice_sentinel_comptime.zig std, src, doc, test: remove unused variables 2021-06-21 17:03:03 -07:00
src.zig stage2: introduce anonymous struct literals 2022-03-01 23:46:57 -07:00
struct.zig stage2: packed struct fields do not have a byte offset 2022-05-25 19:57:38 +03:00
struct_contains_null_ptr_itself.zig stage2 ARM: genSetStack for stack_argument_offset 2022-03-16 20:19:58 +01:00
struct_contains_slice_of_itself.zig Sema: introduce a mechanism in Value to resolve types 2022-03-22 15:45:59 -07:00
switch.zig Sema: forward switch condition to captures 2022-04-04 22:46:05 -07:00
switch_prong_err_enum.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
switch_prong_implicit_cast.zig wasm: Enable passing behavior tests 2022-03-09 13:53:20 -07:00
this.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
translate_c_macros.h translate-c: use nested scope for comma operator in macros 2022-03-08 20:38:51 +02:00
translate_c_macros.zig organize behavior tests 2022-03-18 15:02:52 -07:00
truncate.zig stage2 AArch64: Add ldrsb, ldrsh instructions 2022-04-19 22:40:48 +02:00
try.zig stage2 AArch64: add more slice support 2022-03-05 11:31:51 +01:00
tuple.zig pass more behaviour tests 2022-03-24 17:04:50 +01:00
type.zig replace other uses of std.meta.Vector with @Vector (#11346) 2022-03-30 14:12:14 -04:00
type_info.zig replace other uses of std.meta.Vector with @Vector (#11346) 2022-03-30 14:12:14 -04:00
typename.zig wasm: Enable all passing tests 2022-03-23 21:40:33 +01:00
undefined.zig stage2: improve @typeName 2022-03-18 00:12:22 -07:00
underscore.zig stage2 ARM: fix recursive fibonacci 2022-05-22 21:02:32 +02:00
union.zig x64: re-enable behavior tests 2022-05-19 19:39:34 +02:00
union_with_members.zig organize behavior tests 2022-03-18 15:02:52 -07:00
usingnamespace.zig Sema: fix usingnamespace decl Value in wrong arena 2022-03-30 17:24:01 -07:00
var_args.zig CBE: enable more tests that are currently passing 2022-03-17 11:39:56 -07:00
vector.zig stage2: add more vector overflow tests 2022-05-16 13:55:26 -07:00
void.zig stage2 ARM: implement addwrap, subwrap, mulwrap 2022-03-16 20:20:07 +01:00
wasm.zig stage2: cleanups to wasm memory intrinsics 2022-03-03 18:31:55 -07:00
while.zig wasm: Improve shl_with_overflow 2022-05-16 13:55:26 -07:00
widening.zig wasm: enable 128bit integer behavior tests 2022-05-18 07:43:33 +02:00
wrapping_arithmetic.zig stage1: fix saturating arithmetic producing incorrect results on type comptime_int, allow saturating left shift on type comptime int 2022-01-29 18:12:28 +02:00