aboutsummaryrefslogtreecommitdiff
path: root/test/stage1/behavior
diff options
context:
space:
mode:
authorVexu <git@vexu.eu>2020-03-12 22:42:01 +0200
committerVexu <git@vexu.eu>2020-03-12 22:42:01 +0200
commit71d776c3be91f6b4e982b45fbfe03e3696a397f5 (patch)
treede9487bd41b3c646f19018e03285730b15c6142d /test/stage1/behavior
parent6dde769279aaa0cc09d13dd0670b74a8dd24f547 (diff)
downloadzig-71d776c3be91f6b4e982b45fbfe03e3696a397f5.tar.gz
zig-71d776c3be91f6b4e982b45fbfe03e3696a397f5.zip
add note to disabled tests, improve comptime cmpxchg
Diffstat (limited to 'test/stage1/behavior')
-rw-r--r--test/stage1/behavior/atomics.zig6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/stage1/behavior/atomics.zig b/test/stage1/behavior/atomics.zig
index 8870091d75..3e6d0b3d0f 100644
--- a/test/stage1/behavior/atomics.zig
+++ b/test/stage1/behavior/atomics.zig
@@ -149,6 +149,7 @@ fn testAtomicStore() void {
}
test "atomicrmw with floats" {
+ // TODO https://github.com/ziglang/zig/issues/4457
if (builtin.arch == .aarch64 or builtin.arch == .arm or builtin.arch == .riscv64)
return error.SkipZigTest;
testAtomicRmwFloat();
@@ -167,8 +168,6 @@ fn testAtomicRmwFloat() void {
}
test "atomicrmw with ints" {
- if (builtin.arch == .mipsel)
- return error.SkipZigTest;
testAtomicRmwInt();
comptime testAtomicRmwInt();
}
@@ -189,6 +188,9 @@ fn testAtomicRmwInt() void {
expect(x == 0xff);
_ = @atomicRmw(u8, &x, .Xor, 2, .SeqCst);
expect(x == 0xfd);
+
+ // TODO https://github.com/ziglang/zig/issues/4724
+ if (builtin.arch == .mipsel) return;
_ = @atomicRmw(u8, &x, .Max, 1, .SeqCst);
expect(x == 0xfd);
_ = @atomicRmw(u8, &x, .Min, 1, .SeqCst);