diff --git a/src/runtime/tests/speculation.rs b/src/runtime/tests/speculation.rs index ff1d8d0b1111ff2e7764063380bc3921b0ff2b65..d5bf5c0d021c40371bf6d85a0c7692287101218c 100644 --- a/src/runtime/tests/speculation.rs +++ b/src/runtime/tests/speculation.rs @@ -8,7 +8,7 @@ fn test_maybe_do_nothing() { // somehow not allowed. Note that we "check" by seeing if the test finishes. // Only the branches in which ports fire increment the loop index const CODE: &'static str = " - primitive only_puts(out output, u32 num_loops) { + comp only_puts(out output, u32 num_loops) { u32 index = 0; while (index < num_loops) { sync { put(output, true); } @@ -16,7 +16,7 @@ fn test_maybe_do_nothing() { } } - primitive might_put(out output, u32 num_loops) { + comp might_put(out output, u32 num_loops) { u32 index = 0; while (index < num_loops) { sync { @@ -26,7 +26,7 @@ fn test_maybe_do_nothing() { } } - primitive only_gets(in input, u32 num_loops) { + comp only_gets(in input, u32 num_loops) { u32 index = 0; while (index < num_loops) { sync { auto res = get(input); assert(res); } @@ -34,7 +34,7 @@ fn test_maybe_do_nothing() { } } - primitive might_get(in input, u32 num_loops) { + comp might_get(in input, u32 num_loops) { u32 index = 0; while (index < num_loops) { sync fork { auto res = get(input); assert(res); index += 1; } or {}