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

Jinsong Ji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 4 15:19:03 PDT 2021


jsji created this revision.
jsji added a reviewer: Elvina.
jsji requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

https://reviews.llvm.org/D101194 changed the default getMultiarchTriple in toolchain.
So -march=bpf on AIX will get triple of bpf-ibm-aix now,
this is unexpected and causing test failures.

Update the tests to use mtriple instead.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D101866

Files:
  llvm/test/CodeGen/BPF/BTF/binary-format.ll
  llvm/test/CodeGen/BPF/objdump_two_funcs.ll


Index: llvm/test/CodeGen/BPF/objdump_two_funcs.ll
===================================================================
--- llvm/test/CodeGen/BPF/objdump_two_funcs.ll
+++ llvm/test/CodeGen/BPF/objdump_two_funcs.ll
@@ -1,5 +1,5 @@
-; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-objdump -S - | FileCheck %s
-; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-objdump -S - | FileCheck %s
+; RUN: llc -mtriple=bpfel -filetype=obj -o - %s | llvm-objdump -S - | FileCheck %s
+; RUN: llc -mtriple=bpfeb -filetype=obj -o - %s | llvm-objdump -S - | FileCheck %s
 ;
 ; Source code:
 ;   __attribute__((section("s1")))
Index: llvm/test/CodeGen/BPF/BTF/binary-format.ll
===================================================================
--- llvm/test/CodeGen/BPF/BTF/binary-format.ll
+++ llvm/test/CodeGen/BPF/BTF/binary-format.ll
@@ -1,5 +1,5 @@
-; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" - | FileCheck -check-prefixes=CHECK,CHECK-EL %s
-; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" - | FileCheck -check-prefixes=CHECK,CHECK-EB %s
+; RUN: llc -mtriple=bpfel -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" - | FileCheck -check-prefixes=CHECK,CHECK-EL %s
+; RUN: llc -mtriple=bpfeb -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" - | FileCheck -check-prefixes=CHECK,CHECK-EB %s
 
 ; Source code:
 ;   int f(int a) { return a; }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101866.342883.patch
Type: text/x-patch
Size: 1433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210504/e2d675b4/attachment.bin>


More information about the llvm-commits mailing list