]> gcc.gnu.org Git - gcc.git/commitdiff
thumb-16bit-ops.c (f): This test uses a 16-bit add instruction.
authorRichard Earnshaw <rearnsha@arm.com>
Mon, 20 Aug 2012 10:57:45 +0000 (10:57 +0000)
committerRichard Earnshaw <rearnsha@gcc.gnu.org>
Mon, 20 Aug 2012 10:57:45 +0000 (10:57 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/thumb-16bit-ops.c

index ba0b5b2aa31651aaa7a86882d6e3d8a9a7dcf59c..e9aaf243950c7401a2a8074dd4b08f36c6dbc656 100644 (file)
@@ -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>
 
        PR tree-optimization/54327
index bd4f4897f356111422cf5c42e690b1c7f00079d5..90407eb6872efe9c545c5945de17a2eead91eead 100644 (file)
@@ -4,13 +4,20 @@
 /* { dg-options "-Os -fno-builtin -mthumb" } */
 
 int
-f (int a, int b )
+f (int a, int 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
 g1 (int a)
 {
This page took 0.080854 seconds and 5 git commands to generate.