aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2023-05-18 17:39:43 +0200
committerRobin Voetter <robin@voetter.nl>2023-05-20 17:30:21 +0200
commit0ba0d8fecb255cf19a225e4cb160921d73f83652 (patch)
tree101032b9899da6cbc261aa5397c14cdf8e865613 /test/behavior/math.zig
parent7d519b3383431df48a41d6b32520e5c5e3d77612 (diff)
downloadzig-0ba0d8fecb255cf19a225e4cb160921d73f83652.tar.gz
zig-0ba0d8fecb255cf19a225e4cb160921d73f83652.zip
spirv: dont use OpIAddCarry
This instruction is not really working well in the LLVM SPIRV translator, as it is not implemented. This commit also intruces the constructStruct helper function to initialize structs at runtime. This is ALSO buggy in the translator, and we must work around OpCompositeConstruct not working when some of the constituents are runtime-known only. Some other improvements are made: - improved variable() so that it is more useful and no longer requires the address space. It always puts values in the Function address space, and returns a pointer to the Generic address space - adds a boolToInt utility function
Diffstat (limited to 'test/behavior/math.zig')
-rw-r--r--test/behavior/math.zig2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig
index cc85594c50..01aec23223 100644
--- a/test/behavior/math.zig
+++ b/test/behavior/math.zig
@@ -208,7 +208,6 @@ test "float equality" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
const x: f64 = 0.012;
const y: f64 = x + 1.0;
@@ -685,7 +684,6 @@ test "@addWithOverflow" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest; // TODO
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
{
var a: u8 = 250;