Skip to content

Commit

Permalink
[BPF] Disable llvm tests incompatible with Solana BPF backend (anza-x…
Browse files Browse the repository at this point in the history
  • Loading branch information
dmakarov committed Feb 26, 2021
1 parent 7ec6986 commit be7c4b8
Show file tree
Hide file tree
Showing 14 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/BTF/binary-format.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; 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

Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/byval.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: not llc -march=bpf < %s 2> %t1
; RUN: FileCheck %s < %t1
; CHECK: by value not supported
Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/many_args1.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: not llc -march=bpf < %s 2> %t1
; RUN: FileCheck %s < %t1
; CHECK: too many args
Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/many_args2.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: not llc -march=bpf < %s 2> %t1
; RUN: FileCheck %s < %t1
; CHECK: too many args
Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/objdump_static_var.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-objdump -d - | FileCheck --check-prefix=CHECK %s
; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-objdump -d - | FileCheck --check-prefix=CHECK %s

Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/reloc-btf-2.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s
; RUN: llc -march=bpfeb -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s

Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/reloc-btf.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s

; Function Attrs: norecurse nounwind readnone
Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/reloc.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s

%struct.bpf_context = type { i64, i64, i64, i64, i64, i64, i64 }
Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/struct_ret1.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: not llc -march=bpf < %s 2> %t1
; RUN: FileCheck %s < %t1
; CHECK: only integer returns
Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/struct_ret2.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: not llc -march=bpf < %s 2> %t1
; RUN: FileCheck %s < %t1
; CHECK: only small returns
Expand Down
5 changes: 3 additions & 2 deletions llvm/test/CodeGen/BPF/vararg1.ll
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
; RUN: not llc -march=bpf < %s 2> %t1
; RUN: FileCheck %s < %t1
; DISABLE: not llc -march=bpf < %s 2| FileCheck %s
; RUN: false
; XFAIL: *
; CHECK: with VarArgs

; Function Attrs: nounwind readnone uwtable
Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/warn-call.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: not llc -march=bpfel < %s 2>&1 >/dev/null | FileCheck %s

; CHECK: error: warn_call.c
Expand Down
1 change: 1 addition & 0 deletions llvm/test/CodeGen/BPF/warn-stack.ll
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
; XFAIL: *
; RUN: not llc -march=bpfel < %s 2>&1 >/dev/null | FileCheck %s

;; CHECK-NOT: nowarn
Expand Down
5 changes: 5 additions & 0 deletions llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,11 @@ TEST_F(TargetLibraryInfoTest, ValidProto) {
"declare double @__sinh_finite(double)\n"
"declare float @__sinhf_finite(float)\n"
"declare x86_fp80 @__sinhl_finite(x86_fp80)\n"

// rust memory management
"declare i8* @__rust_alloc(i64, i64, i8*)\n"
"declare void @__rust_dealloc(i8*, i64, i64)\n"
"declare i8* @__rust_realloc(i8*, i64, i64, i64, i64, i8*)\n"
);

for (unsigned FI = 0; FI != LibFunc::NumLibFuncs; ++FI) {
Expand Down

0 comments on commit be7c4b8

Please sign in to comment.