[BPF] fix indirect call assembly code
authorYonghong Song <yhs@fb.com>
Mon, 21 Oct 2019 03:22:03 +0000 (03:22 +0000)
committerYonghong Song <yhs@fb.com>
Mon, 21 Oct 2019 03:22:03 +0000 (03:22 +0000)
commitee881197b00186ada844ce0bb6969d6280a51775
tree95788327b0476188152c9246e550dfbfca94eb5f
parent9d5ad5e45fe40a24ceb11d6f9b046d8077c90778
[BPF] fix indirect call assembly code

Currently, for indirect call, the assembly code printed out as
  callx <imm>
This is not right, it should be
  callx <reg>

Fixed the issue with proper format.

Differential Revision: https://reviews.llvm.org/D69229

llvm-svn: 375386
llvm/lib/Target/BPF/BPFInstrInfo.td
llvm/test/CodeGen/BPF/callx.ll [new file with mode: 0644]