aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/bitcast.zig
diff options
context:
space:
mode:
authorRobin Voetter <robin@voetter.nl>2023-09-23 01:30:16 +0200
committerRobin Voetter <robin@voetter.nl>2023-10-15 20:08:18 +0200
commitfaad97edffb2fc9cda4885feb688f3ccec71c5db (patch)
treeed81336d6607cfd0ce67fbe8f61d633b2fcb04e7 /test/behavior/bitcast.zig
parent0552e504d061c428655536b82db3bda21d97ef3c (diff)
downloadzig-faad97edffb2fc9cda4885feb688f3ccec71c5db.tar.gz
zig-faad97edffb2fc9cda4885feb688f3ccec71c5db.zip
spirv: update failing / passing tests
Some tests are now failing due to debug info changes, some tests now pass due to improved compiler functionality.
Diffstat (limited to 'test/behavior/bitcast.zig')
-rw-r--r--test/behavior/bitcast.zig8
1 files changed, 0 insertions, 8 deletions
diff --git a/test/behavior/bitcast.zig b/test/behavior/bitcast.zig
index d01700ed89..e21ae2b20c 100644
--- a/test/behavior/bitcast.zig
+++ b/test/behavior/bitcast.zig
@@ -149,8 +149,6 @@ test "bitcast literal [4]u8 param to u32" {
}
test "bitcast generates a temporary value" {
- if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
-
var y = @as(u16, 0x55AA);
const x = @as(u16, @bitCast(@as([2]u8, @bitCast(y))));
try expect(y == x);
@@ -186,7 +184,6 @@ test "@bitCast packed structs at runtime and comptime" {
test "@bitCast extern structs at runtime and comptime" {
if (builtin.zig_backend == .stage2_aarch64) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
const Full = extern struct {
number: u16,
@@ -241,7 +238,6 @@ test "bitcast packed struct to integer and back" {
test "implicit cast to error union by returning" {
if (builtin.zig_backend == .stage2_arm) return error.SkipZigTest;
if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO
- if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
const S = struct {
fn entry() !void {
@@ -271,8 +267,6 @@ test "comptime bitcast used in expression has the correct type" {
}
test "bitcast passed as tuple element" {
- if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
-
const S = struct {
fn foo(args: anytype) !void {
try comptime expect(@TypeOf(args[0]) == f32);
@@ -283,8 +277,6 @@ test "bitcast passed as tuple element" {
}
test "triple level result location with bitcast sandwich passed as tuple element" {
- if (builtin.zig_backend == .stage2_spirv64) return error.SkipZigTest;
-
const S = struct {
fn foo(args: anytype) !void {
try comptime expect(@TypeOf(args[0]) == f64);