[ARM] Updating testcase unsigned-extend-2.c
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Wed, 21 Dec 2016 15:16:53 +0000 (15:16 +0000)
committerAndre Vieira <avieira@gcc.gnu.org>
Wed, 21 Dec 2016 15:16:53 +0000 (15:16 +0000)
gcc/testsuite/ChangeLog:
2016-12-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>

* gcc.target/arm/unsigned-extend-2.c: Update testcase.

From-SVN: r243858

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/unsigned-extend-2.c

index a6599d7708fc61dc4e554a289cfb07e740948a6a..962f27b78c347dbfbd6c357633c2f0511d52b14a 100644 (file)
@@ -1,3 +1,7 @@
+2016-12-21  Andre Vieira  <andre.simoesdiasvieira@arm.com>
+
+       * gcc.target/arm/unsigned-extend-2.c: Update testcase.
+
 2016-12-21  Martin Liska  <mliska@suse.cz>
 
        PR driver/78863
index b610b73617dc6e6a5428c966380516007a02acba..5668eb1eac47da0f9afb940721063a170c8c202c 100644 (file)
@@ -2,13 +2,13 @@
 /* { dg-require-effective-target arm_thumb2_ok } */
 /* { dg-options "-O" } */
 
-unsigned short foo (unsigned short x)
+unsigned short foo (unsigned short x, unsigned short c)
 {
   unsigned char i = 0;
   for (i = 0; i < 8; i++)
     {
       x >>= 1;
-      x &= 0x7fff;
+      x &= c;
     }
   return x;
 }