Changeset View
Changeset View
Standalone View
Standalone View
lld/test/ELF/bpf-basic.s
- This file was added.
// REQUIRES: bpf | |||||
// RUN: split-file %s %t | |||||
// RUN: llc -filetype=obj -mtriple=bpfel %t/a.ll -o %t3.el.o | |||||
MaskRay: Use `split-file %s %t` | |||||
// RUN: llc -filetype=obj -mtriple=bpfel %t/b.ll -o %t4.el.o | |||||
// RUN: ld.lld -r %t3.el.o %t4.el.o -o %t5.el | |||||
Not Done ReplyInline ActionsSee riscv-*.s how I organize the little-endian and big-endian RUN lines. MaskRay: See `riscv-*.s` how I organize the little-endian and big-endian RUN lines. | |||||
// RUN: llvm-objdump -d --no-show-raw-insn %t5.el | FileCheck %s | |||||
// RUN: llc -filetype=obj -mtriple=bpfeb %t/a.ll -o %t3.eb.o | |||||
Not Done ReplyInline Actions-relocatable => -r MaskRay: `-relocatable` => `-r` | |||||
// RUN: llc -filetype=obj -mtriple=bpfeb %t/b.ll -o %t4.eb.o | |||||
// RUN: ld.lld -r %t3.eb.o %t4.eb.o -o %t5.eb | |||||
// RUN: llvm-objdump -d --no-show-raw-insn %t5.eb | FileCheck %s | |||||
// CHECK: <foo>: | |||||
// CHECK: r0 = 0 | |||||
// CHECK: exit | |||||
// CHECK: <bar>: | |||||
// CHECK: r0 = 1 | |||||
// CHECK: exit | |||||
//--- a.ll | |||||
define dso_local i32 @foo() local_unnamed_addr { entry: ret i32 0 } | |||||
//--- b.ll | |||||
define dso_local i32 @bar() local_unnamed_addr { entry: ret i32 1 } |
Use split-file %s %t