From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C2C13858000; Wed, 24 Nov 2021 03:14:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C2C13858000 From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/103383] Microblaze bswaphi2 Date: Wed, 24 Nov 2021 03:14:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 6.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_gcctarget cf_reconfirmed_on bug_status everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2021 03:14:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103383 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Target| |microblaze Last reconfirmed| |2021-11-24 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski --- I think this patch fixes the problem: diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md index 6d77752cbfd..ca4bd976a5c 100644 --- a/gcc/config/microblaze/microblaze.md +++ b/gcc/config/microblaze/microblaze.md @@ -372,7 +372,8 @@ (define_insn "bswaphi2" "TARGET_REORDER" "swapb %0, %1 swaph %0, %0" -) + [(set_attr "length" "8") + (set_attr "type" "no_delay_arith")]) ;;---------------------------------------------------------------- ;; Microblaze delay slot description ---- CUT ---- The delay slot description is right below bswaphi2 definition even: (define_delay (eq_attr "type" "branch,call,jump") [(and (eq_attr "type" "!branch,call,jump,icmp,multi,no_delay_arith,no_delay_load,no_delay_store,n= o_delay_imul,no_delay_move,darith") (ior (not (match_test "microblaze_no_unsafe_delay")) (eq_attr "type" "!fadd,frsub,fmul,fdiv,fcmp,store,load") )) (nil) (nil)]) Or multi could be used instead of no_delay_arith.=