mirror of
https://github.com/golang/go
synced 2024-11-21 21:14:47 -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)
|
||||
psfloat = symsfloat->text;
|
||||
|
||||
wasfloat = 0;
|
||||
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) {
|
||||
switch(p->as) {
|
||||
case AMOVWD:
|
||||
@ -43,7 +46,7 @@ softfloat(void)
|
||||
case ADIVD:
|
||||
if (psfloat == P)
|
||||
diag("floats used with _sfloat not defined");
|
||||
if (!wasfloat) {
|
||||
if (!wasfloat || (p->mark&LABEL)) {
|
||||
next = prg();
|
||||
*next = *p;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user