This is an archive of the discontinued LLVM Phabricator instance.

Adding a shufflevector and select LLVM IR instructions fuzz tool
ClosedPublic

Authored by aymanmus on Sep 19 2017, 2:52 AM.

Details

Summary

Based on similar python tool - utils/shuffle-fuzz.py - this tool extends the ability of it's previous by optionally attaching select instruction to the generated shufflevector instructions.

This was mainly developed to perform exhaustive testing of the X86 AVX512 masked shuffle instructions. But yet it can be used for various other targets.

The general design of the implementation is much modular than the original shuffle_fuzz.py tool, which makes it easier for anyone to extend it further.

Diff Detail

Event Timeline

aymanmus created this revision.Sep 19 2017, 2:52 AM

Kind ping #2

gadi.haber added inline comments.Oct 30 2017, 5:31 AM
utils/shuffle_select_fuzz.py
3 ↗(On Diff #115813)

consider modifying the script name to add the word "generate" or "test" ?

13 ↗(On Diff #115813)

prints out an error message and crashes.

333 ↗(On Diff #115813)

Add the default to the help message

335 ↗(On Diff #115813)

Add the default to the help string message,

aymanmus updated this revision to Diff 120949.Oct 31 2017, 2:39 AM

Targeted Gadi's comments.

gadi.haber accepted this revision.Oct 31 2017, 3:13 AM
This revision is now accepted and ready to land.Oct 31 2017, 3:13 AM
This revision was automatically updated to reflect the committed changes.