]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/28402 (Doubleword shifts implemented using word_mode libcalls)
authorRichard Sandiford <richard@codesourcery.com>
Wed, 26 Jul 2006 13:34:17 +0000 (13:34 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 26 Jul 2006 13:34:17 +0000 (13:34 +0000)
gcc/
PR middle-end/28402
* optabs.c (expand_binop): Pass next_methods rather than methods
to expand_doubleword_shift.

gcc/testsuite/
PR middle-end/28402
* gcc.dg/pr28402.c: New test.

From-SVN: r115757

gcc/ChangeLog
gcc/optabs.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr28402.c [new file with mode: 0644]

index c2e679a10af332ad3efda7e4e720bc51d6d58bdc..e13933b03fa06496991502c9f683840adf45554c 100644 (file)
@@ -1,3 +1,9 @@
+2006-07-26  Richard Sandiford  <richard@codesourcery.com>
+
+       PR middle-end/28402
+       * optabs.c (expand_binop): Pass next_methods rather than methods
+       to expand_doubleword_shift.
+
 2006-07-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c/28286
index 92347934fd8fa39b919bbb56071ba7154c3b6926..26998381f91070081ffe8d9f4177625a390f32ea 100644 (file)
@@ -1148,7 +1148,7 @@ expand_binop (enum machine_mode mode, optab binoptab, rtx op0, rtx op1,
          if (expand_doubleword_shift (op1_mode, binoptab,
                                       outof_input, into_input, op1,
                                       outof_target, into_target,
-                                      unsignedp, methods, shift_mask))
+                                      unsignedp, next_methods, shift_mask))
            {
              insns = get_insns ();
              end_sequence ();
index 7c765eabf16b9a143b62a73e931263d9a47be9ad..3ebcd0f881591bf1bb4f51be006e8f97ca1dc405 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-26  Richard Sandiford  <richard@codesourcery.com>
+
+       PR middle-end/28402
+       * gcc.dg/pr28402.c: New test.
+
 2006-07-24  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
 
        PR c++/27572
diff --git a/gcc/testsuite/gcc.dg/pr28402.c b/gcc/testsuite/gcc.dg/pr28402.c
new file mode 100644 (file)
index 0000000..1368ac7
--- /dev/null
@@ -0,0 +1,22 @@
+/* { dg-options "" } */
+typedef long long ll;
+typedef unsigned long long ull;
+
+int global;
+
+#define A(BASE, OP, AMT) \
+  ll BASE ## AMT (ll x) { return x OP AMT; } \
+  ull BASE ## AMT ## u (ull x) { return x OP AMT; }
+
+#define B(BASE, OP) \
+  A (BASE, OP, 1) \
+  A (BASE, OP, 10) \
+  A (BASE, OP, 31) \
+  A (BASE, OP, 33) \
+  A (BASE, OP, 61) \
+  A (BASE, OP, global)
+
+B (left, <<)
+B (right, >>)
+
+/* { dg-final { scan-assembler-not "__\[a-z\]*si3" } } */