0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/test/behavior
Luuk de Gram 619140c0d2 wasm: correctly intcast signed integers
When a signed integer's bitsize is not 32 or 64, but the given
bitsize and wanted bitsize are either both represented by Wasm's i32
or i64, we must either sign extend or wrap the integer.
History 2023-07-22 02:12:07 +02:00
..
bugs x86_64: add missing padding to global unions 2023-06-25 19:14:03 -04: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 stage2: sparc64: Skip unimplemented tests 2022-12-10 21:51:46 +07:00
align.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
alignof.zig behavior: correct alignment for elements and slices of aligned array 2023-06-27 19:57:23 -04:00
array.zig behavior: test slicing array of zero-sized values 2023-06-28 14:00:18 +03:00
asm.zig Module: add support for multiple global asm blocks per decl 2023-06-19 13:12:04 -07:00
async_fn.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
atomics.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
await_struct.zig remove references to stage1 in behavior tests 2022-12-06 19:06:48 -07:00
basic.zig std.cstr: deprecate namespace 2023-06-25 14:51:03 -07:00
bit_shifting.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
bitcast.zig Update tests to new splat syntax 2023-07-12 15:35:57 -07:00
bitreverse.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
bool.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
builtin_functions_returning_void_or_noreturn.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
byteswap.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
byval_arg_var.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
c_char_signedness.zig spirv: disable new behavior tests that do not pass 2023-07-01 19:45:09 +02:00
call.zig spirv: disable new behavior tests that do not pass 2023-07-01 19:45:09 +02:00
cast.zig Update tests to new splat syntax 2023-07-12 15:35:57 -07:00
cast_int.zig wasm: correctly intcast signed integers 2023-07-22 02:12:07 +02:00
comptime_memory.zig spirv: disable new behavior tests that do not pass 2023-07-01 19:45:09 +02:00
const_slice_child.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
decltest.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
defer.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
duplicated_test_names.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
empty_file_level_struct.zig fix overflow found while fuzzing 2022-12-23 23:10:04 +02:00
empty_file_level_union.zig fix overflow found while fuzzing 2022-12-23 23:10:04 +02:00
empty_tuple_fields.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
empty_union.zig enable passing behavior tests 2023-05-31 18:04:33 +02:00
enum.zig spirv: disable new behavior tests that do not pass 2023-07-01 19:45:09 +02:00
error.zig Merge pull request #16188 from kcbanner/fix_cbe_airErrUnionPayloadPtrSet 2023-06-24 21:53:59 -07:00
eval.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
export.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
export_self_referential_type_info.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
field_parent_ptr.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
floatop.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
fn.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
fn_delegation.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
fn_in_struct_in_comptime.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
for.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
generics.zig Sema: fix return type of generic function is function pointer 2023-07-18 21:15:16 -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 behavior: if-@as-if chain 2023-06-27 19:57:23 -04:00
import.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
incomplete_struct_param_tld.zig stage2: sparc64: Skip unimplemented tests 2022-12-10 21:51:46 +07:00
inline_switch.zig all: zig fmt and rename "@XToY" to "@YFromX" 2023-06-19 12:34:42 -07:00
int128.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
int_comparison_elision.zig Dwarf: fix overflow write byte_size 2023-05-15 03:07:51 -04:00
int_div.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
ir_block_deps.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
lower_strlit_to_vector.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
math.zig Update tests to new splat syntax 2023-07-12 15:35:57 -07:00
maximum_minimum.zig spirv: disable new behavior tests that do not pass 2023-07-01 19:45:09 +02:00
member_func.zig Zir: eliminate field_call_bind and field_call_bind_named 2023-05-20 12:27:48 -07:00
memcpy.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
memset.zig wasm: support memset for elem abi size > 1 2023-05-19 20:22:45 +02:00
merge_error_sets.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
muladd.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06: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 all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
optional.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
packed-struct.zig x86_64: fix global pointers to packed struct fields 2023-06-25 19:14:03 -04:00
packed_struct_explicit_backing_int.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
pointers.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
popcount.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
prefetch.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
ptrcast.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
ptrfromint.zig spirv: disable new behavior tests that do not pass 2023-07-01 19:45:09 +02:00
pub_enum.zig spirv: lower get_union_tag 2023-05-20 18:43:26 +03:30
ref_var_in_if_after_if_2nd_switch_prong.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
reflection.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
return_address.zig enable passing behavior tests 2023-05-31 18:04:33 +02:00
saturating_arithmetic.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
select.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
shuffle.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
sizeof_and_typeof.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
slice.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
slice_sentinel_comptime.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
src.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
struct.zig Sema: resolve field type layout for anon struct type info 2023-07-10 19:17:50 +03:00
struct_contains_null_ptr_itself.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
struct_contains_slice_of_itself.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
switch.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
switch_prong_err_enum.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
switch_prong_implicit_cast.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
this.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
threadlocal.zig x86_64: disable failing behavior test 2023-06-25 19:14:03 -04:00
translate_c_macros.h Translate-C Remainder Macro Fix 2022-11-03 14:07:00 +02:00
translate_c_macros.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
translate_c_macros_not_utf8.h translate-c: Escape non-ASCII characters that appear in macros 2022-09-10 01:50:17 +03:00
truncate.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
try.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
tuple.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
tuple_declarations.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
type.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
type_info.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
typename.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
undefined.zig spirv: more passing tests 2023-05-20 17:30:22 +02:00
underscore.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
union.zig Sema: copy pointer alignment to union field pointers 2023-06-30 23:23:01 -04:00
union_with_members.zig enable passing behavior tests 2023-05-31 18:04:33 +02:00
usingnamespace.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
var_args.zig spirv: ptr_elem_val 2023-05-20 17:30:23 +02:00
vector.zig Update tests to new splat syntax 2023-07-12 15:35:57 -07:00
void.zig setup spirv backend in behavior tests 2023-05-11 20:31:52 +02:00
wasm.zig stage2: cleanups to wasm memory intrinsics 2022-03-03 18:31:55 -07:00
while.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00
widening.zig x86_64: rewrite casts 2023-05-18 20:42:38 -04:00
wrapping_arithmetic.zig all: replace comptime try with try comptime 2023-06-13 23:46:58 +06:00