Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/picochip/picochip.md @ 63:b7f97abdc517 gcc-4.6-20100522
update gcc from gcc-4.5.0 to gcc-4.6
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 May 2010 12:47:05 +0900 |
parents | 77e2b8dfacca |
children | f6334be47118 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
578 ;; would still generate a normal instruction. | 578 ;; would still generate a normal instruction. |
579 | 579 |
580 (define_insn "*supported_compare" | 580 (define_insn "*supported_compare" |
581 [(set (reg:CC CC_REGNUM) | 581 [(set (reg:CC CC_REGNUM) |
582 (match_operator:CC 0 "picochip_supported_comparison_operator" | 582 (match_operator:CC 0 "picochip_supported_comparison_operator" |
583 [(match_operand:HI 1 "register_operand" "r,r,r") | |
584 (match_operand:HI 2 "picochip_comparison_operand" "r,J,i")]))] | |
585 "" | |
586 "* return picochip_output_compare(operands);" | |
587 [; Must be picoAlu because it sets the condition flags. | |
588 (set_attr "type" "picoAlu,picoAlu,picoAlu") | |
589 (set_attr "longConstant" "false,false,true") | |
590 (set_attr "length" "2,2,4") | |
591 ]) | |
592 | |
593 ;; This pattern was added to match the previous pattern. When doing if-convert | |
594 ;; the pattern generated using movhicc does not have a eq:CC but only a eq for | |
595 ;; operator. If this pattern were not to be there, Gcc decides not to use | |
596 ;; movhicc at all. Whereas, in Gcc 4.4, it seems to be cleverer. | |
597 (define_insn "*supported_compare1" | |
598 [(set (reg:CC CC_REGNUM) | |
599 (match_operator 0 "picochip_supported_comparison_operator" | |
583 [(match_operand:HI 1 "register_operand" "r,r,r") | 600 [(match_operand:HI 1 "register_operand" "r,r,r") |
584 (match_operand:HI 2 "picochip_comparison_operand" "r,J,i")]))] | 601 (match_operand:HI 2 "picochip_comparison_operand" "r,J,i")]))] |
585 "" | 602 "" |
586 "* return picochip_output_compare(operands);" | 603 "* return picochip_output_compare(operands);" |
587 [; Must be picoAlu because it sets the condition flags. | 604 [; Must be picoAlu because it sets the condition flags. |