1
0
mirror of https://github.com/golang/go synced 2024-11-22 09:24:41 -07:00

cmd/6g, cmd/8g: proginfo carry fixes

Bugs pointed out by cshapiro in CL 12637051.

R=cshapiro
CC=golang-dev
https://golang.org/cl/12815043
This commit is contained in:
Russ Cox 2013-08-12 21:02:55 -04:00
parent b3b87143f2
commit 9a0a59f171
2 changed files with 21 additions and 21 deletions

View File

@ -99,18 +99,18 @@ static ProgInfo progtable[ALAST] = {
[ADECQ]= {SizeQ | RightRdwr},
[ADECW]= {SizeW | RightRdwr},
[ADIVB]= {SizeB | LeftRead, AX, AX},
[ADIVL]= {SizeL | LeftRead, AX|DX, AX|DX},
[ADIVQ]= {SizeQ | LeftRead, AX|DX, AX|DX},
[ADIVW]= {SizeW | LeftRead, AX|DX, AX|DX},
[ADIVB]= {SizeB | LeftRead | SetCarry, AX, AX},
[ADIVL]= {SizeL | LeftRead | SetCarry, AX|DX, AX|DX},
[ADIVQ]= {SizeQ | LeftRead | SetCarry, AX|DX, AX|DX},
[ADIVW]= {SizeW | LeftRead | SetCarry, AX|DX, AX|DX},
[ADIVSD]= {SizeD | LeftRead | RightRdwr},
[ADIVSS]= {SizeF | LeftRead | RightRdwr},
[AIDIVB]= {SizeB | LeftRead, AX, AX},
[AIDIVL]= {SizeL | LeftRead, AX|DX, AX|DX},
[AIDIVQ]= {SizeQ | LeftRead, AX|DX, AX|DX},
[AIDIVW]= {SizeW | LeftRead, AX|DX, AX|DX},
[AIDIVB]= {SizeB | LeftRead | SetCarry, AX, AX},
[AIDIVL]= {SizeL | LeftRead | SetCarry, AX|DX, AX|DX},
[AIDIVQ]= {SizeQ | LeftRead | SetCarry, AX|DX, AX|DX},
[AIDIVW]= {SizeW | LeftRead | SetCarry, AX|DX, AX|DX},
[AIMULB]= {SizeB | LeftRead | SetCarry, AX, AX},
[AIMULL]= {SizeL | LeftRead | ImulAXDX | SetCarry},
@ -262,10 +262,10 @@ static ProgInfo progtable[ALAST] = {
[ASUBSD]= {SizeD | LeftRead | RightRdwr},
[ASUBSS]= {SizeF | LeftRead | RightRdwr},
[ATESTB]= {SizeB | LeftRead | RightRead},
[ATESTL]= {SizeL | LeftRead | RightRead},
[ATESTQ]= {SizeQ | LeftRead | RightRead},
[ATESTW]= {SizeW | LeftRead | RightRead},
[ATESTB]= {SizeB | LeftRead | RightRead | SetCarry},
[ATESTL]= {SizeL | LeftRead | RightRead | SetCarry},
[ATESTQ]= {SizeQ | LeftRead | RightRead | SetCarry},
[ATESTW]= {SizeW | LeftRead | RightRead | SetCarry},
[AUCOMISD]= {SizeD | LeftRead | RightRead},
[AUCOMISS]= {SizeF | LeftRead | RightRead},

View File

@ -87,9 +87,9 @@ static ProgInfo progtable[ALAST] = {
[ADECL]= {SizeL | RightRdwr},
[ADECW]= {SizeW | RightRdwr},
[ADIVB]= {SizeB | LeftRead, AX, AX},
[ADIVL]= {SizeL | LeftRead, AX|DX, AX|DX},
[ADIVW]= {SizeW | LeftRead, AX|DX, AX|DX},
[ADIVB]= {SizeB | LeftRead | SetCarry, AX, AX},
[ADIVL]= {SizeL | LeftRead | SetCarry, AX|DX, AX|DX},
[ADIVW]= {SizeW | LeftRead | SetCarry, AX|DX, AX|DX},
[ADIVSD]= {SizeD | LeftRead | RightRdwr},
[ADIVSS]= {SizeF | LeftRead | RightRdwr},
@ -137,9 +137,9 @@ static ProgInfo progtable[ALAST] = {
[AFMULDP]= {SizeD | LeftAddr | RightRdwr},
[AFMULF]= {SizeF | LeftAddr | RightRdwr},
[AIDIVB]= {SizeB | LeftRead, AX, AX},
[AIDIVL]= {SizeL | LeftRead, AX|DX, AX|DX},
[AIDIVW]= {SizeW | LeftRead, AX|DX, AX|DX},
[AIDIVB]= {SizeB | LeftRead | SetCarry, AX, AX},
[AIDIVL]= {SizeL | LeftRead | SetCarry, AX|DX, AX|DX},
[AIDIVW]= {SizeW | LeftRead | SetCarry, AX|DX, AX|DX},
[AIMULB]= {SizeB | LeftRead | SetCarry, AX, AX},
[AIMULL]= {SizeL | LeftRead | ImulAXDX | SetCarry},
@ -282,9 +282,9 @@ static ProgInfo progtable[ALAST] = {
[ASUBSD]= {SizeD | LeftRead | RightRdwr},
[ASUBSS]= {SizeF | LeftRead | RightRdwr},
[ATESTB]= {SizeB | LeftRead | RightRead},
[ATESTL]= {SizeL | LeftRead | RightRead},
[ATESTW]= {SizeW | LeftRead | RightRead},
[ATESTB]= {SizeB | LeftRead | RightRead | SetCarry},
[ATESTL]= {SizeL | LeftRead | RightRead | SetCarry},
[ATESTW]= {SizeW | LeftRead | RightRead | SetCarry},
[AUCOMISD]= {SizeD | LeftRead | RightRead},
[AUCOMISS]= {SizeF | LeftRead | RightRead},