History

arm: force rounding towards zero on cast to integer with VFP

Cast to integer should not be affected by the current rounding mode as set by fesetround.

Daniel Glöckner committed 13 years ago

Commit 61a4fd11 parent f7f60251 file · +1 −1Browse files

Unified · Split

arm-gen.c+1−1
@@ -1926,7 +1926,7 @@ void gen_cvt_ftoi(int t) · 1925 unmodified lines
1926#ifdef TCC_ARM_VFP1926#ifdef TCC_ARM_VFP
1927 r=vfpr(gv(RC_FLOAT));1927 r=vfpr(gv(RC_FLOAT));
1928 u=u?0:0x10000;1928 u=u?0:0x10000;
1929 o(0xEEBC0A40|(r<<12)|r|T2CPR(r2)|u); /* ftoXiY */1929 o(0xEEBC0AC0|(r<<12)|r|T2CPR(r2)|u); /* ftoXizY */
1930 r2=intr(vtop->r=get_reg(RC_INT));1930 r2=intr(vtop->r=get_reg(RC_INT));
1931 o(0xEE100A10|(r<<16)|(r2<<12));1931 o(0xEE100A10|(r<<16)|(r2<<12));
1932 return;1932 return;

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