[PATCH] D101866: [BPF][Test] Use mtriple instead of march

Jinsong Ji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 5 06:47:20 PDT 2021


jsji added a comment.

In D101866#2737982 <https://reviews.llvm.org/D101866#2737982>, @yonghong-song wrote:

> We have a lot of tests using -march=bpf[eleb], why only these two tests? Is this due to the fact llvm-objdump won't work any more? Also, we have quite some objdump-* tests,

Good question. Not due to llvm-objdump, it is due to the fact AIX does not support bpf (yet).
You should be able to see what is wrong on Linux with following triple as well.

  $ llc -mtriple=bpfel-ibm-aix -filetype=obj -o - llvm-project/llvm/test/CodeGen/BPF/BTF/binary-format.ll
  <unknown>:0: error: Undefined temporary symbol 

The failure are:

  <unknown>:0: error: Undefined temporary symbol 
  ..bin/llvm-readelf: error: '<stdin>': The file was not recognized as a valid object file
  FileCheck error: '<stdin>' is empty.
  FileCheck command line:  .../bin/FileCheck -check-prefixes=CHECK,CHECK-EL .../lvm/test/CodeGen/BPF/BTF/binary-format.ll


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D101866/new/

https://reviews.llvm.org/D101866



More information about the llvm-commits mailing list