Commit 9498e5dc by Christian Bruel Committed by Christian Bruel

re PR target/57108 ([4.7/4.8/4.9] SH internal compiler error: in…

re PR target/57108 ([4.7/4.8/4.9] SH internal compiler error: in int_mode_for_mode, at stor-layout.c:395)

2013-04-29  Christian Bruel  <christian.bruel@st.com>

       PR target/57108
       * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.

From-SVN: r198411
parent 6093bc06
2013-04-29 Christian Bruel <christian.bruel@st.com>
PR target/57108
* sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
2013-04-29 Richard Biener <rguenther@suse.de> 2013-04-29 Richard Biener <rguenther@suse.de>
PR middle-end/57089 PR middle-end/57089
......
...@@ -689,7 +689,7 @@ ...@@ -689,7 +689,7 @@
;; Extract contiguous bits and compare them against zero. ;; Extract contiguous bits and compare them against zero.
(define_insn "tstsi_t_zero_extract_eq" (define_insn "tstsi_t_zero_extract_eq"
[(set (reg:SI T_REG) [(set (reg:SI T_REG)
(eq:SI (zero_extract:SI (match_operand 0 "logical_operand" "z") (eq:SI (zero_extract:SI (match_operand:SI 0 "logical_operand" "z")
(match_operand:SI 1 "const_int_operand") (match_operand:SI 1 "const_int_operand")
(match_operand:SI 2 "const_int_operand")) (match_operand:SI 2 "const_int_operand"))
(const_int 0)))] (const_int 0)))]
......
2013-04-29 Christian Bruel <christian.bruel@st.com>
PR target/57108
* gcc.target/sh/pr57108.c: New test.
2013-04-29 Richard Biener <rguenther@suse.de> 2013-04-29 Richard Biener <rguenther@suse.de>
PR middle-end/57089 PR middle-end/57089
......
/* { dg-do compile { target "sh*-*-*" } } */
/* { dg-options "-O1" } */
void __assert_func (void) __attribute__ ((__noreturn__)) ;
void ATATransfer (int num, int buffer)
{
int wordCount;
while (num > 0)
{
wordCount = num * 512 / sizeof (int);
((0 == (buffer & 63)) ? (void)0 : __assert_func () );
((0 == (wordCount & 31)) ? (void)0 : __assert_func ());
}
}
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