diff options
author | jwlemke <jwlemke@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-11 17:39:26 +0000 |
---|---|---|
committer | jwlemke <jwlemke@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-11 17:39:26 +0000 |
commit | a2f584ef12f6877e3db45dc3056bc010204784c7 (patch) | |
tree | 10266a0312c5f477c4b0be8ff975bc780ee54f8c /gcc/config/rs6000 | |
parent | 90de4704b8bb70871be0d55aef9f418001c7caf1 (diff) | |
download | gcc-a2f584ef12f6877e3db45dc3056bc010204784c7.tar.gz |
As suggested here:
http://gcc.gnu.org/ml/gcc-patches/2012-10/msg00283.html
The following are committed as obvious / trivial:
* config/rs6000/predicates.md (zero_fp_constant): Fix comment.
* config/rs6000/rs6000.md (return_pred): Fix null return.
* config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
(print_operand): Make FALLTHRU obvious.
(output_cbranch): Correct comment.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192373 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/predicates.md | 1 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.c | 11 | ||||
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 2 |
3 files changed, 6 insertions, 8 deletions
diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md index 12b75275a32..99130ba6eef 100644 --- a/gcc/config/rs6000/predicates.md +++ b/gcc/config/rs6000/predicates.md @@ -490,7 +490,6 @@ (match_test "op == CONST0_RTX (mode)"))) ;; Return 1 if operand is 0.0. -;; or non-special register register field no cr0 (define_predicate "zero_fp_constant" (and (match_code "const_double") (match_test "SCALAR_FLOAT_MODE_P (mode) diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index ced06508e87..b6f3a9c9407 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -6751,7 +6751,7 @@ rs6000_emit_set_const (rtx dest, enum machine_mode mode, switch (mode) { - case QImode: + case QImode: case HImode: if (dest == NULL) dest = gen_reg_rtx (mode); @@ -14990,11 +14990,10 @@ print_operand (FILE *file, rtx x, int code) return; case 'Q': - if (TARGET_MFCRF) - fputc (',', file); - /* FALLTHRU */ - else + if (! TARGET_MFCRF) return; + fputc (',', file); + /* FALLTHRU */ case 'R': /* X is a CR register. Print the mask for `mtcrf'. */ @@ -15939,7 +15938,7 @@ rs6000_emit_cbranch (enum machine_mode mode, rtx operands[]) } /* Return the string to output a conditional branch to LABEL, which is - the operand number of the label, or -1 if the branch is really a + the operand template of the label, or NULL if the branch is really a conditional return. OP is the conditional expression. XEXP (OP, 0) is assumed to be a diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index 4265cb67b0f..96f4f6a8321 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -266,7 +266,7 @@ ; Conditional returns. (define_code_iterator any_return [return simple_return]) (define_code_attr return_pred [(return "direct_return ()") - (simple_return "")]) + (simple_return "1")]) (define_code_attr return_str [(return "") (simple_return "simple_")]) ; Various instructions that come in SI and DI forms. |