• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revisiond8e7020fd6fadafc86faf10ebe241fcf38927815 (tree)
Zeit2000-04-09 18:04:54
AutorAlexandre Oliva <aoliva@redh...>
CommiterAlexandre Oliva

Log Message

* am33.igen: Make SP-relative offsets unsigned. Add *am33' for
some instructions that were missing it.

Ändern Zusammenfassung

Diff

--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,8 @@
1+2000-04-09 Alexandre Oliva <aoliva@cygnus.com>
2+
3+ * am33.igen: Make SP-relative offsets unsigned. Add `*am33' for
4+ some instructions that were missing it.
5+
16 2000-03-03 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
27
38 * Makefile.in (IGEN_INSN): Added am33.igen.
--- a/sim/mn10300/am33.igen
+++ b/sim/mn10300/am33.igen
@@ -1911,6 +1911,7 @@
19111911 // 1111 1011 0001 1010 Rn Rm IMM8; mov Rm,(d8,Rn)
19121912 8.0xfb+8.0x1a+4.RM2,4.RN0+8.IMM8:D2m:::mov
19131913 "mov"
1914+*am33
19141915 {
19151916 int srcreg, dstreg;
19161917
@@ -1923,6 +1924,7 @@
19231924 // 1111 1011 0010 1010 Rn Rm IMM8; movbu (d8,Rm),Rn
19241925 8.0xfb+8.0x2a+4.RN2,4.RM0+8.IMM8:D2l:::movbu
19251926 "movbu"
1927+*am33
19261928 {
19271929 int srcreg, dstreg;
19281930
@@ -1935,6 +1937,7 @@
19351937 // 1111 1011 0011 1010 Rn Rm IMM8; movbu Rm,(d8,Rn)
19361938 8.0xfb+8.0x3a+4.RM2,4.RN0+8.IMM8:D2m:::movbu
19371939 "movbu"
1940+*am33
19381941 {
19391942 int srcreg, dstreg;
19401943
@@ -1947,6 +1950,7 @@
19471950 // 1111 1011 0100 1010 Rn Rm IMM8; movhu (d8,Rm),Rn
19481951 8.0xfb+8.0x4a+4.RN2,4.RM0+8.IMM8:D2l:::movhu
19491952 "movhu"
1953+*am33
19501954 {
19511955 int srcreg, dstreg;
19521956
@@ -1959,6 +1963,7 @@
19591963 // 1111 1011 0101 1010 Rn Rm IMM8; movhu Rm,(d8,Rn)
19601964 8.0xfb+8.0x5a+4.RM2,4.RN0+8.IMM8:D2m:::movhu
19611965 "movhu"
1966+*am33
19621967 {
19631968 int srcreg, dstreg;
19641969
@@ -1985,6 +1990,7 @@
19851990 // 1111 1011 0111 1010 Rn Rm IMM8; mov Rm,(d8,Rn+)
19861991 8.0xfb+8.0x7a+4.RM2,4.RN0+8.IMM8:D2z:::mov
19871992 "mov"
1993+*am33
19881994 {
19891995 int srcreg, dstreg;
19901996
@@ -1999,17 +2005,19 @@
19992005 // 1111 1011 1000 1010 Rn 0000 IMM8; mov (d8,sp),Rn
20002006 8.0xfb+8.0x8a+4.RN2,4.0x0+8.IMM8:D2n:::mov
20012007 "mov"
2008+*am33
20022009 {
20032010 int dstreg;
20042011
20052012 PC = cia;
20062013 dstreg = translate_rreg (SD_, RN2);
2007- State.regs[dstreg] = load_word (State.regs[REG_SP] + EXTEND8 (IMM8));
2014+ State.regs[dstreg] = load_word (State.regs[REG_SP] + IMM8);
20082015 }
20092016
20102017 // 1111 1011 1001 1010 Rm 0000 IMM8; mov Rm,(d8,Rn)
20112018 8.0xfb+8.0x9a+4.RM2,4.0x0+8.IMM8:D2o:::mov
20122019 "mov"
2020+*am33
20132021 {
20142022 int srcreg;
20152023
@@ -2021,17 +2029,19 @@
20212029 // 1111 1011 1010 1010 Rn Rm IMM8; movbu (d8,sp),Rn
20222030 8.0xfb+8.0xaa+4.RN2,4.0x0+8.IMM8:D2n:::movbu
20232031 "movbu"
2032+*am33
20242033 {
20252034 int dstreg;
20262035
20272036 PC = cia;
20282037 dstreg = translate_rreg (SD_, RN2);
2029- State.regs[dstreg] = load_byte (State.regs[REG_SP] + EXTEND8 (IMM8));
2038+ State.regs[dstreg] = load_byte (State.regs[REG_SP] + IMM8);
20302039 }
20312040
20322041 // 1111 1011 1011 1010 Rn Rm IMM8; movbu Rm,(sp,Rn)
20332042 8.0xfb+8.0xba+4.RM2,4.0x0+8.IMM8:D2o:::movbu
20342043 "movbu"
2044+*am33
20352045 {
20362046 int srcreg;
20372047
@@ -2043,23 +2053,25 @@
20432053 // 1111 1011 1100 1010 Rn Rm IMM8; movhu (d8,sp),Rn
20442054 8.0xfb+8.0xca+4.RN2,4.0x0+8.IMM8:D2n:::movhu
20452055 "movhu"
2056+*am33
20462057 {
20472058 int dstreg;
20482059
20492060 PC = cia;
20502061 dstreg = translate_rreg (SD_, RN2);
2051- State.regs[dstreg] = load_half (State.regs[REG_SP] + EXTEND8 (IMM8));
2062+ State.regs[dstreg] = load_half (State.regs[REG_SP] + IMM8);
20522063 }
20532064
20542065 // 1111 1011 1101 1010 Rn Rm IMM8; movhu Rm,(d8,sp)
20552066 8.0xfb+8.0xda+4.RM2,4.0x0+8.IMM8:D2o:::movhu
20562067 "movhu"
2068+*am33
20572069 {
20582070 int srcreg;
20592071
20602072 PC = cia;
20612073 srcreg = translate_rreg (SD_, RM2);
2062- store_half (State.regs[REG_SP] + EXTEND8 (IMM8), State.regs[srcreg]);
2074+ store_half (State.regs[REG_SP] + IMM8, State.regs[srcreg]);
20632075 }
20642076
20652077 // 1111 1011 1110 1010 Rn Rm IMM8; movhu (d8,Rm+),Rn
@@ -2079,6 +2091,7 @@
20792091 // 1111 1011 1111 1010 Rn Rm IMM8; movhu Rm,(d8,Rn+)
20802092 8.0xfb+8.0xfa+4.RM2,4.RN0+8.IMM8:D2z:::movhu
20812093 "movhu"
2094+*am33
20822095 {
20832096 int srcreg, dstreg;
20842097
@@ -2093,6 +2106,7 @@
20932106 // 1111 1011 0000 1011 Rn Rn IMM8; mac imm8,Rn
20942107 8.0xfb+8.0x0b+4.RN2,4.RN0=RN2+8.IMM8:D2:::mac
20952108 "mac"
2109+*am33
20962110 {
20972111 int srcreg;
20982112 long long temp, sum;
@@ -2119,6 +2133,7 @@
21192133 // 1111 1011 0001 1011 Rn Rn IMM8; macu imm8,Rn
21202134 8.0xfb+8.0x1b+4.RN2,4.RN0=RN2+8.IMM8:D2:::macu
21212135 "macu"
2136+*am33
21222137 {
21232138 int srcreg;
21242139 long long temp, sum;
@@ -2145,6 +2160,7 @@
21452160 // 1111 1011 0010 1011 Rn Rn IMM8; macb imm8,Rn
21462161 8.0xfb+8.0x2b+4.RN2,4.RN0=RN2+8.IMM8:D2:::macb
21472162 "macb"
2163+*am33
21482164 {
21492165 int srcreg;
21502166 long long temp, sum;
@@ -2171,6 +2187,7 @@
21712187 // 1111 1011 0011 1011 Rn Rn IMM8; macbu imm8,Rn
21722188 8.0xfb+8.0x3b+4.RN2,4.RN0=RN2+8.IMM8:D2:::macbu
21732189 "macbu"
2190+*am33
21742191 {
21752192 int srcreg;
21762193 long long temp, sum;
@@ -2197,6 +2214,7 @@
21972214 // 1111 1011 0100 1011 Rn Rn IMM8; mach imm8,Rn
21982215 8.0xfb+8.0x4b+4.RN2,4.RN0=RN2+8.IMM8:D2:::mach
21992216 "mach"
2217+*am33
22002218 {
22012219 int srcreg;
22022220 long long temp, sum;
@@ -2223,6 +2241,7 @@
22232241 // 1111 1011 0101 1011 Rn Rn IMM8; machu imm8,Rn
22242242 8.0xfb+8.0x5b+4.RN2,4.RN0=RN2+8.IMM8:D2:::machu
22252243 "machu"
2244+*am33
22262245 {
22272246 int srcreg;
22282247 long long temp, sum;
@@ -2249,6 +2268,7 @@
22492268 // 1111 1011 1011 1011 Rn Rn IMM8; mcste imm8,Rn
22502269 8.0xfb+8.0xbb+4.RN2,4.RN0=RN2+8.IMM8:D2:::mcste
22512270 "mcste"
2271+*am33
22522272 {
22532273 int dstreg;
22542274
@@ -3588,8 +3608,7 @@
35883608 PC = cia;
35893609 dstreg = translate_rreg (SD_, RN2);
35903610 State.regs[dstreg] = load_word (State.regs[REG_SP]
3591- + EXTEND24 (FETCH24 (IMM24A,
3592- IMM24B, IMM24C)));
3611+ + FETCH24 (IMM24A, IMM24B, IMM24C));
35933612 }
35943613
35953614 // 1111 1101 1001 1010 Rm 0000 IMM24; mov Rm,(d24,sp)
@@ -3601,7 +3620,7 @@
36013620
36023621 PC = cia;
36033622 srcreg = translate_rreg (SD_, RM2);
3604- store_word (State.regs[REG_SP] + EXTEND24 (FETCH24 (IMM24A, IMM24B, IMM24C)),
3623+ store_word (State.regs[REG_SP] + FETCH24 (IMM24A, IMM24B, IMM24C),
36053624 State.regs[srcreg]);
36063625 }
36073626
@@ -3628,7 +3647,7 @@
36283647
36293648 PC = cia;
36303649 srcreg = translate_rreg (SD_, RM2);
3631- store_byte (State.regs[REG_SP] + EXTEND24 (FETCH24 (IMM24A, IMM24B, IMM24C)),
3650+ store_byte (State.regs[REG_SP] + FETCH24 (IMM24A, IMM24B, IMM24C),
36323651 State.regs[srcreg]);
36333652 }
36343653
@@ -3642,8 +3661,7 @@
36423661 PC = cia;
36433662 dstreg = translate_rreg (SD_, RN2);
36443663 State.regs[dstreg] = load_half (State.regs[REG_SP]
3645- + EXTEND24 (FETCH24 (IMM24A,
3646- IMM24B, IMM24C)));
3664+ + FETCH24 (IMM24A, IMM24B, IMM24C));
36473665 }
36483666
36493667 // 1111 1101 1101 1010 Rm Rn IMM24; movhu Rm,(d24,sp)
@@ -3655,7 +3673,7 @@
36553673
36563674 PC = cia;
36573675 srcreg = translate_rreg (SD_, RM2);
3658- store_half (State.regs[REG_SP] + EXTEND24 (FETCH24 (IMM24A, IMM24B, IMM24C)),
3676+ store_half (State.regs[REG_SP] + FETCH24 (IMM24A, IMM24B, IMM24C),
36593677 State.regs[srcreg]);
36603678 }
36613679