Affiliation:
1. University of Utah, USA
2. Intel Corporation, USA
Abstract
Compilers are part of the foundation upon which software systems are built; they need to be as correct as possible. This paper is about stress-testing loop optimizers; it presents a major reimplementation of Yet Another Random Program Generator (YARPGen), an open-source generative compiler fuzzer. This new version has found 122 bugs, both in compilers for data-parallel languages, such as the Intel® Implicit SPMD Program Compiler and the Intel® oneAPI DPC++ compiler, and in C++ compilers such as GCC and Clang/LLVM. The first main contribution of our work is a novel method for statically avoiding undefined behavior when generating loops; the resulting programs conform to the relevant language standard, enabling automated testing. The second main contribution is a collection of mechanisms for increasing the diversity of generated loop code; in our evaluation, we demonstrate that these make it possible to trigger loop optimizations significantly more often, providing opportunities to discover bugs in the optimizers.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference35 articles.
1. Compiler test case generation methods: a survey and assessment
2. Nader Boushehri , Ryan Berger , Stefan Mada , and John Regehr . 2022 . Automated Translation Validation for an LLVM Backend . Presented at 2022 LLVM Developers’ Meeting. https://llvm.org/devmtg/2022-11/slides/TechTalk18-AutomatedTranslationValidation.pdf [Online, accessed 03-16-2023] Nader Boushehri, Ryan Berger, Stefan Mada, and John Regehr. 2022. Automated Translation Validation for an LLVM Backend. Presented at 2022 LLVM Developers’ Meeting. https://llvm.org/devmtg/2022-11/slides/TechTalk18-AutomatedTranslationValidation.pdf [Online, accessed 03-16-2023]
3. The automatic generation of test cases for optimizing Fortran compilers
4. A Survey of Compiler Testing
5. Compiler fuzzing through deep learning
Cited by
7 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Detecting Optimizing Compiler Bugs via History-Driven Test Program Mutation;Proceedings of the 15th Asia-Pacific Symposium on Internetware;2024-07-24
2. Refined Input, Degraded Output: The Counterintuitive World of Compiler Behavior;Proceedings of the ACM on Programming Languages;2024-06-20
3. Boosting Compiler Testing by Injecting Real-World Code;Proceedings of the ACM on Programming Languages;2024-06-20
4. Finding XPath Bugs in XML Document Processors via Differential Testing;Proceedings of the IEEE/ACM 46th International Conference on Software Engineering;2024-04-12
5. API-Driven Program Synthesis for Testing Static Typing Implementations;Proceedings of the ACM on Programming Languages;2024-01-05