Commit b65261f6 by Segher Boessenkool Committed by Segher Boessenkool

rs6000: Rename 74 -> CR6_REGNO


	* config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
	* config/rs6000/vector.md: Ditto.
	* config/rs6000/vsx.md: Ditto.

From-SVN: r239946
parent 7e89048d
2016-09-01 Segher Boessenkool <segher@kernel.crashing.org>
* config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
* config/rs6000/vector.md: Ditto.
* config/rs6000/vsx.md: Ditto.
2016-09-01 Eric Botcazou <ebotcazou@adacore.com> 2016-09-01 Eric Botcazou <ebotcazou@adacore.com>
* ipa-inline-analysis.c (param_change_prob): Get to the base object * ipa-inline-analysis.c (param_change_prob): Get to the base object
......
...@@ -2274,7 +2274,7 @@ ...@@ -2274,7 +2274,7 @@
;; Compare vectors producing a vector result and a predicate, setting CR6 to ;; Compare vectors producing a vector result and a predicate, setting CR6 to
;; indicate a combined status ;; indicate a combined status
(define_insn "*altivec_vcmpequ<VI_char>_p" (define_insn "*altivec_vcmpequ<VI_char>_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(eq:CC (match_operand:VI2 1 "register_operand" "v") (unspec:CC [(eq:CC (match_operand:VI2 1 "register_operand" "v")
(match_operand:VI2 2 "register_operand" "v"))] (match_operand:VI2 2 "register_operand" "v"))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -2286,7 +2286,7 @@ ...@@ -2286,7 +2286,7 @@
[(set_attr "type" "veccmpfx")]) [(set_attr "type" "veccmpfx")])
(define_insn "*altivec_vcmpgts<VI_char>_p" (define_insn "*altivec_vcmpgts<VI_char>_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(gt:CC (match_operand:VI2 1 "register_operand" "v") (unspec:CC [(gt:CC (match_operand:VI2 1 "register_operand" "v")
(match_operand:VI2 2 "register_operand" "v"))] (match_operand:VI2 2 "register_operand" "v"))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -2298,7 +2298,7 @@ ...@@ -2298,7 +2298,7 @@
[(set_attr "type" "veccmpfx")]) [(set_attr "type" "veccmpfx")])
(define_insn "*altivec_vcmpgtu<VI_char>_p" (define_insn "*altivec_vcmpgtu<VI_char>_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(gtu:CC (match_operand:VI2 1 "register_operand" "v") (unspec:CC [(gtu:CC (match_operand:VI2 1 "register_operand" "v")
(match_operand:VI2 2 "register_operand" "v"))] (match_operand:VI2 2 "register_operand" "v"))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -2310,7 +2310,7 @@ ...@@ -2310,7 +2310,7 @@
[(set_attr "type" "veccmpfx")]) [(set_attr "type" "veccmpfx")])
(define_insn "*altivec_vcmpeqfp_p" (define_insn "*altivec_vcmpeqfp_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(eq:CC (match_operand:V4SF 1 "register_operand" "v") (unspec:CC [(eq:CC (match_operand:V4SF 1 "register_operand" "v")
(match_operand:V4SF 2 "register_operand" "v"))] (match_operand:V4SF 2 "register_operand" "v"))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -2322,7 +2322,7 @@ ...@@ -2322,7 +2322,7 @@
[(set_attr "type" "veccmp")]) [(set_attr "type" "veccmp")])
(define_insn "*altivec_vcmpgtfp_p" (define_insn "*altivec_vcmpgtfp_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(gt:CC (match_operand:V4SF 1 "register_operand" "v") (unspec:CC [(gt:CC (match_operand:V4SF 1 "register_operand" "v")
(match_operand:V4SF 2 "register_operand" "v"))] (match_operand:V4SF 2 "register_operand" "v"))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -2334,7 +2334,7 @@ ...@@ -2334,7 +2334,7 @@
[(set_attr "type" "veccmp")]) [(set_attr "type" "veccmp")])
(define_insn "*altivec_vcmpgefp_p" (define_insn "*altivec_vcmpgefp_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(ge:CC (match_operand:V4SF 1 "register_operand" "v") (unspec:CC [(ge:CC (match_operand:V4SF 1 "register_operand" "v")
(match_operand:V4SF 2 "register_operand" "v"))] (match_operand:V4SF 2 "register_operand" "v"))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -2346,7 +2346,7 @@ ...@@ -2346,7 +2346,7 @@
[(set_attr "type" "veccmp")]) [(set_attr "type" "veccmp")])
(define_insn "altivec_vcmpbfp_p" (define_insn "altivec_vcmpbfp_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(match_operand:V4SF 1 "register_operand" "v") (unspec:CC [(match_operand:V4SF 1 "register_operand" "v")
(match_operand:V4SF 2 "register_operand" "v")] (match_operand:V4SF 2 "register_operand" "v")]
UNSPEC_VCMPBFP)) UNSPEC_VCMPBFP))
...@@ -3634,7 +3634,7 @@ ...@@ -3634,7 +3634,7 @@
(match_operand:V1TI 2 "register_operand" "") (match_operand:V1TI 2 "register_operand" "")
(match_operand:QI 3 "const_0_to_1_operand" "")] (match_operand:QI 3 "const_0_to_1_operand" "")]
UNSPEC_BCD_ADD_SUB)) UNSPEC_BCD_ADD_SUB))
(clobber (reg:CCFP 74))] (clobber (reg:CCFP CR6_REGNO))]
"TARGET_P8_VECTOR" "TARGET_P8_VECTOR"
"bcd<bcd_add_sub>. %0,%1,%2,%3" "bcd<bcd_add_sub>. %0,%1,%2,%3"
[(set_attr "length" "4") [(set_attr "length" "4")
...@@ -3646,7 +3646,7 @@ ...@@ -3646,7 +3646,7 @@
;; probably should be one that can go in the VMX (Altivec) registers, so we ;; probably should be one that can go in the VMX (Altivec) registers, so we
;; can't use DDmode or DFmode. ;; can't use DDmode or DFmode.
(define_insn "*bcd<bcd_add_sub>_test" (define_insn "*bcd<bcd_add_sub>_test"
[(set (reg:CCFP 74) [(set (reg:CCFP CR6_REGNO)
(compare:CCFP (compare:CCFP
(unspec:V2DF [(match_operand:V1TI 1 "register_operand" "v") (unspec:V2DF [(match_operand:V1TI 1 "register_operand" "v")
(match_operand:V1TI 2 "register_operand" "v") (match_operand:V1TI 2 "register_operand" "v")
...@@ -3665,7 +3665,7 @@ ...@@ -3665,7 +3665,7 @@
(match_operand:V1TI 2 "register_operand" "v") (match_operand:V1TI 2 "register_operand" "v")
(match_operand:QI 3 "const_0_to_1_operand" "i")] (match_operand:QI 3 "const_0_to_1_operand" "i")]
UNSPEC_BCD_ADD_SUB)) UNSPEC_BCD_ADD_SUB))
(set (reg:CCFP 74) (set (reg:CCFP CR6_REGNO)
(compare:CCFP (compare:CCFP
(unspec:V2DF [(match_dup 1) (unspec:V2DF [(match_dup 1)
(match_dup 2) (match_dup 2)
...@@ -3699,7 +3699,7 @@ ...@@ -3699,7 +3699,7 @@
[(set_attr "type" "integer")]) [(set_attr "type" "integer")])
(define_expand "bcd<bcd_add_sub>_<code>" (define_expand "bcd<bcd_add_sub>_<code>"
[(parallel [(set (reg:CCFP 74) [(parallel [(set (reg:CCFP CR6_REGNO)
(compare:CCFP (compare:CCFP
(unspec:V2DF [(match_operand:V1TI 1 "register_operand" "") (unspec:V2DF [(match_operand:V1TI 1 "register_operand" "")
(match_operand:V1TI 2 "register_operand" "") (match_operand:V1TI 2 "register_operand" "")
...@@ -3708,7 +3708,7 @@ ...@@ -3708,7 +3708,7 @@
(match_dup 4))) (match_dup 4)))
(clobber (match_scratch:V1TI 5 ""))]) (clobber (match_scratch:V1TI 5 ""))])
(set (match_operand:SI 0 "register_operand" "") (set (match_operand:SI 0 "register_operand" "")
(BCD_TEST:SI (reg:CCFP 74) (BCD_TEST:SI (reg:CCFP CR6_REGNO)
(const_int 0)))] (const_int 0)))]
"TARGET_P8_VECTOR" "TARGET_P8_VECTOR"
{ {
...@@ -3727,8 +3727,8 @@ ...@@ -3727,8 +3727,8 @@
(match_operand:V1TI 2 "register_operand" "") (match_operand:V1TI 2 "register_operand" "")
(match_operand:QI 3 "const_0_to_1_operand" "")] (match_operand:QI 3 "const_0_to_1_operand" "")]
UNSPEC_BCD_ADD_SUB)) UNSPEC_BCD_ADD_SUB))
(clobber (reg:CCFP 74))]) (clobber (reg:CCFP CR6_REGNO))])
(parallel [(set (reg:CCFP 74) (parallel [(set (reg:CCFP CR6_REGNO)
(compare:CCFP (compare:CCFP
(unspec:V2DF [(match_dup 1) (unspec:V2DF [(match_dup 1)
(match_dup 2) (match_dup 2)
...@@ -3742,7 +3742,7 @@ ...@@ -3742,7 +3742,7 @@
(match_dup 2) (match_dup 2)
(match_dup 3)] (match_dup 3)]
UNSPEC_BCD_ADD_SUB)) UNSPEC_BCD_ADD_SUB))
(set (reg:CCFP 74) (set (reg:CCFP CR6_REGNO)
(compare:CCFP (compare:CCFP
(unspec:V2DF [(match_dup 1) (unspec:V2DF [(match_dup 1)
(match_dup 2) (match_dup 2)
......
...@@ -670,7 +670,7 @@ ...@@ -670,7 +670,7 @@
;; setting CR6 to indicate a combined status ;; setting CR6 to indicate a combined status
(define_expand "vector_eq_<mode>_p" (define_expand "vector_eq_<mode>_p"
[(parallel [(parallel
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(eq:CC (match_operand:VEC_A 1 "vlogical_operand" "") (unspec:CC [(eq:CC (match_operand:VEC_A 1 "vlogical_operand" "")
(match_operand:VEC_A 2 "vlogical_operand" ""))] (match_operand:VEC_A 2 "vlogical_operand" ""))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -682,7 +682,7 @@ ...@@ -682,7 +682,7 @@
(define_expand "vector_gt_<mode>_p" (define_expand "vector_gt_<mode>_p"
[(parallel [(parallel
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(gt:CC (match_operand:VEC_A 1 "vlogical_operand" "") (unspec:CC [(gt:CC (match_operand:VEC_A 1 "vlogical_operand" "")
(match_operand:VEC_A 2 "vlogical_operand" ""))] (match_operand:VEC_A 2 "vlogical_operand" ""))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -694,7 +694,7 @@ ...@@ -694,7 +694,7 @@
(define_expand "vector_ge_<mode>_p" (define_expand "vector_ge_<mode>_p"
[(parallel [(parallel
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(ge:CC (match_operand:VEC_F 1 "vfloat_operand" "") (unspec:CC [(ge:CC (match_operand:VEC_F 1 "vfloat_operand" "")
(match_operand:VEC_F 2 "vfloat_operand" ""))] (match_operand:VEC_F 2 "vfloat_operand" ""))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -706,7 +706,7 @@ ...@@ -706,7 +706,7 @@
(define_expand "vector_gtu_<mode>_p" (define_expand "vector_gtu_<mode>_p"
[(parallel [(parallel
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC [(gtu:CC (match_operand:VEC_I 1 "vint_operand" "") (unspec:CC [(gtu:CC (match_operand:VEC_I 1 "vint_operand" "")
(match_operand:VEC_I 2 "vint_operand" ""))] (match_operand:VEC_I 2 "vint_operand" ""))]
UNSPEC_PREDICATE)) UNSPEC_PREDICATE))
...@@ -720,14 +720,14 @@ ...@@ -720,14 +720,14 @@
(define_expand "cr6_test_for_zero" (define_expand "cr6_test_for_zero"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
(eq:SI (reg:CC 74) (eq:SI (reg:CC CR6_REGNO)
(const_int 0)))] (const_int 0)))]
"TARGET_ALTIVEC || TARGET_VSX" "TARGET_ALTIVEC || TARGET_VSX"
"") "")
(define_expand "cr6_test_for_zero_reverse" (define_expand "cr6_test_for_zero_reverse"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
(eq:SI (reg:CC 74) (eq:SI (reg:CC CR6_REGNO)
(const_int 0))) (const_int 0)))
(set (match_dup 0) (set (match_dup 0)
(xor:SI (match_dup 0) (xor:SI (match_dup 0)
...@@ -737,14 +737,14 @@ ...@@ -737,14 +737,14 @@
(define_expand "cr6_test_for_lt" (define_expand "cr6_test_for_lt"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
(lt:SI (reg:CC 74) (lt:SI (reg:CC CR6_REGNO)
(const_int 0)))] (const_int 0)))]
"TARGET_ALTIVEC || TARGET_VSX" "TARGET_ALTIVEC || TARGET_VSX"
"") "")
(define_expand "cr6_test_for_lt_reverse" (define_expand "cr6_test_for_lt_reverse"
[(set (match_operand:SI 0 "register_operand" "=r") [(set (match_operand:SI 0 "register_operand" "=r")
(lt:SI (reg:CC 74) (lt:SI (reg:CC CR6_REGNO)
(const_int 0))) (const_int 0)))
(set (match_dup 0) (set (match_dup 0)
(xor:SI (match_dup 0) (xor:SI (match_dup 0)
......
...@@ -1499,7 +1499,7 @@ ...@@ -1499,7 +1499,7 @@
;; Compare vectors producing a vector result and a predicate, setting CR6 to ;; Compare vectors producing a vector result and a predicate, setting CR6 to
;; indicate a combined status ;; indicate a combined status
(define_insn "*vsx_eq_<mode>_p" (define_insn "*vsx_eq_<mode>_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC (unspec:CC
[(eq:CC (match_operand:VSX_F 1 "vsx_register_operand" "<VSr>,?<VSa>") [(eq:CC (match_operand:VSX_F 1 "vsx_register_operand" "<VSr>,?<VSa>")
(match_operand:VSX_F 2 "vsx_register_operand" "<VSr>,?<VSa>"))] (match_operand:VSX_F 2 "vsx_register_operand" "<VSr>,?<VSa>"))]
...@@ -1512,7 +1512,7 @@ ...@@ -1512,7 +1512,7 @@
[(set_attr "type" "<VStype_simple>")]) [(set_attr "type" "<VStype_simple>")])
(define_insn "*vsx_gt_<mode>_p" (define_insn "*vsx_gt_<mode>_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC (unspec:CC
[(gt:CC (match_operand:VSX_F 1 "vsx_register_operand" "<VSr>,?<VSa>") [(gt:CC (match_operand:VSX_F 1 "vsx_register_operand" "<VSr>,?<VSa>")
(match_operand:VSX_F 2 "vsx_register_operand" "<VSr>,?<VSa>"))] (match_operand:VSX_F 2 "vsx_register_operand" "<VSr>,?<VSa>"))]
...@@ -1525,7 +1525,7 @@ ...@@ -1525,7 +1525,7 @@
[(set_attr "type" "<VStype_simple>")]) [(set_attr "type" "<VStype_simple>")])
(define_insn "*vsx_ge_<mode>_p" (define_insn "*vsx_ge_<mode>_p"
[(set (reg:CC 74) [(set (reg:CC CR6_REGNO)
(unspec:CC (unspec:CC
[(ge:CC (match_operand:VSX_F 1 "vsx_register_operand" "<VSr>,?<VSa>") [(ge:CC (match_operand:VSX_F 1 "vsx_register_operand" "<VSr>,?<VSa>")
(match_operand:VSX_F 2 "vsx_register_operand" "<VSr>,?<VSa>"))] (match_operand:VSX_F 2 "vsx_register_operand" "<VSr>,?<VSa>"))]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment