Fixup last commit.
authorRamana Radhakrishnan <ramana.radhakrishnan@linaro.org>
Tue, 15 Mar 2011 17:05:51 +0000 (17:05 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Tue, 15 Mar 2011 17:05:51 +0000 (17:05 +0000)
Fixed PR target/46788 and not PR 47688

From-SVN: r171002

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/pr46788.c [new file with mode: 0644]

index 572309cdd89319e41ed014ba5632d8472aba7ddb..f9b2d76e6e78ea0f7461013e58e21d9bd959a963 100644 (file)
@@ -1,6 +1,6 @@
 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
 
-       PR target/47668
+       PR target/46778
        * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
        in the output template.
 
index 289736606582b780ec29caf03dadf633581ea53c..13161bfb9f144668644cc1b0b327df6e57eed023 100644 (file)
@@ -1,7 +1,7 @@
 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
 
-       PR target/47688
-       * gcc.target/arm/pr47688.c: New.
+       PR target/46788
+       * gcc.target/arm/pr46788.c: New.
 
 2011-03-15  Richard Guenther  <rguenther@suse.de>
 
diff --git a/gcc/testsuite/gcc.target/arm/pr46788.c b/gcc/testsuite/gcc.target/arm/pr46788.c
new file mode 100644 (file)
index 0000000..2236769
--- /dev/null
@@ -0,0 +1,26 @@
+/* { dg-options "-mthumb -O2" }  */
+/* { dg-require-effective-target arm_thumb2_ok } */
+/* { dg-final { scan-assembler-not "-32768" } } */
+
+typedef union
+{
+  unsigned long int u_32_value;
+  struct 
+  {
+    unsigned short int u_16_value_0;
+    unsigned short int u_16_value_1;
+  } u_16_values;
+} my_union;
+
+
+unsigned long int Test(const unsigned short int wXe)
+{
+  my_union dwCalcVal;
+  
+  dwCalcVal.u_16_values.u_16_value_0=wXe;
+  dwCalcVal.u_16_values.u_16_value_1=0x8000u;
+
+  dwCalcVal.u_32_value /=3;
+  
+  return (dwCalcVal.u_32_value);
+}