diff options
author | Alexandre Oliva <aoliva@cygnus.com> | 2000-05-20 23:05:59 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2000-05-20 23:05:59 +0000 |
commit | 212bc5fad9dec246a6bc2c2228d01c3a01361e38 (patch) | |
tree | 27ff2933a8b8d3766088f082ac8e3c703fd06230 /gcc/config/mn10300 | |
parent | 7f251deef07f33de59e7e934ffb66c715ae95231 (diff) | |
download | gcc-212bc5fad9dec246a6bc2c2228d01c3a01361e38.zip gcc-212bc5fad9dec246a6bc2c2228d01c3a01361e38.tar.gz gcc-212bc5fad9dec246a6bc2c2228d01c3a01361e38.tar.bz2 |
mn10300.md (movdi, movdf): 64-bit clean-up.
* config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
* config/mn10300/mn10300.c (print_operand): Likewise.
From-SVN: r34062
Diffstat (limited to 'gcc/config/mn10300')
-rw-r--r-- | gcc/config/mn10300/mn10300.c | 20 | ||||
-rw-r--r-- | gcc/config/mn10300/mn10300.md | 12 |
2 files changed, 21 insertions, 11 deletions
diff --git a/gcc/config/mn10300/mn10300.c b/gcc/config/mn10300/mn10300.c index 8104a50..fcd86a2 100644 --- a/gcc/config/mn10300/mn10300.c +++ b/gcc/config/mn10300/mn10300.c @@ -177,8 +177,12 @@ print_operand (file, x, code) } case CONST_INT: - print_operand_address (file, x); - break; + { + rtx low, high; + split_double (x, &low, &high); + fprintf (file, "%ld", (long)INTVAL (low)); + break; + } default: abort (); @@ -231,11 +235,13 @@ print_operand (file, x, code) } case CONST_INT: - if (INTVAL (x) < 0) - print_operand_address (file, GEN_INT (-1)); - else - print_operand_address (file, GEN_INT (0)); - break; + { + rtx low, high; + split_double (x, &low, &high); + fprintf (file, "%ld", (long)INTVAL (high)); + break; + } + default: abort (); } diff --git a/gcc/config/mn10300/mn10300.md b/gcc/config/mn10300/mn10300.md index 3accb09..125815b 100644 --- a/gcc/config/mn10300/mn10300.md +++ b/gcc/config/mn10300/mn10300.md @@ -419,8 +419,10 @@ case 11: if (GET_CODE (operands[1]) == CONST_INT) { - val[0] = INTVAL (operands[1]); - val[1] = val[0] < 0 ? -1 : 0; + rtx low, high; + split_double (operands[1], &low, &high); + val[0] = INTVAL (low); + val[1] = INTVAL (high); } if (GET_CODE (operands[1]) == CONST_DOUBLE) { @@ -567,8 +569,10 @@ case 11: if (GET_CODE (operands[1]) == CONST_INT) { - val[0] = INTVAL (operands[1]); - val[1] = val[0] < 0 ? -1 : 0; + rtx low, high; + split_double (operands[1], &low, &high); + val[0] = INTVAL (low); + val[1] = INTVAL (high); } if (GET_CODE (operands[1]) == CONST_DOUBLE) { |