mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-11-16 12:34:43 +00:00
cpu,opcodes,gas: fix neg and neg32 instructions in BPF
This patch fixes the neg/neg32 BPF instructions, which have K (=0) instead of X (=1) in their header source bit, despite operating on registes. cpu/ChangeLog: 2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com> * bpf.cpu (define-alu-insn-un): The unary BPF instructions (neg and neg32) use OP_SRC_K even if they operate only in registers. opcodes/ChangeLog: 2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com> * bpf-opc.c: Regenerate. gas/ChangeLog: 2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com> * testsuite/gas/bpf/alu.d: Update expected opcode for `neg'. * testsuite/gas/bpf/alu-be.d: Likewise. * testsuite/gas/bpf/alu32.d: Likewise for `neg32'. * testsuite/gas/bpf/alu32-be.d: Likewise.
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2020-01-30 Jose E. Marchesi <jose.marchesi@oracle.com>
|
||||
|
||||
* bpf.cpu (define-alu-insn-un): The unary BPF instructions
|
||||
(neg and neg32) use OP_SRC_K even if they operate only in
|
||||
registers.
|
||||
|
||||
2020-01-18 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
Binutils 2.34 branch created.
|
||||
|
||||
@@ -373,7 +373,7 @@
|
||||
((ISA (.sym ebpf x-endian)))
|
||||
(.str x-basename x-suffix " $dst" x-endian)
|
||||
(+ (f-imm32 0) (f-offset16 0) ((.sym f-src x-endian) 0) (.sym dst x-endian)
|
||||
x-op-class OP_SRC_X x-op-code) () ()))
|
||||
x-op-class OP_SRC_K x-op-code) () ()))
|
||||
|
||||
(define-pmacro (define-alu-insn-bin x-basename x-suffix x-op-class x-op-code x-endian)
|
||||
(begin
|
||||
|
||||
Reference in New Issue
Block a user