[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/13827] New: z8k sout and soutb instructions -- special bit not
From: |
theyelesoms at bellsouth dot net |
Subject: |
[Bug gas/13827] New: z8k sout and soutb instructions -- special bit not set |
Date: |
Sat, 10 Mar 2012 03:26:33 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13827
Bug #: 13827
Summary: z8k sout and soutb instructions -- special bit not set
Product: binutils
Version: 2.23 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: gas
AssignedTo: address@hidden
ReportedBy: address@hidden
Classification: Unclassified
The assembler generates incorrect values for the z8k's sout and soutb
instructions. The special bit is not set as it should be, so the instructions
are effectively translated to out and outb.
>From what I can tell, z8k-opc.h is generated from information in z8kgen.c, so
here is a patch for that file:
--- z8kgen.c 2012-03-09 22:21:32.859375000 -0500
+++ z8kgen.c.fixed 2012-03-09 22:22:12.078125000 -0500
@@ -458,8 +458,8 @@
{"CZS---", 13, 8, "1011 0010 dddd 0001 iiii iiii 0000 imm4", "sllb
rbd,imm4", 0},
{"CZS---", 13, 32, "1011 0011 dddd 0101 0000 0000 imm8", "slll rrd,imm8",
0},
- {"------", 12, 16, "0011 1011 ssss 0110 imm16", "sout imm16,rs", 0},
- {"------", 12, 8, "0011 1010 ssss 0110 imm16", "soutb imm16,rbs", 0},
+ {"------", 12, 16, "0011 1011 ssss 0111 imm16", "sout imm16,rs", 0},
+ {"------", 12, 8, "0011 1010 ssss 0111 imm16", "soutb imm16,rbs", 0},
{"---V--", 21, 16, "0011 1011 ssN0 1011 0000 aaaa dddd 1000", "soutd
@ro,@rs,ra", 0},
{"---V--", 21, 8, "0011 1010 ssN0 1011 0000 aaaa dddd 1000", "soutdb
@ro,@rs,ra", 0},
{"---V--", 11, 16, "0011 1011 ssN0 1011 0000 aaaa dddd 0000", "sotdr
@ro,@rs,ra", 0},
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug gas/13827] New: z8k sout and soutb instructions -- special bit not set,
theyelesoms at bellsouth dot net <=