Skip to content

Commit fb247eb

Browse files
committed
!fixup: add MC tests for llvm#75110
1 parent b7969b5 commit fb247eb

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

llvm/test/MC/BPF/branch-or-nop.s

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# RUN: llvm-mc -triple bpfel -show-encoding < %s | FileCheck %s
2+
3+
dst:
4+
5+
# CHECK: gotol_or_nop dst # encoding: [0x06'A',0x10'A',A,A,0x00,0x00,0x00,0x00]
6+
# CHECK-NEXT: # fixup A - offset: 0, value: dst, kind: FK_BPF_PCRel_4
7+
gotol_or_nop dst
8+
9+
# CHECK: nop_or_gotol dst # encoding: [0x06'A',0x30'A',A,A,0x00,0x00,0x00,0x00]
10+
# CHECK-NEXT: # fixup A - offset: 0, value: dst, kind: FK_BPF_PCRel_4
11+
nop_or_gotol dst

0 commit comments

Comments
 (0)