Skip to content

Commit

Permalink
[SOL] 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 Oct 28, 2021
1 parent 7a70213 commit 9f46dbe
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 @@ -590,6 +590,11 @@ TEST_F(TargetLibraryInfoTest, ValidProto) {
// These functions are OpenMP Offloading allocation / free routines
"declare i8* @__kmpc_alloc_shared(i64)\n"
"declare void @__kmpc_free_shared(i8*, i64)\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 9f46dbe

Please sign in to comment.