Skip to content

Commit

Permalink
Fix warning in test for MXCSR register
Browse files Browse the repository at this point in the history
  • Loading branch information
M-HT committed Sep 13, 2023
1 parent d78887b commit 8f6e625
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/x86/sse.c
Original file line number Diff line number Diff line change
Expand Up @@ -5769,7 +5769,8 @@ test_simde_MM_TRANSPOSE4_PS (SIMDE_MUNIT_TEST_ARGS) {
static int
test_simde_MXCSR (SIMDE_MUNIT_TEST_ARGS) {
uint32_t original_mxcsr = simde_mm_getcsr();
uint32_t masked_mxcsr = original_mxcsr & ~(SIMDE_MM_ROUND_MASK | SIMDE_MM_FLUSH_ZERO_MASK);
uint32_t mask_rm_fzm = SIMDE_MM_ROUND_MASK | SIMDE_MM_FLUSH_ZERO_MASK;
uint32_t masked_mxcsr = original_mxcsr & ~mask_rm_fzm;

simde_mm_setcsr(masked_mxcsr | SIMDE_MM_ROUND_NEAREST | SIMDE_MM_FLUSH_ZERO_OFF);
uint32_t rm_nearest_off = HEDLEY_STATIC_CAST(uint32_t, SIMDE_MM_GET_ROUNDING_MODE());
Expand Down

0 comments on commit 8f6e625

Please sign in to comment.