Skip to content

Commit bb306b8

Browse files
dmakarovLucasSte
authored andcommitted
[SOL] Disable llvm tests incompatible with Solana BPF backend (#3)
1 parent 210e76c commit bb306b8

File tree

14 files changed

+31
-12
lines changed

14 files changed

+31
-12
lines changed

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

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

45
; Source code:
56
; int f(int a) { return a; }

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: error: <unknown>:0:0: in function foo i32 (i32, i32, i32): {{t10|0x[0-f]+}}: i64 = GlobalAddress<ptr @bar> 0 too many arguments

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: error: <unknown>:0:0: in function bar i32 (i32, i32, i32, i32, i32, i32): stack arguments are not supported

llvm/test/CodeGen/BPF/objdump_static_var.ll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
; RUN: llc -mtriple=bpfel -filetype=obj -o - %s | llvm-objdump --no-print-imm-hex -d - | FileCheck --check-prefix=CHECK %s
2-
; RUN: llc -mtriple=bpfeb -filetype=obj -o - %s | llvm-objdump --no-print-imm-hex -d - | FileCheck --check-prefix=CHECK %s
1+
; XFAIL: *
2+
; RUN: llc -march=bpfel -filetype=obj -o - %s | llvm-objdump --no-print-imm-hex -d - | FileCheck --check-prefix=CHECK %s
3+
; RUN: llc -march=bpfeb -filetype=obj -o - %s | llvm-objdump --no-print-imm-hex -d - | FileCheck --check-prefix=CHECK %s
34

45
; src:
56
; static volatile long a = 2;

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

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

45
; source code:
56
; int g __attribute__((section("ids"))) = 4;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
; RUN: llc -mtriple=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s
1+
; XFAIL: *
2+
; RUN: llc -march=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s
23

34
; Function Attrs: norecurse nounwind readnone
45
define dso_local i32 @test() local_unnamed_addr #0 !dbg !7 {

llvm/test/CodeGen/BPF/reloc.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
; RUN: llc -mtriple=bpfel -filetype=obj < %s | llvm-objdump -r - | FileCheck --check-prefix=CHECK-RELOC %s
1+
; XFAIL: *
2+
; 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 }
45
%struct.sk_buff = 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: error: <unknown>:0:0: in function bar { i64, i32 } (i32, i32, i32, i32, i32): aggregate returns are not supported

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

0 commit comments

Comments
 (0)