Skip to content

Commit a38156a

Browse files
authored
[BPF] Disable llvm tests incompatible with Solana BPF backend (#3)
1 parent 74bf690 commit a38156a

File tree

14 files changed

+20
-2
lines changed

14 files changed

+20
-2
lines changed

llvm/test/CodeGen/BPF/BTF/binary-format.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" | FileCheck -check-prefixes=CHECK,CHECK-EL %s
23
; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-readelf -x ".BTF" -x ".BTF.ext" | FileCheck -check-prefixes=CHECK,CHECK-EB %s
34

llvm/test/CodeGen/BPF/byval.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: not llc -march=bpf < %s 2> %t1
23
; RUN: FileCheck %s < %t1
34
; CHECK: by value not supported

llvm/test/CodeGen/BPF/many_args1.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: not llc -march=bpf < %s 2> %t1
23
; RUN: FileCheck %s < %t1
34
; CHECK: too many args

llvm/test/CodeGen/BPF/many_args2.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: not llc -march=bpf < %s 2> %t1
23
; RUN: FileCheck %s < %t1
34
; CHECK: too many args

llvm/test/CodeGen/BPF/objdump_static_var.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-objdump -d - | FileCheck --check-prefix=CHECK %s
23
; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-objdump -d - | FileCheck --check-prefix=CHECK %s
34

llvm/test/CodeGen/BPF/reloc-btf-2.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s
23
; RUN: llc -march=bpfeb -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s
34

llvm/test/CodeGen/BPF/reloc-btf.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s
23

34
; Function Attrs: norecurse nounwind readnone

llvm/test/CodeGen/BPF/reloc.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s
23

34
%struct.bpf_context = type { i64, i64, i64, i64, i64, i64, i64 }

llvm/test/CodeGen/BPF/struct_ret1.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: not llc -march=bpf < %s 2> %t1
23
; RUN: FileCheck %s < %t1
34
; CHECK: only integer returns

llvm/test/CodeGen/BPF/struct_ret2.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: not llc -march=bpf < %s 2> %t1
23
; RUN: FileCheck %s < %t1
34
; CHECK: only small returns

llvm/test/CodeGen/BPF/vararg1.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
; RUN: not llc -march=bpf < %s 2> %t1
2-
; RUN: FileCheck %s < %t1
1+
; DISABLE: not llc -march=bpf < %s 2| FileCheck %s
2+
; RUN: false
3+
; XFAIL: *
34
; CHECK: with VarArgs
45

56
; Function Attrs: nounwind readnone uwtable

llvm/test/CodeGen/BPF/warn-call.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: not llc -march=bpfel < %s 2>&1 >/dev/null | FileCheck %s
23

34
; CHECK: error: warn_call.c

llvm/test/CodeGen/BPF/warn-stack.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; XFAIL: *
12
; RUN: not llc -march=bpfel < %s 2>&1 >/dev/null | FileCheck %s
23

34
;; CHECK-NOT: nowarn

llvm/unittests/Analysis/TargetLibraryInfoTest.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,11 @@ TEST_F(TargetLibraryInfoTest, ValidProto) {
564564
"declare double @__sinh_finite(double)\n"
565565
"declare float @__sinhf_finite(float)\n"
566566
"declare x86_fp80 @__sinhl_finite(x86_fp80)\n"
567+
568+
// rust memory management
569+
"declare i8* @__rust_alloc(i64, i64, i8*)\n"
570+
"declare void @__rust_dealloc(i8*, i64, i64)\n"
571+
"declare i8* @__rust_realloc(i8*, i64, i64, i64, i64, i8*)\n"
567572
);
568573

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

0 commit comments

Comments
 (0)