[flang-commits] [flang] 9f93b71 - [flang] Use llvm-readobj instead of llvm-readelf in rv64 test
David Spickett via flang-commits
flang-commits at lists.llvm.org
Fri Mar 17 08:47:24 PDT 2023
Author: David Spickett
Date: 2023-03-17T15:45:42Z
New Revision: 9f93b71f20eaa0e480ce1a184c40b27dd86576d9
URL: https://github.com/llvm/llvm-project/commit/9f93b71f20eaa0e480ce1a184c40b27dd86576d9
DIFF: https://github.com/llvm/llvm-project/commit/9f93b71f20eaa0e480ce1a184c40b27dd86576d9.diff
LOG: [flang] Use llvm-readobj instead of llvm-readelf in rv64 test
In some circumstances llvm-readelf symlink to llvm-readobj appears
to not be available. For want of a proper fix in CMake, use llvm-readobj
in the test instead.
Added:
Modified:
flang/test/Driver/code-gen-rv64.f90
Removed:
################################################################################
diff --git a/flang/test/Driver/code-gen-rv64.f90 b/flang/test/Driver/code-gen-rv64.f90
index 69d08b28c94ae..5bf331aa85d24 100644
--- a/flang/test/Driver/code-gen-rv64.f90
+++ b/flang/test/Driver/code-gen-rv64.f90
@@ -5,11 +5,11 @@
! RUN: rm -f %t.o
! RUN: %flang_fc1 -triple riscv64-unknown-linux-gnu \
! RUN: -target-feature +d -target-feature +c -emit-obj %s -o %t.o
-! RUN: llvm-readelf -h %t.o | FileCheck %s
+! RUN: llvm-readobj -h %t.o | FileCheck %s
! RUN: rm -f %t.o
! RUN: %flang --target=riscv64-unknown-linux-gnu -c %s -o %t.o
-! RUN: llvm-readelf -h %t.o | FileCheck %s
+! RUN: llvm-readobj -h %t.o | FileCheck %s
! If Flang failed to emit target-feature info, then Flags will be 0x0.
! 0x5 means set EF_RISCV_RVC (0x1) and EF_RISCV_FLOAT_ABI_DOUBLE (0x4)
More information about the flang-commits
mailing list