Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ jobs:
strategy:
matrix:
sys:
- { os: '14', arch: 'native' }
# macos-14 runner images are retired as of 2026-11-02
- { os: '15', arch: 'native' }
- { os: '15', arch: 'neon64' }
- { os: '15-intel', arch: 'sse4.2' }
runs-on: macos-${{ matrix.sys.os }}
Expand Down
13 changes: 11 additions & 2 deletions test/test_power.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,26 @@ struct power_test
// Test with FE_INVALID...
unsigned mask = _MM_GET_EXCEPTION_MASK();
_MM_SET_EXCEPTION_MASK(mask & ~_MM_MASK_INVALID);
std::vector<value_type> computed(nb_input);
for (size_t i = 0; i < nb_input; i += size)
{
batch_type zlhs_in, rhs_in, out, ref;
batch_type zlhs_in, rhs_in, out;
detail::load_batch(zlhs_in, zlhs_input, i);
detail::load_batch(rhs_in, rhs_input, i);
out = pow(zlhs_in, rhs_in);
detail::store_batch(out, computed, i);
}
_MM_SET_EXCEPTION_MASK(mask);
// Compare after the restore: the comparison raises FE_INVALID on
// inf/NaN lanes and would trap with the exception unmasked.
for (size_t i = 0; i < nb_input; i += size)
{
batch_type ref, out;
detail::load_batch(ref, expected, i);
detail::load_batch(out, computed, i);
INFO("0 ^ x with exception");
CHECK_BATCH_EQ(ref, out);
}
_MM_SET_EXCEPTION_MASK(mask);
#endif
}
#ifndef __FAST_MATH__
Expand Down
Loading