Summary: This relands commit dff0e8b4ff13af311512c369d059f1e095e83a60. The test is now guarded with a lit.local.cfg that ensures /bin/cat is available. Also, the code has been updated to match changes made to relevant code. Author: Jamie Schmeiser <schmeise@ca.ibm.com> Reviewed By:aeubanks (Arthur Eubanks) Differential Revision: https://reviews.llvm.org/D110776