diff mbox series

[1/2] rs6000: Delete UNSPEC_FRSP

Message ID e925fcddbdb310835bd41d3b903f68bfa22f8104.1567798092.git.segher@kernel.crashing.org
State New
Headers show
Series [1/2] rs6000: Delete UNSPEC_FRSP | expand

Commit Message

Segher Boessenkool Sept. 6, 2019, 7:35 p.m. UTC
This isn't used since 2012.  (It's a remnant of RIOS support).

Committing to trunk.


Segher


2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>

	* config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
	* config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.

---
 gcc/config/rs6000/rs6000.c  | 12 ------------
 gcc/config/rs6000/rs6000.md |  3 +--
 2 files changed, 1 insertion(+), 14 deletions(-)
diff mbox series

Patch

diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index ce86d30..c15e05e 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -20923,18 +20923,6 @@  rs6000_rtx_costs (rtx x, machine_mode mode, int outer_code,
 	*total = rs6000_cost->fp;
       return false;
 
-    case UNSPEC:
-      switch (XINT (x, 1))
-	{
-	case UNSPEC_FRSP:
-	  *total = rs6000_cost->fp;
-	  return true;
-
-	default:
-	  break;
-	}
-      break;
-
     case CALL:
     case IF_THEN_ELSE:
       if (!speed)
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md
index b1fddbf..d408e44 100644
--- a/gcc/config/rs6000/rs6000.md
+++ b/gcc/config/rs6000/rs6000.md
@@ -58,8 +58,7 @@  (define_constants
 ;;
 
 (define_c_enum "unspec"
-  [UNSPEC_FRSP			; frsp for POWER machines
-   UNSPEC_PROBE_STACK		; probe stack memory reference
+  [UNSPEC_PROBE_STACK		; probe stack memory reference
    UNSPEC_TOCPTR		; address of a word pointing to the TOC
    UNSPEC_TOC			; address of the TOC (more-or-less)
    UNSPEC_TOCSLOT		; offset from r1 of toc pointer save slot