This is an archive of the discontinued LLVM Phabricator instance.

Fix LLVM IR check lines in utils/update_cc_test_checks.py
ClosedPublic

Authored by MaskRay on Mar 12 2018, 12:50 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

MaskRay created this revision.Mar 12 2018, 12:50 PM

utils/update_test_checks.py still works.

Verified with utils/update_test_checks.py --opt-binary=~/Dev/llvm/release/bin/opt test/CodeGen/Generic/expand-experimental-reductions.ll

asm and IR check lines really should be unified..

arichardson accepted this revision.Mar 14 2018, 2:21 AM

Just tested it and it works perfectly for me.

This revision is now accepted and ready to land.Mar 14 2018, 2:21 AM
This revision was automatically updated to reflect the committed changes.

Could somebody here please clarify what's happening with test/CodeGen/X86/avx2-intrinsics-x86.ll? Before recent changes to the utils (D42654, D42805, this) it had a pattern ret{{l|q}} with which the same blocks of checks corresponded to 2 run lines each. Now the utils produce separate checks for those lines. Was this intended? If so, please update the tests after your changes, otherwise it may be an issue with the utils.

RKSimon added a subscriber: RKSimon.Apr 3 2018, 2:10 PM

Could somebody here please clarify what's happening with test/CodeGen/X86/avx2-intrinsics-x86.ll? Before recent changes to the utils (D42654, D42805, this) it had a pattern ret{{l|q}} with which the same blocks of checks corresponded to 2 run lines each. Now the utils produce separate checks for those lines. Was this intended? If so, please update the tests after your changes, otherwise it may be an issue with the utils.

Some x86 test files were generated with the '--x86_extra_scrub' flag - as part of an ongoing attempt to merge 32/64 bit checks that only differ with the retl/retq - see PR35003

Regarding test/CodeGen/X86/avx2-intrinsics-x86.ll
Several RUN lines share the same --check-prefix=. I am not sure the CHECK lines were created by utils/update_llc_test_checks.py. It is very likely hand-crafted after applying the tool.

Regarding test/CodeGen/X86/avx2-intrinsics-x86.ll
Several RUN lines share the same --check-prefix=. I am not sure the CHECK lines were created by utils/update_llc_test_checks.py. It is very likely hand-crafted after applying the tool.

First step - get rid of --x86_extra_scrub entirely so we don't rely on updating the scripts with an optional arg.

@MaskRay Is there any chance you could help here? We need the ret{{[l|q]}} pattern to be used only if that is the only diff between 32/64 bit codegen and it allows us to use a common prefix