This is an archive of the discontinued LLVM Phabricator instance.

[test] Make fuzzer/value-profile-div.test x86 specific
ClosedPublic

Authored by MaskRay on Jul 18 2023, 2:26 PM.

Details

Summary

The test requires that an integer division by zero causes a trap, leading to a
signal like SIGFPE. This is the case on x86. On many other architectures, such
as Arm (unless software division is used and __aeabi_idiv0 is patched),
Power, RISC-V, LoongArch, there is no trap. Therefore, it's more appropriate to
invert the condition to run the test.

Diff Detail

Event Timeline

MaskRay created this revision.Jul 18 2023, 2:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 2:26 PM
MaskRay requested review of this revision.Jul 18 2023, 2:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 18 2023, 2:26 PM
Herald added subscribers: Restricted Project, wangpc. · View Herald Transcript
Ami-zhang accepted this revision.Jul 18 2023, 7:04 PM

LGTM, thanks!

This revision is now accepted and ready to land.Jul 18 2023, 7:04 PM
This revision was automatically updated to reflect the committed changes.