Mercurial > hg > CbC > old > device
changeset 869:11add9567972
adhoc fix on builtin_inff etc.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 01 Apr 2014 09:14:52 +0900 |
parents | c55337499f96 |
children | e3de6b70abe9 |
files | mc-code-i64.c mc-code-ia32.c |
diffstat | 2 files changed, 16 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mc-code-i64.c Tue Apr 01 02:42:22 2014 +0900 +++ b/mc-code-i64.c Tue Apr 01 09:14:52 2014 +0900 @@ -3957,18 +3957,26 @@ void code_builtin_fabsf(int e) { + int e1 = USE_CREG; + use_float(0,e1); } void code_builtin_fabs(int e) { + int e1 = USE_CREG; + use_float(1,e1); } void code_builtin_inff() { + int e1 = USE_CREG; + use_float(0,e1); } void code_builtin_inf() { + int e1 = USE_CREG; + use_float(1,e1); } void code_dneg(int freg,int d)
--- a/mc-code-ia32.c Tue Apr 01 02:42:22 2014 +0900 +++ b/mc-code-ia32.c Tue Apr 01 09:14:52 2014 +0900 @@ -3193,22 +3193,29 @@ #endif } - void code_builtin_fabsf(int e) { + int e1 = USE_CREG; + use_float(0,e1); } void code_builtin_fabs(int e) { + int e1 = USE_CREG; + use_float(1,e1); } void code_builtin_inff() { + int e1 = USE_CREG; + use_float(0,e1); } void code_builtin_inf() { + int e1 = USE_CREG; + use_float(1,e1); } void code_dneg(int freg,int d)