Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/sh/predicates.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 | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
56:3c8a44c06a95 | 63:b7f97abdc517 |
---|---|
1 ;; Predicate definitions for Renesas / SuperH SH. | 1 ;; Predicate definitions for Renesas / SuperH SH. |
2 ;; Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | 2 ;; Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 |
3 ;; Free Software Foundation, Inc. | |
3 ;; | 4 ;; |
4 ;; This file is part of GCC. | 5 ;; This file is part of GCC. |
5 ;; | 6 ;; |
6 ;; GCC is free software; you can redistribute it and/or modify | 7 ;; GCC is free software; you can redistribute it and/or modify |
7 ;; it under the terms of the GNU General Public License as published by | 8 ;; it under the terms of the GNU General Public License as published by |
419 return 0; | 420 return 0; |
420 | 421 |
421 return general_operand (op, mode); | 422 return general_operand (op, mode); |
422 }) | 423 }) |
423 | 424 |
425 | |
426 ;; Returns 1 if OP is a POST_INC on stack pointer register. | |
427 | |
428 (define_predicate "sh_no_delay_pop_operand" | |
429 (match_code "mem") | |
430 { | |
431 rtx inside; | |
432 inside = XEXP (op, 0); | |
433 | |
434 if (GET_CODE (op) == MEM && GET_MODE (op) == SImode | |
435 && GET_CODE (inside) == POST_INC | |
436 && GET_CODE (XEXP (inside, 0)) == REG | |
437 && REGNO (XEXP (inside, 0)) == SP_REG) | |
438 return 1; | |
439 | |
440 return 0; | |
441 }) | |
442 | |
443 | |
424 ;; Returns 1 if OP is a MEM that can be source of a simple move operation. | 444 ;; Returns 1 if OP is a MEM that can be source of a simple move operation. |
425 | 445 |
426 (define_predicate "unaligned_load_operand" | 446 (define_predicate "unaligned_load_operand" |
427 (match_code "mem") | 447 (match_code "mem") |
428 { | 448 { |