diff options
author | David S. Miller <davem@davemloft.net> | 2012-08-21 23:00:35 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-21 23:00:35 +0000 |
commit | 85bf7fcf563a8746a1e4072ce4f37dc45d588b27 (patch) | |
tree | 9735e0a921ce25a76f3719d6ee7fa5bad646c383 /include/opcode | |
parent | 03f6bb28633ee46cf3c596b104159529b813067f (diff) | |
download | cygnal-85bf7fcf563a8746a1e4072ce4f37dc45d588b27.tar.gz cygnal-85bf7fcf563a8746a1e4072ce4f37dc45d588b27.tar.bz2 cygnal-85bf7fcf563a8746a1e4072ce4f37dc45d588b27.zip |
Fix sparc opcode encoding for 4-arg crypto instructions.
include/opcode
* sparc.h (F3F4): New macro.
opcodes
* sparc-opc.c (4-argument crypto instructions): Fix encoding using
F3F4 macro.
gas/testsuite
* gas/sparc/crypto.d: Fix opcodes for 4-arg crypto instructions.
Diffstat (limited to 'include/opcode')
-rw-r--r-- | include/opcode/ChangeLog | 4 | ||||
-rw-r--r-- | include/opcode/sparc.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index c847cb284..e0b0673be 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,7 @@ +2012-08-21 David S. Miller <davem@davemloft.net> + + * sparc.h (F3F4): New macro. + 2012-08-13 Ian Bolton <ian.bolton@arm.com> Laurent Desnogues <laurent.desnogues@arm.com> Jim MacArthur <jim.macarthur@arm.com> diff --git a/include/opcode/sparc.h b/include/opcode/sparc.h index b1c5e42ad..892776900 100644 --- a/include/opcode/sparc.h +++ b/include/opcode/sparc.h @@ -234,6 +234,7 @@ typedef struct sparc_opcode #define OPF_LOW5(x) OPF ((x) & 0x1f) /* V9. */ #define OPF_LOW4(x) OPF ((x) & 0xf) /* V9. */ #define F3F(x, y, z) (OP (x) | OP3 (y) | OPF (z)) /* Format3 float insns. */ +#define F3F4(x, y, z) (OP (x) | OP3 (y) | OPF_LOW4 (z)) #define F3I(x) (((x) & 0x1) << 13) /* Immediate field of format 3 insns. */ #define F2(x, y) (OP (x) | OP2(y)) /* Format 2 insns. */ #define F3(x, y, z) (OP (x) | OP3(y) | F3I(z)) /* Format3 insns. */ |