llvm-project/llvm/test/MC/BPF
Yonghong Song e9165f8720 bpf: add new insns for bswap_to_le and negation
This patch adds new insn, "reg = be16/be32/be64 reg",
for bswap to little endian for big-endian target (bpfeb).
It also adds new insn for negation "reg = -reg".

Currently, for source code, e.g.,
  b = -a
LLVM still prefers to generate:
  b = 0 - a
But "reg = -reg" format can be used in assembly code.

Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
llvm-svn: 314376
2017-09-28 02:46:11 +00:00
..
insn-unit-32.s bpf: add new insns for bswap_to_le and negation 2017-09-28 02:46:11 +00:00
insn-unit.s bpf: add new insns for bswap_to_le and negation 2017-09-28 02:46:11 +00:00
lit.local.cfg