summaryrefslogtreecommitdiff
path: root/gcc/genopinit.c
diff options
context:
space:
mode:
authordpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-28 00:13:12 +0000
committerdpatel <dpatel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-28 00:13:12 +0000
commit6b7acc28494ae8de5616895bd43ff652b08db4ef (patch)
treed499fabff1893bbf2a9b76b6065afdd79d7c845b /gcc/genopinit.c
parent01ff45405b5a53582bf0938fecf5d7473bf0f3e1 (diff)
downloadgcc-6b7acc28494ae8de5616895bd43ff652b08db4ef.tar.gz
* expr.c (expand_expr_real_1): Handle VEC_COND_EXPR.
* genopinit.c (optabs): New entry for vcond_gen_code and vcondu_gen_code. * optabs.c (vcond_gen_code, vcondu_gen_code): New optabs. (get_rtx_code): New function. (vector_compare_rtx): New function. (init_optabs): Initialize vcond_gen_code and vcondu_gen_code. (expand_vec_cond_expr_p): New function. (expand_vec_cond_expr): New function. (get_vcond_icode): New function. * optabs.h (expand_vec_cond_expr, expand_vec_cond_expr_p): New externs. (vcond_gen_code, vcondu_gen_code): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@88209 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genopinit.c')
-rw-r--r--gcc/genopinit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/genopinit.c b/gcc/genopinit.c
index 0d39f67ef75..8c6c8feb292 100644
--- a/gcc/genopinit.c
+++ b/gcc/genopinit.c
@@ -171,7 +171,9 @@ static const char * const optabs[] =
"vec_extract_optab->handlers[$A].insn_code = CODE_FOR_$(vec_extract$a$)",
"vec_init_optab->handlers[$A].insn_code = CODE_FOR_$(vec_init$a$)",
"vec_realign_store_optab->handlers[$A].insn_code = CODE_FOR_$(vec_realign_store_$a$)",
- "vec_realign_load_optab->handlers[$A].insn_code = CODE_FOR_$(vec_realign_load_$a$)" };
+ "vec_realign_load_optab->handlers[$A].insn_code = CODE_FOR_$(vec_realign_load_$a$)",
+ "vcond_gen_code[$A] = CODE_FOR_$(vcond$a$)",
+ "vcondu_gen_code[$A] = CODE_FOR_$(vcondu$a$)" };
static void gen_insn (rtx);