Changeset View
Changeset View
Standalone View
Standalone View
lld/test/ELF/bpf-basic.s
- This file was added.
// REQUIRES: bpf | |||||
// RUN: echo 'define dso_local i32 @foo() local_unnamed_addr { entry: ret i32 0 }' > %t1.ll | |||||
MaskRay: Use `split-file %s %t` | |||||
// RUN: echo 'define dso_local i32 @bar() local_unnamed_addr { entry: ret i32 1 }' > %t2.ll | |||||
// RUN: llc -filetype=obj -mtriple=bpfel %t1.ll -o %t3 | |||||
MaskRayUnsubmitted 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: llc -filetype=obj -mtriple=bpfel %t2.ll -o %t4 | |||||
// RUN: ld.lld -relocatable %t3 %t4 -o %t5 | |||||
MaskRayUnsubmitted Not Done ReplyInline Actions-relocatable => -r MaskRay: `-relocatable` => `-r` | |||||
// RUN: llvm-objdump -d --no-show-raw-insn %t5 | FileCheck %s | |||||
// CHECK: <foo>: | |||||
// CHECK: r0 = 0 | |||||
// CHECK: exit | |||||
// CHECK: <bar>: | |||||
// CHECK: r0 = 1 | |||||
// CHECK: exit |
Use split-file %s %t