summaryrefslogtreecommitdiff
path: root/gcc/regclass.c
diff options
context:
space:
mode:
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-23 20:51:00 +0000
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-23 20:51:00 +0000
commit22dd8d0e994c4b8d65d141c2b6d94c8e3f09a473 (patch)
treea5d5505e1aa6fa31c9ad1126476f0b586999ccb8 /gcc/regclass.c
parent93d627796dd901116f3f62a3c73bbb054da7cdfe (diff)
downloadgcc-22dd8d0e994c4b8d65d141c2b6d94c8e3f09a473.tar.gz
* recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
(constrain_operands): Likewise. * regclass.c (record_reg_classes): Likewise. * reload.c (find_reloads): Likewise. * doc/md.texi: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55689 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r--gcc/regclass.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 08051cdb642..1451f8a4a75 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -1635,7 +1635,10 @@ record_reg_classes (n_alts, n_ops, ops, modes,
case 'E':
case 'F':
- if (GET_CODE (op) == CONST_DOUBLE)
+ if (GET_CODE (op) == CONST_DOUBLE
+ || (GET_CODE (op) == CONST_VECTOR
+ && (GET_MODE_CLASS (GET_MODE (op))
+ == MODE_VECTOR_FLOAT)))
win = 1;
break;