mirror of git://gcc.gnu.org/git/gcc.git
thumb-16bit-ops.c (f): This test uses a 16-bit add instruction.
* gcc.target/arm/thumb-16bit-ops.c (f): This test uses a 16-bit add instruction. (f2): New test that really does need adds. From-SVN: r190530
This commit is contained in:
parent
71f15f319b
commit
c3b3cd8d68
|
|
@ -1,3 +1,9 @@
|
||||||
|
2012-08-20 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
|
* gcc.target/arm/thumb-16bit-ops.c (f): This test uses a 16-bit
|
||||||
|
add instruction.
|
||||||
|
(f2): New test that really does need adds.
|
||||||
|
|
||||||
2012-08-20 Richard Guenther <rguenther@suse.de>
|
2012-08-20 Richard Guenther <rguenther@suse.de>
|
||||||
|
|
||||||
PR tree-optimization/54327
|
PR tree-optimization/54327
|
||||||
|
|
|
||||||
|
|
@ -4,13 +4,20 @@
|
||||||
/* { dg-options "-Os -fno-builtin -mthumb" } */
|
/* { dg-options "-Os -fno-builtin -mthumb" } */
|
||||||
|
|
||||||
int
|
int
|
||||||
f (int a, int b )
|
f (int a, int b)
|
||||||
{
|
{
|
||||||
return a + b;
|
return a + b;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* { dg-final { scan-assembler "adds r0, r0, r1" } } */
|
/* { dg-final { scan-assembler "add r0, r0, r1" } } */
|
||||||
|
|
||||||
|
int
|
||||||
|
f2 (int a, int b, int c)
|
||||||
|
{
|
||||||
|
return b + c;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* { dg-final { scan-assembler "adds r0, r1, r2" } } */
|
||||||
int
|
int
|
||||||
g1 (int a)
|
g1 (int a)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue