Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BPF] Disable llvm tests incompatible with Solana BPF backend #3

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -564,6 +564,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