[all-commits] [llvm/llvm-project] 41a141: [Flang][Driver][NFC] Improve -emit-obj unit tests
Sergio Afonso via All-commits
all-commits at lists.llvm.org
Thu May 4 02:13:38 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 41a1415dc32f89f8de356a1874be673c82d716a7
https://github.com/llvm/llvm-project/commit/41a1415dc32f89f8de356a1874be673c82d716a7
Author: Sergio Afonso <safonsof at amd.com>
Date: 2023-05-04 (Thu, 04 May 2023)
Changed paths:
M flang/test/Driver/code-gen-aarch64.f90
M flang/test/Driver/code-gen-rv64.f90
M flang/test/Driver/code-gen-x86.f90
Log Message:
-----------
[Flang][Driver][NFC] Improve -emit-obj unit tests
Instead of looking for the existence of a `ret` instruction after disassembly
as a way to check that the right ISA is present in the produced binary, check
instead the ELF header of the file. This is a more reliable solution, since the
alternative can easily result in false positives.
Differential Revision: https://reviews.llvm.org/D149578
More information about the All-commits
mailing list