gensupport.c (process_one_cond_exec): Derive name for COND_EXEC patterns from predicated pattern.
* gensupport.c (process_one_cond_exec): Derive name for COND_EXEC patterns from predicated pattern. From-SVN: r156831
This commit is contained in:
parent
ce4674f2a6
commit
2f6c5b27e0
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
|
||||
|
||||
* gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
|
||||
patterns from predicated pattern.
|
||||
|
||||
2010-02-17 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR target/43103
|
||||
|
|
|
@ -780,6 +780,7 @@ process_one_cond_exec (struct queue_elem *ce_elem)
|
|||
{
|
||||
int alternatives, max_operand;
|
||||
rtx pred, insn, pattern, split;
|
||||
char *new_name;
|
||||
int i;
|
||||
|
||||
if (! is_predicable (insn_elem))
|
||||
|
@ -806,7 +807,9 @@ process_one_cond_exec (struct queue_elem *ce_elem)
|
|||
|
||||
/* Construct a new pattern for the new insn. */
|
||||
insn = copy_rtx (insn_elem->data);
|
||||
XSTR (insn, 0) = "";
|
||||
new_name = XNEWVAR (char, strlen XSTR (insn_elem->data, 0) + 4);
|
||||
sprintf (new_name, "*p %s", XSTR (insn_elem->data, 0));
|
||||
XSTR (insn, 0) = new_name;
|
||||
pattern = rtx_alloc (COND_EXEC);
|
||||
XEXP (pattern, 0) = pred;
|
||||
if (XVECLEN (insn, 1) == 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue