History

i386: fix loading of LLOCAL floats

These loads clobbered ebx as TinyCC wanted to load the address into st0.

Daniel Glöckner committed 14 years ago

Commit 9527c491 parent 3ab269c1 file · +3 −1Browse files

Unified · Split

i386-gen.c+3−1
@@ -229,8 +229,10 @@ ST_FUNC void load(int r, SValue *sv) · 228 unmodified lines
229229 v1.type.t = VT_INT;
230230 v1.r = VT_LOCAL | VT_LVAL;
231231 v1.c.ul = fc;
232− load(r, &v1);
233232 fr = r;
233+ if (!(reg_classes[fr] & RC_INT))
234+ fr = get_reg(RC_INT);
235+ load(fr, &v1);
234236 }
235237 if ((ft & VT_BTYPE) == VT_FLOAT) {
236238 o(0xd9); /* flds */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t