Skip to content

Commit 50354c3

Browse files
Skip test when code could be using x87 (#8537)
* Skip test when code could be using x87 * Add MSVC macro Co-authored-by: Alex Reinking <[email protected]> --------- Co-authored-by: Alex Reinking <[email protected]>
1 parent 5783534 commit 50354c3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/correctness/saturating_casts.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ void test_one_source() {
290290
}
291291

292292
int main(int argc, char **argv) {
293+
294+
#if defined(__i386__) || defined(_M_IX86)
295+
printf("[SKIP] Skipping test because it requires bit-exact int to float casts,\n"
296+
"and on i386 without SSE it is hard to guarantee that the test binary won't use x87 instructions.\n");
297+
return 0;
298+
#endif
299+
293300
test_one_source<int8_t>();
294301
test_one_source<uint8_t>();
295302
test_one_source<int16_t>();

0 commit comments

Comments
 (0)