Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 1 | From c7f6fb9d81ce322f71cbef7cc1f5cb2fb8956a27 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 2 | From: Nagaraju Mekala <nmekala@xilix.com> |
| 3 | Date: Fri, 12 Oct 2018 16:07:36 +0530 |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 4 | Subject: [PATCH 42/58] Fixed the issue in the delay slot with swap |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 5 | instructions |
| 6 | |
| 7 | --- |
| 8 | gcc/config/microblaze/microblaze.md | 6 ++++++ |
| 9 | 1 file changed, 6 insertions(+) |
| 10 | |
| 11 | diff --git a/gcc/config/microblaze/microblaze.md b/gcc/config/microblaze/microblaze.md |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 12 | index 645f48f2847..6a1e45a5b66 100644 |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 13 | --- a/gcc/config/microblaze/microblaze.md |
| 14 | +++ b/gcc/config/microblaze/microblaze.md |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 15 | @@ -443,6 +443,9 @@ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 16 | (bswap:SI (match_operand:SI 1 "register_operand" "r")))] |
| 17 | "TARGET_REORDER" |
| 18 | "swapb %0, %1" |
| 19 | + [(set_attr "type" "no_delay_arith") |
| 20 | + (set_attr "mode" "SI") |
| 21 | + (set_attr "length" "4")] |
| 22 | ) |
| 23 | |
| 24 | (define_insn "bswaphi2" |
Andrew Geissler | 84ad7c5 | 2020-06-27 00:00:16 -0500 | [diff] [blame] | 25 | @@ -451,6 +454,9 @@ |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 26 | "TARGET_REORDER" |
| 27 | "swapb %0, %1 |
| 28 | swaph %0, %0" |
| 29 | + [(set_attr "type" "no_delay_arith") |
| 30 | + (set_attr "mode" "SI") |
| 31 | + (set_attr "length" "8")] |
| 32 | ) |
| 33 | |
| 34 | ;;---------------------------------------------------------------- |
| 35 | -- |
Andrew Geissler | a9ff2b3 | 2020-10-16 10:11:54 -0500 | [diff] [blame] | 36 | 2.17.1 |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 37 | |