[Bug testsuite/68917] test suite failure for builtin-bitops-1.c

bernd.edlinger at hotmail dot de gcc-bugzilla@gcc.gnu.org
Fri Dec 18 22:26:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68917

Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bernd.edlinger at hotmail dot de

--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
does something like this help?

Index: tilegx.md
===================================================================
--- tilegx.md   (Revision 231696)
+++ tilegx.md   (Arbeitskopie)
@@ -1799,13 +1799,16 @@

 (define_expand "clzsi2"
   [(set (match_dup 2)
-        (ashift:DI (match_operand:SI 1 "reg_or_0_operand" "")
+       (zero_extend:DI (match_operand:SI 1 "reg_or_0_operand" "")))
+   (set (match_dup 2)
+       (ashift:DI (match_dup 2)
                    (const_int 32)))
-   (set (subreg:DI (match_operand:SI 0 "register_operand" "") 0)
-       (clz:DI (match_dup 2)))]
+   (set (match_dup 2)
+       (clz:DI (match_dup 2)))
+   (set (match_operand:SI 0 "register_operand" "")
+       (subreg:SI (match_dup 2) 0))]
    ""
    {
-     operands[1] = simplify_gen_subreg (DImode, operands[1], SImode, 0);
      operands[2] = gen_reg_rtx (DImode);
    })


More information about the Gcc-bugs mailing list