Skip to content

Attempted workaround for GCC PPC EMU128 test failure, refs #3024#3027

Merged
copybara-service[bot] merged 1 commit into
masterfrom
test_908194619
May 4, 2026
Merged

Attempted workaround for GCC PPC EMU128 test failure, refs #3024#3027
copybara-service[bot] merged 1 commit into
masterfrom
test_908194619

Conversation

@copybara-service
Copy link
Copy Markdown
Contributor

@copybara-service copybara-service Bot commented Apr 30, 2026

Attempted workaround for GCC PPC EMU128 test failure, refs #3024

Add Unpredictable1 instead of literal

Also disable some aarch64 targets for compare_test to prevent OOM

Comment thread hwy/tests/compare_test.cc
// See the License for the specific language governing permissions and
// limitations under the License.

// Clang aarch64 OOM workaround: Not using AES, hence NEON_WITHOUT_AES is
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be GCC instead of Clang?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair :) I copied from existing code, we've had the same problem on Clang, but this instance was indeed GCC.

Comment thread hwy/tests/memory_test.cc
alignas(16) T lanes[N128];
for (size_t i = 0; i < N128; ++i) {
lanes[i] = ConvertScalarTo<T>(1 + i);
lanes[i] = ConvertScalarTo<T>(hwy::Unpredictable1() + i);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem to fix the problem. It is likely a compiler bug specific to GCC 16 on ppc 64.
Code compiles fine on GCC15:
https://copr.fedorainfracloud.org/coprs/fed500/highway/build/10415978/

Initial report:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125148

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hm :/ Thanks for filing the report. There is no harm in using Unpredictable1, this prevents test code from being optimized out and we're slowly moving toward that everywhere.

Add Unpredictable1 instead of literal

Also disable some aarch64 targets for compare_test to prevent OOM

PiperOrigin-RevId: 909853992
@copybara-service copybara-service Bot merged commit bb1c16b into master May 4, 2026
1 check passed
@copybara-service copybara-service Bot deleted the test_908194619 branch May 4, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants