diff mbox

[SH] Document constraints, remove unused Sr0 constraint

Message ID 1333882637.19154.101.camel@yam-132-YW-E178-FTW
State New
Headers show

Commit Message

Oleg Endo April 8, 2012, 10:57 a.m. UTC
Hi,

The attached patch updates the top comment block in constraints.md and
removes the unused Sr0 constraint.
Tested with 'make all-gcc'.

OK?

Cheers,
Oleg

ChangeLog:

	* config/sh/constraints.md: Update list of constraints in 
	comment block.
	(Sr0): Remove unused memory constraint.

Comments

Kaz Kojima April 8, 2012, 9:17 p.m. UTC | #1
Oleg Endo <oleg.endo@t-online.de> wrote:
> The attached patch updates the top comment block in constraints.md and
> removes the unused Sr0 constraint.
> Tested with 'make all-gcc'.
> 
> OK?

OK.

Regards,
	kaz
diff mbox

Patch

Index: gcc/config/sh/constraints.md
===================================================================
--- gcc/config/sh/constraints.md	(revision 186224)
+++ gcc/config/sh/constraints.md	(working copy)
@@ -37,10 +37,16 @@ 
 ;;  P27: 1 | 2 | 8 | 16
 ;;  Pso: 1 | 2 | 4 | 8 | 16 | 32 | 64 | 128
 ;;  Psz: ~1 | ~2 | ~4 | ~8 | ~16 | ~32 | ~64 | ~128
+;; G: Floating point 0
+;; H: Floating point 1
 ;; Q: pc relative load operand
 ;; Rxx: reserved for exotic register classes.
-;; Sxx: extra memory (storage) constraints
-;;  Sua: unaligned memory operations
+;; Sxx: extra memory constraints
+;;  Sua: unaligned memory address
+;;  Sbv: QImode address without displacement
+;;  Sbw: QImode address with 12 bit displacement
+;;  Snd: address without displacement
+;;  Sdd: address with displacement
 ;; W: vector
 ;; Z: zero in any mode
 ;;
@@ -251,11 +257,6 @@ 
 	    (match_test "~ival == 64")
 	    (match_test "~ival == 128"))))
 
-(define_memory_constraint "Sr0"
-  "@internal"
-  (and (match_test "memory_operand (op, GET_MODE (op))")
-       (match_test "!refers_to_regno_p (R0_REG, R0_REG + 1, op, (rtx *) 0)")))
-
 (define_memory_constraint "Sua"
   "@internal"
   (and (match_test "memory_operand (op, GET_MODE (op))")