forked from gcc-mirror/gcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* config/i386/i386.md (*addqi_2 peephole with QImode addition): Check that operands[2] is either immediate, or q_regs_operand. * gcc.dg/pr53358.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187544 138bc75d-0d04-0410-961f-82ee72b054a4
- Loading branch information
jakub
committed
May 15, 2012
1 parent
cd4797f
commit f2a4755
Showing
4 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* PR target/53358 */ | ||
/* { dg-do compile } */ | ||
/* { dg-options "-O2" } */ | ||
/* { dg-additional-options "-fpic" { target fpic } } */ | ||
/* { dg-additional-options "-mtune=pentium4" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ | ||
|
||
struct S { unsigned char s, t[17]; }; | ||
int bar (void); | ||
|
||
void | ||
foo (struct S *x) | ||
{ | ||
unsigned char i, z; | ||
if (bar ()) | ||
{ | ||
z = bar (); | ||
bar (); | ||
x->s += z; | ||
for (i = 0; i < x->s; i++) | ||
x->t[i] = bar (); | ||
} | ||
} |