diff options
author | Richard Stallman <rms@gnu.org> | 1993-06-01 22:53:54 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-06-01 22:53:54 +0000 |
commit | 800713ef8f004875d31a242854c3513bb05f55b3 (patch) | |
tree | 5471f0feeaf9bcf2340510af32f0182c3207387a | |
parent | f929db3a12cd74c75212aed5ad4b508ad2d90a9f (diff) | |
download | gcc-800713ef8f004875d31a242854c3513bb05f55b3.zip gcc-800713ef8f004875d31a242854c3513bb05f55b3.tar.gz gcc-800713ef8f004875d31a242854c3513bb05f55b3.tar.bz2 |
(extendsidi2): Correctly do operation when in FP
registers and, since expensive, don't have FP regs as a preference.
From-SVN: r4624
-rw-r--r-- | gcc/config/alpha/alpha.md | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/alpha/alpha.md b/gcc/config/alpha/alpha.md index 89fe2c3..f545e63 100644 --- a/gcc/config/alpha/alpha.md +++ b/gcc/config/alpha/alpha.md @@ -73,15 +73,16 @@ ;; Note that we can do sign extensions in both FP and integer registers. ;; However, the result must be in the same type of register as the input. ;; The register preferencing code can't handle this case very well, so, for -;; now, don't let the FP case show up here for preferencing. +;; now, don't let the FP case show up here for preferencing. Also, +;; sign-extends in FP registers take two instructions. (define_insn "extendsidi2" - [(set (match_operand:DI 0 "register_operand" "=r,r,f") - (sign_extend:DI (match_operand:SI 1 "nonimmediate_operand" "r,m,f")))] + [(set (match_operand:DI 0 "register_operand" "=r,r,*f") + (sign_extend:DI (match_operand:SI 1 "nonimmediate_operand" "r,m,*f")))] "" "@ addl %1,$31,%0 ldl %0,%1 - cvtlq %1,%0" + cvtql %1,%0\;cvtlq %0,%0" [(set_attr "type" "iaddlog,ld,fpop")]) (define_insn "addsi3" |