mirror of
https://github.com/golang/go
synced 2024-11-22 03:04:41 -07:00
5l: handle jump to middle of floating point sequence
R=ken2 CC=golang-dev https://golang.org/cl/2473042
This commit is contained in:
parent
2012604002
commit
71c4244430
@ -19,8 +19,11 @@ softfloat(void)
|
|||||||
if(symsfloat->type == STEXT)
|
if(symsfloat->type == STEXT)
|
||||||
psfloat = symsfloat->text;
|
psfloat = symsfloat->text;
|
||||||
|
|
||||||
wasfloat = 0;
|
|
||||||
for(cursym = textp; cursym != nil; cursym = cursym->next) {
|
for(cursym = textp; cursym != nil; cursym = cursym->next) {
|
||||||
|
wasfloat = 0;
|
||||||
|
for(p = cursym->text; p != P; p = p->link)
|
||||||
|
if(p->cond != P)
|
||||||
|
p->cond->mark |= LABEL;
|
||||||
for(p = cursym->text; p != P; p = p->link) {
|
for(p = cursym->text; p != P; p = p->link) {
|
||||||
switch(p->as) {
|
switch(p->as) {
|
||||||
case AMOVWD:
|
case AMOVWD:
|
||||||
@ -43,7 +46,7 @@ softfloat(void)
|
|||||||
case ADIVD:
|
case ADIVD:
|
||||||
if (psfloat == P)
|
if (psfloat == P)
|
||||||
diag("floats used with _sfloat not defined");
|
diag("floats used with _sfloat not defined");
|
||||||
if (!wasfloat) {
|
if (!wasfloat || (p->mark&LABEL)) {
|
||||||
next = prg();
|
next = prg();
|
||||||
*next = *p;
|
*next = *p;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user