OpenCores
URL https://opencores.org/ocsvn/zipcpu/zipcpu/trunk

Subversion Repositories zipcpu

[/] [zipcpu/] [trunk/] [sw/] [gcc-zippatch.patch] - Diff between revs 117 and 122

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 117 Rev 122
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/config.sub gcc-5.3.0-zip/config.sub
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/config.sub gcc-5.3.0-zip/config.sub
--- gcc-5.3.0-original/config.sub       2015-01-02 04:30:21.000000000 -0500
--- gcc-5.3.0-original/config.sub       2015-01-02 04:30:21.000000000 -0500
+++ gcc-5.3.0-zip/config.sub    2016-01-30 12:27:56.023073747 -0500
+++ gcc-5.3.0-zip/config.sub    2016-01-30 12:27:56.023073747 -0500
@@ -316,7 +316,7 @@
@@ -316,7 +316,7 @@
        | visium \
        | visium \
        | we32k \
        | we32k \
        | x86 | xc16x | xstormy16 | xtensa \
        | x86 | xc16x | xstormy16 | xtensa \
-       | z8k | z80)
-       | z8k | z80)
+       | z8k | z80 | zip)
+       | z8k | z80 | zip)
                basic_machine=$basic_machine-unknown
                basic_machine=$basic_machine-unknown
                ;;
                ;;
        c54x)
        c54x)
@@ -1547,6 +1547,9 @@
@@ -1547,6 +1547,9 @@
 # system, and we'll never get to this point.
 # system, and we'll never get to this point.
 
 
 case $basic_machine in
 case $basic_machine in
+       zip-*)
+       zip-*)
+               os=-elf
+               os=-elf
+               ;;
+               ;;
        score-*)
        score-*)
                os=-elf
                os=-elf
                ;;
                ;;
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/configure gcc-5.3.0-zip/configure
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/configure gcc-5.3.0-zip/configure
--- gcc-5.3.0-original/configure        2015-05-03 13:29:57.000000000 -0400
--- gcc-5.3.0-original/configure        2015-05-03 13:29:57.000000000 -0400
+++ gcc-5.3.0-zip/configure     2016-01-30 16:19:48.264867231 -0500
+++ gcc-5.3.0-zip/configure     2016-01-30 16:19:48.264867231 -0500
@@ -3927,6 +3927,8 @@
@@ -3927,6 +3927,8 @@
   vax-*-*)
   vax-*-*)
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
     ;;
     ;;
+  zip*)
+  zip*)
+    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb gprof"
+    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb gprof"
 esac
 esac
 
 
 # If we aren't building newlib, then don't build libgloss, since libgloss
 # If we aren't building newlib, then don't build libgloss, since libgloss
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/configure.ac gcc-5.3.0-zip/configure.ac
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/configure.ac gcc-5.3.0-zip/configure.ac
--- gcc-5.3.0-original/configure.ac     2015-05-03 13:29:57.000000000 -0400
--- gcc-5.3.0-original/configure.ac     2015-05-03 13:29:57.000000000 -0400
+++ gcc-5.3.0-zip/configure.ac  2016-02-12 10:47:23.847194843 -0500
+++ gcc-5.3.0-zip/configure.ac  2016-02-12 10:47:23.847194843 -0500
@@ -1274,6 +1274,10 @@
@@ -1274,6 +1274,10 @@
   vax-*-*)
   vax-*-*)
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
     noconfigdirs="$noconfigdirs target-newlib target-libgloss"
     ;;
     ;;
+  zip*)
+  zip*)
+    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb gprof"
+    noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb gprof"
+    unsupported_languages="$unsupported_languages fortran java"
+    unsupported_languages="$unsupported_languages fortran java"
+    ;;
+    ;;
 esac
 esac
 
 
 # If we aren't building newlib, then don't build libgloss, since libgloss
 # If we aren't building newlib, then don't build libgloss, since libgloss
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/cfgexpand.c gcc-5.3.0-zip/gcc/cfgexpand.c
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/cfgexpand.c gcc-5.3.0-zip/gcc/cfgexpand.c
--- gcc-5.3.0-original/gcc/cfgexpand.c  2015-07-23 06:39:26.000000000 -0400
--- gcc-5.3.0-original/gcc/cfgexpand.c  2015-07-23 06:39:26.000000000 -0400
+++ gcc-5.3.0-zip/gcc/cfgexpand.c       2016-04-01 06:40:17.288326711 -0400
+++ gcc-5.3.0-zip/gcc/cfgexpand.c       2016-04-01 06:40:17.288326711 -0400
@@ -108,6 +108,14 @@
@@ -108,6 +108,14 @@
 #include "tree-chkp.h"
 #include "tree-chkp.h"
 #include "rtl-chkp.h"
 #include "rtl-chkp.h"
 
 
+#ifdef DO_ZIP_DEBUGS
+#ifdef DO_ZIP_DEBUGS
+#include <stdio.h>
+#include <stdio.h>
+#define ZIP_DEBUG_LINE(STR,RTX) do{fprintf(stderr,"%s:%d/%s\n",__FILE__,__LINE__,STR); zip_debug_rtx(RTX);} while(0)
+#define ZIP_DEBUG_LINE(STR,RTX) do{fprintf(stderr,"%s:%d/%s\n",__FILE__,__LINE__,STR); zip_debug_rtx(RTX);} while(0)
+extern void    zip_debug_rtx(const_rtx);
+extern void    zip_debug_rtx(const_rtx);
+#else
+#else
+#define        ZIP_DEBUG_LINE(STR,RTX)
+#define        ZIP_DEBUG_LINE(STR,RTX)
+#endif
+#endif
+
+
 /* Some systems use __main in a way incompatible with its use in gcc, in these
 /* Some systems use __main in a way incompatible with its use in gcc, in these
    cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
    cases use the macros NAME__MAIN to give a quoted symbol and SYMBOL__MAIN to
    give the same symbol without quotes for an alternative entry point.  You
    give the same symbol without quotes for an alternative entry point.  You
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/cgraphbuild.c gcc-5.3.0-zip/gcc/cgraphbuild.c
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/cgraphbuild.c gcc-5.3.0-zip/gcc/cgraphbuild.c
--- gcc-5.3.0-original/gcc/cgraphbuild.c        2015-01-09 15:18:42.000000000 -0500
--- gcc-5.3.0-original/gcc/cgraphbuild.c        2015-01-09 15:18:42.000000000 -0500
+++ gcc-5.3.0-zip/gcc/cgraphbuild.c     2016-03-24 22:13:24.815287808 -0400
+++ gcc-5.3.0-zip/gcc/cgraphbuild.c     2016-03-24 22:13:24.815287808 -0400
@@ -62,6 +62,13 @@
@@ -62,6 +62,13 @@
 #include "ipa-prop.h"
 #include "ipa-prop.h"
 #include "ipa-inline.h"
 #include "ipa-inline.h"
 
 
+#ifdef DO_ZIP_DEBUGS
+#ifdef DO_ZIP_DEBUGS
+extern void zip_debug_rtx(const_rtx);
+extern void zip_debug_rtx(const_rtx);
+#define        ZIP_DEBUG_LINE(STR,RTX) do { fprintf(stderr, "%s:%d/%s\n", __FILE__,__LINE__,STR); zip_debug_rtx(RTX); } while(0)
+#define        ZIP_DEBUG_LINE(STR,RTX) do { fprintf(stderr, "%s:%d/%s\n", __FILE__,__LINE__,STR); zip_debug_rtx(RTX); } while(0)
+#else
+#else
+#define        ZIP_DEBUG_LINE(STR,RTX)
+#define        ZIP_DEBUG_LINE(STR,RTX)
+#endif
+#endif
+
+
 /* Context of record_reference.  */
 /* Context of record_reference.  */
 struct record_reference_ctx
 struct record_reference_ctx
 {
 {
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/common/config/zip/zip-common.c gcc-5.3.0-zip/gcc/common/config/zip/zip-common.c
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/common/config/zip/zip-common.c gcc-5.3.0-zip/gcc/common/config/zip/zip-common.c
--- gcc-5.3.0-original/gcc/common/config/zip/zip-common.c       1969-12-31 19:00:00.000000000 -0500
--- gcc-5.3.0-original/gcc/common/config/zip/zip-common.c       1969-12-31 19:00:00.000000000 -0500
+++ gcc-5.3.0-zip/gcc/common/config/zip/zip-common.c    2016-02-14 00:54:31.821055716 -0500
+++ gcc-5.3.0-zip/gcc/common/config/zip/zip-common.c    2016-02-14 00:54:31.821055716 -0500
@@ -0,0 +1,52 @@
@@ -0,0 +1,52 @@
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//
+// Filename:   common/config/zip/zip-common.c
+// Filename:   common/config/zip/zip-common.c
+//
+//
+// Project:    Zip CPU backend for the GNU Compiler Collection
+// Project:    Zip CPU backend for the GNU Compiler Collection
+//
+//
+// Purpose:    To eliminate the frame register automatically.
+// Purpose:    To eliminate the frame register automatically.
+//
+//
+// Creator:    Dan Gisselquist, Ph.D.
+// Creator:    Dan Gisselquist, Ph.D.
+//             Gisselquist Technology, LLC
+//             Gisselquist Technology, LLC
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//
+// Copyright (C) 2016, Gisselquist Technology, LLC
+// Copyright (C) 2016, Gisselquist Technology, LLC
+//
+//
+// This program is free software (firmware): you can redistribute it and/or
+// This program is free software (firmware): you can redistribute it and/or
+// modify it under the terms of  the GNU General Public License as published
+// modify it under the terms of  the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or (at
+// by the Free Software Foundation, either version 3 of the License, or (at
+// your option) any later version.
+// your option) any later version.
+//
+//
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+// for more details.
+// for more details.
+//
+//
+// You should have received a copy of the GNU General Public License along
+// You should have received a copy of the GNU General Public License along
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
+// target there if the PDF file isn't present.)  If not, see
+// target there if the PDF file isn't present.)  If not, see
+// <http://www.gnu.org/licenses/> for a copy.
+// <http://www.gnu.org/licenses/> for a copy.
+//
+//
+// License:    GPL, v3, as defined and found on www.gnu.org,
+// License:    GPL, v3, as defined and found on www.gnu.org,
+//             http://www.gnu.org/licenses/gpl.html
+//             http://www.gnu.org/licenses/gpl.html
+//
+//
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+#include "config.h"
+#include "config.h"
+#include "system.h"
+#include "system.h"
+#include "coretypes.h"
+#include "coretypes.h"
+#include "tm.h"
+#include "tm.h"
+#include "common/common-target.h"
+#include "common/common-target.h"
+#include "common/common-target-def.h"
+#include "common/common-target-def.h"
+
+
+static const struct default_options zip_option_optimization_table[] =
+static const struct default_options zip_option_optimization_table[] =
+  {
+  {
+    { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
+    { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 },
+    { OPT_LEVELS_NONE, 0, NULL, 0 }
+    { OPT_LEVELS_NONE, 0, NULL, 0 }
+  };
+  };
+
+
+#undef TARGET_OPTION_OPTIMIZATION_TABLE
+#undef TARGET_OPTION_OPTIMIZATION_TABLE
+#define        TARGET_OPTION_OPTIMIZATION_TABLE        zip_option_optimization_table
+#define        TARGET_OPTION_OPTIMIZATION_TABLE        zip_option_optimization_table
+
+
+struct gcc_targetm_common      targetm_common = TARGETM_COMMON_INITIALIZER;
+struct gcc_targetm_common      targetm_common = TARGETM_COMMON_INITIALIZER;
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/aarch64/aarch64-linux.h gcc-5.3.0-zip/gcc/config/aarch64/aarch64-linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/aarch64/aarch64-linux.h gcc-5.3.0-zip/gcc/config/aarch64/aarch64-linux.h
--- gcc-5.3.0-original/gcc/config/aarch64/aarch64-linux.h       2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/aarch64/aarch64-linux.h       2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/aarch64/aarch64-linux.h    2015-07-24 12:00:26.000000000 -0400
+++ gcc-5.3.0-zip/gcc/config/aarch64/aarch64-linux.h    2015-07-24 12:00:26.000000000 -0400
@@ -21,7 +21,7 @@
@@ -21,7 +21,7 @@
 #ifndef GCC_AARCH64_LINUX_H
 #ifndef GCC_AARCH64_LINUX_H
 #define GCC_AARCH64_LINUX_H
 #define GCC_AARCH64_LINUX_H
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-aarch64%{mbig-endian:_be}%{mabi=ilp32:_ilp32}.so.1"
 
 
 #undef  ASAN_CC1_SPEC
 #undef  ASAN_CC1_SPEC
 #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"
 #define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/alpha/linux-elf.h gcc-5.3.0-zip/gcc/config/alpha/linux-elf.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/alpha/linux-elf.h gcc-5.3.0-zip/gcc/config/alpha/linux-elf.h
--- gcc-5.3.0-original/gcc/config/alpha/linux-elf.h     2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/alpha/linux-elf.h     2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/alpha/linux-elf.h  2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/alpha/linux-elf.h  2015-01-05 07:33:28.000000000 -0500
@@ -23,8 +23,8 @@
@@ -23,8 +23,8 @@
 #define EXTRA_SPECS \
 #define EXTRA_SPECS \
 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
 { "elf_dynamic_linker", ELF_DYNAMIC_LINKER },
 
 
-#define GLIBC_DYNAMIC_LINKER   "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER   "/tools/lib/ld-linux.so.2"
-#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
+#define GLIBC_DYNAMIC_LINKER   "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER   "/lib/ld-linux.so.2"
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
 #if DEFAULT_LIBC == LIBC_UCLIBC
 #if DEFAULT_LIBC == LIBC_UCLIBC
 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
 #elif DEFAULT_LIBC == LIBC_GLIBC
 #elif DEFAULT_LIBC == LIBC_GLIBC
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/arm/linux-eabi.h gcc-5.3.0-zip/gcc/config/arm/linux-eabi.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/arm/linux-eabi.h gcc-5.3.0-zip/gcc/config/arm/linux-eabi.h
--- gcc-5.3.0-original/gcc/config/arm/linux-eabi.h      2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/arm/linux-eabi.h      2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/arm/linux-eabi.h   2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/arm/linux-eabi.h   2015-01-05 07:33:28.000000000 -0500
@@ -68,8 +68,8 @@
@@ -68,8 +68,8 @@
    GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI.  */
    GLIBC_DYNAMIC_LINKER_DEFAULT and TARGET_DEFAULT_FLOAT_ABI.  */
 
 
 #undef  GLIBC_DYNAMIC_LINKER
 #undef  GLIBC_DYNAMIC_LINKER
-#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/tools/lib/ld-linux.so.3"
-#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/tools/lib/ld-linux.so.3"
-#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/tools/lib/ld-linux-armhf.so.3"
-#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/tools/lib/ld-linux-armhf.so.3"
+#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
+#define GLIBC_DYNAMIC_LINKER_SOFT_FLOAT "/lib/ld-linux.so.3"
+#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"
+#define GLIBC_DYNAMIC_LINKER_HARD_FLOAT "/lib/ld-linux-armhf.so.3"
 #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT
 #define GLIBC_DYNAMIC_LINKER_DEFAULT GLIBC_DYNAMIC_LINKER_SOFT_FLOAT
 
 
 #define GLIBC_DYNAMIC_LINKER \
 #define GLIBC_DYNAMIC_LINKER \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/arm/linux-elf.h gcc-5.3.0-zip/gcc/config/arm/linux-elf.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/arm/linux-elf.h gcc-5.3.0-zip/gcc/config/arm/linux-elf.h
--- gcc-5.3.0-original/gcc/config/arm/linux-elf.h       2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/arm/linux-elf.h       2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/arm/linux-elf.h    2015-06-23 05:26:54.000000000 -0400
+++ gcc-5.3.0-zip/gcc/config/arm/linux-elf.h    2015-06-23 05:26:54.000000000 -0400
@@ -62,7 +62,7 @@
@@ -62,7 +62,7 @@
 
 
 #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
 #define LIBGCC_SPEC "%{mfloat-abi=soft*:-lfloat} -lgcc"
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
 
 #define LINUX_TARGET_LINK_SPEC  "%{h*} \
 #define LINUX_TARGET_LINK_SPEC  "%{h*} \
    %{static:-Bstatic} \
    %{static:-Bstatic} \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/bfin/linux.h gcc-5.3.0-zip/gcc/config/bfin/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/bfin/linux.h gcc-5.3.0-zip/gcc/config/bfin/linux.h
--- gcc-5.3.0-original/gcc/config/bfin/linux.h  2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/bfin/linux.h  2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/bfin/linux.h       2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/bfin/linux.h       2015-01-05 07:33:28.000000000 -0500
@@ -45,7 +45,7 @@
@@ -45,7 +45,7 @@
   %{shared:-G -Bdynamic} \
   %{shared:-G -Bdynamic} \
   %{!shared: %{!static: \
   %{!shared: %{!static: \
    %{rdynamic:-export-dynamic} \
    %{rdynamic:-export-dynamic} \
-   -dynamic-linker /tools/lib/ld-uClibc.so.0} \
-   -dynamic-linker /tools/lib/ld-uClibc.so.0} \
+   -dynamic-linker /lib/ld-uClibc.so.0} \
+   -dynamic-linker /lib/ld-uClibc.so.0} \
    %{static}} -init __init -fini __fini"
    %{static}} -init __init -fini __fini"
 
 
 #undef TARGET_SUPPORTS_SYNC_CALLS
 #undef TARGET_SUPPORTS_SYNC_CALLS
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/cris/linux.h gcc-5.3.0-zip/gcc/config/cris/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/cris/linux.h gcc-5.3.0-zip/gcc/config/cris/linux.h
--- gcc-5.3.0-original/gcc/config/cris/linux.h  2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/cris/linux.h  2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/cris/linux.h       2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/cris/linux.h       2015-01-05 07:33:28.000000000 -0500
@@ -102,7 +102,7 @@
@@ -102,7 +102,7 @@
 #undef CRIS_DEFAULT_CPU_VERSION
 #undef CRIS_DEFAULT_CPU_VERSION
 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
 #define CRIS_DEFAULT_CPU_VERSION CRIS_CPU_NG
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
 
 
 #undef CRIS_LINK_SUBTARGET_SPEC
 #undef CRIS_LINK_SUBTARGET_SPEC
 #define CRIS_LINK_SUBTARGET_SPEC \
 #define CRIS_LINK_SUBTARGET_SPEC \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/freebsd-spec.h gcc-5.3.0-zip/gcc/config/freebsd-spec.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/freebsd-spec.h gcc-5.3.0-zip/gcc/config/freebsd-spec.h
--- gcc-5.3.0-original/gcc/config/freebsd-spec.h        2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/freebsd-spec.h        2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/freebsd-spec.h     2015-06-25 13:53:14.000000000 -0400
+++ gcc-5.3.0-zip/gcc/config/freebsd-spec.h     2015-06-25 13:53:14.000000000 -0400
@@ -129,9 +129,9 @@
@@ -129,9 +129,9 @@
 #endif
 #endif
 
 
 #if FBSD_MAJOR < 6
 #if FBSD_MAJOR < 6
-#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
-#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
+#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
+#define FBSD_DYNAMIC_LINKER "/usr/libexec/ld-elf.so.1"
 #else
 #else
-#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
-#define FBSD_DYNAMIC_LINKER "/tools/libexec/ld-elf.so.1"
+#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
+#define FBSD_DYNAMIC_LINKER "/libexec/ld-elf.so.1"
 #endif
 #endif
 
 
 /* NOTE: The freebsd-spec.h header is included also for various
 /* NOTE: The freebsd-spec.h header is included also for various
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/frv/linux.h gcc-5.3.0-zip/gcc/config/frv/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/frv/linux.h gcc-5.3.0-zip/gcc/config/frv/linux.h
--- gcc-5.3.0-original/gcc/config/frv/linux.h   2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/frv/linux.h   2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/frv/linux.h        2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/frv/linux.h        2015-01-05 07:33:28.000000000 -0500
@@ -34,7 +34,7 @@
@@ -34,7 +34,7 @@
 #define ENDFILE_SPEC \
 #define ENDFILE_SPEC \
   "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
   "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
 
 
 #undef LINK_SPEC
 #undef LINK_SPEC
 #define LINK_SPEC "\
 #define LINK_SPEC "\
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/gnu.h gcc-5.3.0-zip/gcc/config/i386/gnu.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/gnu.h gcc-5.3.0-zip/gcc/config/i386/gnu.h
--- gcc-5.3.0-original/gcc/config/i386/gnu.h    2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/i386/gnu.h    2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/i386/gnu.h 2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/i386/gnu.h 2015-01-05 07:33:28.000000000 -0500
@@ -22,7 +22,7 @@
@@ -22,7 +22,7 @@
 #define GNU_USER_LINK_EMULATION "elf_i386"
 #define GNU_USER_LINK_EMULATION "elf_i386"
 
 
 #undef GNU_USER_DYNAMIC_LINKER
 #undef GNU_USER_DYNAMIC_LINKER
-#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so"
-#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so"
+#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so"
+#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so"
 
 
 #undef STARTFILE_SPEC
 #undef STARTFILE_SPEC
 #if defined HAVE_LD_PIE
 #if defined HAVE_LD_PIE
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/kfreebsd-gnu64.h gcc-5.3.0-zip/gcc/config/i386/kfreebsd-gnu64.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/kfreebsd-gnu64.h gcc-5.3.0-zip/gcc/config/i386/kfreebsd-gnu64.h
--- gcc-5.3.0-original/gcc/config/i386/kfreebsd-gnu64.h 2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/i386/kfreebsd-gnu64.h 2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/i386/kfreebsd-gnu64.h      2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/i386/kfreebsd-gnu64.h      2015-01-05 07:33:28.000000000 -0500
@@ -22,6 +22,6 @@
@@ -22,6 +22,6 @@
 #define GNU_USER_LINK_EMULATION64 "elf_x86_64_fbsd"
 #define GNU_USER_LINK_EMULATION64 "elf_x86_64_fbsd"
 #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64_fbsd"
 #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64_fbsd"
 
 
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-kfreebsd-x86-64.so.1"
-#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld-kfreebsd-x86-64.so.1"
-#define GLIBC_DYNAMIC_LINKERX32 "/tools/lib/ld-kfreebsd-x32.so.1"
-#define GLIBC_DYNAMIC_LINKERX32 "/tools/lib/ld-kfreebsd-x32.so.1"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-kfreebsd-x86-64.so.1"
+#define GLIBC_DYNAMIC_LINKER64 "/lib/ld-kfreebsd-x86-64.so.1"
+#define GLIBC_DYNAMIC_LINKERX32 "/lib/ld-kfreebsd-x32.so.1"
+#define GLIBC_DYNAMIC_LINKERX32 "/lib/ld-kfreebsd-x32.so.1"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/kfreebsd-gnu.h gcc-5.3.0-zip/gcc/config/i386/kfreebsd-gnu.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/kfreebsd-gnu.h gcc-5.3.0-zip/gcc/config/i386/kfreebsd-gnu.h
--- gcc-5.3.0-original/gcc/config/i386/kfreebsd-gnu.h   2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/i386/kfreebsd-gnu.h   2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/i386/kfreebsd-gnu.h        2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/i386/kfreebsd-gnu.h        2015-01-05 07:33:28.000000000 -0500
@@ -19,4 +19,4 @@
@@ -19,4 +19,4 @@
 <http://www.gnu.org/licenses/>.  */
 <http://www.gnu.org/licenses/>.  */
 
 
 #define GNU_USER_LINK_EMULATION "elf_i386_fbsd"
 #define GNU_USER_LINK_EMULATION "elf_i386_fbsd"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/linux64.h gcc-5.3.0-zip/gcc/config/i386/linux64.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/linux64.h gcc-5.3.0-zip/gcc/config/i386/linux64.h
--- gcc-5.3.0-original/gcc/config/i386/linux64.h        2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/i386/linux64.h        2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/i386/linux64.h     2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/i386/linux64.h     2015-01-05 07:33:28.000000000 -0500
@@ -27,6 +27,6 @@
@@ -27,6 +27,6 @@
 #define GNU_USER_LINK_EMULATION64 "elf_x86_64"
 #define GNU_USER_LINK_EMULATION64 "elf_x86_64"
 #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
 #define GNU_USER_LINK_EMULATIONX32 "elf32_x86_64"
 
 
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2"
-#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux-x86-64.so.2"
-#define GLIBC_DYNAMIC_LINKERX32 "/tools/libx32/ld-linux-x32.so.2"
-#define GLIBC_DYNAMIC_LINKERX32 "/tools/libx32/ld-linux-x32.so.2"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
+#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux-x86-64.so.2"
+#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
+#define GLIBC_DYNAMIC_LINKERX32 "/libx32/ld-linux-x32.so.2"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/linux.h gcc-5.3.0-zip/gcc/config/i386/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/i386/linux.h gcc-5.3.0-zip/gcc/config/i386/linux.h
--- gcc-5.3.0-original/gcc/config/i386/linux.h  2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/i386/linux.h  2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/i386/linux.h       2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/i386/linux.h       2015-01-05 07:33:28.000000000 -0500
@@ -20,4 +20,4 @@
@@ -20,4 +20,4 @@
 <http://www.gnu.org/licenses/>.  */
 <http://www.gnu.org/licenses/>.  */
 
 
 #define GNU_USER_LINK_EMULATION "elf_i386"
 #define GNU_USER_LINK_EMULATION "elf_i386"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/ia64/linux.h gcc-5.3.0-zip/gcc/config/ia64/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/ia64/linux.h gcc-5.3.0-zip/gcc/config/ia64/linux.h
--- gcc-5.3.0-original/gcc/config/ia64/linux.h  2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/ia64/linux.h  2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/ia64/linux.h       2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/ia64/linux.h       2015-01-05 07:33:28.000000000 -0500
@@ -55,7 +55,7 @@
@@ -55,7 +55,7 @@
 /* Define this for shared library support because it isn't in the main
 /* Define this for shared library support because it isn't in the main
    linux.h file.  */
    linux.h file.  */
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux-ia64.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2"
 
 
 #undef LINK_SPEC
 #undef LINK_SPEC
 #define LINK_SPEC "\
 #define LINK_SPEC "\
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/knetbsd-gnu.h gcc-5.3.0-zip/gcc/config/knetbsd-gnu.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/knetbsd-gnu.h gcc-5.3.0-zip/gcc/config/knetbsd-gnu.h
--- gcc-5.3.0-original/gcc/config/knetbsd-gnu.h 2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/knetbsd-gnu.h 2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/knetbsd-gnu.h      2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/knetbsd-gnu.h      2015-01-05 07:33:28.000000000 -0500
@@ -32,4 +32,4 @@
@@ -32,4 +32,4 @@
 
 
 
 
 #undef GNU_USER_DYNAMIC_LINKER
 #undef GNU_USER_DYNAMIC_LINKER
-#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/kopensolaris-gnu.h gcc-5.3.0-zip/gcc/config/kopensolaris-gnu.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/kopensolaris-gnu.h gcc-5.3.0-zip/gcc/config/kopensolaris-gnu.h
--- gcc-5.3.0-original/gcc/config/kopensolaris-gnu.h    2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/kopensolaris-gnu.h    2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/kopensolaris-gnu.h 2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/kopensolaris-gnu.h 2015-01-05 07:33:28.000000000 -0500
@@ -31,5 +31,4 @@
@@ -31,5 +31,4 @@
   while (0)
   while (0)
 
 
 #undef GNU_USER_DYNAMIC_LINKER
 #undef GNU_USER_DYNAMIC_LINKER
-#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GNU_USER_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-
-
+#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GNU_USER_DYNAMIC_LINKER "/lib/ld.so.1"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/linux.h gcc-5.3.0-zip/gcc/config/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/linux.h gcc-5.3.0-zip/gcc/config/linux.h
--- gcc-5.3.0-original/gcc/config/linux.h       2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/linux.h       2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/linux.h    2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/linux.h    2015-01-05 07:33:28.000000000 -0500
@@ -73,10 +73,10 @@
@@ -73,10 +73,10 @@
    GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
    GLIBC_DYNAMIC_LINKER must be defined for each target using them, or
    GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
    GLIBC_DYNAMIC_LINKER32 and GLIBC_DYNAMIC_LINKER64 for targets
    supporting both 32-bit and 64-bit compilation.  */
    supporting both 32-bit and 64-bit compilation.  */
-#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKERX32 "/tools/lib/ldx32-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKERX32 "/tools/lib/ldx32-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKERX32 "/lib/ldx32-uClibc.so.0"
 #define BIONIC_DYNAMIC_LINKER "/system/bin/linker"
 #define BIONIC_DYNAMIC_LINKER "/system/bin/linker"
 #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker"
 #define BIONIC_DYNAMIC_LINKER32 "/system/bin/linker"
 #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64"
 #define BIONIC_DYNAMIC_LINKER64 "/system/bin/linker64"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/lm32/uclinux-elf.h gcc-5.3.0-zip/gcc/config/lm32/uclinux-elf.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/lm32/uclinux-elf.h gcc-5.3.0-zip/gcc/config/lm32/uclinux-elf.h
--- gcc-5.3.0-original/gcc/config/lm32/uclinux-elf.h    2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/lm32/uclinux-elf.h    2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/lm32/uclinux-elf.h 2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/lm32/uclinux-elf.h 2015-01-05 07:33:28.000000000 -0500
@@ -67,7 +67,7 @@
@@ -67,7 +67,7 @@
    %{shared:-shared} \
    %{shared:-shared} \
    %{symbolic:-Bsymbolic} \
    %{symbolic:-Bsymbolic} \
    %{rdynamic:-export-dynamic} \
    %{rdynamic:-export-dynamic} \
-   -dynamic-linker /tools/lib/ld-linux.so.2"
-   -dynamic-linker /tools/lib/ld-linux.so.2"
+   -dynamic-linker /lib/ld-linux.so.2"
+   -dynamic-linker /lib/ld-linux.so.2"
 
 
 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
 #define TARGET_OS_CPP_BUILTINS() GNU_USER_TARGET_OS_CPP_BUILTINS()
 
 
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/m68k/linux.h gcc-5.3.0-zip/gcc/config/m68k/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/m68k/linux.h gcc-5.3.0-zip/gcc/config/m68k/linux.h
--- gcc-5.3.0-original/gcc/config/m68k/linux.h  2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/m68k/linux.h  2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/m68k/linux.h       2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/m68k/linux.h       2015-01-05 07:33:28.000000000 -0500
@@ -71,7 +71,7 @@
@@ -71,7 +71,7 @@
    When the -shared link option is used a final link is not being
    When the -shared link option is used a final link is not being
    done.  */
    done.  */
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
 
 
 #undef LINK_SPEC
 #undef LINK_SPEC
 #define LINK_SPEC "-m m68kelf %{shared} \
 #define LINK_SPEC "-m m68kelf %{shared} \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/microblaze/linux.h gcc-5.3.0-zip/gcc/config/microblaze/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/microblaze/linux.h gcc-5.3.0-zip/gcc/config/microblaze/linux.h
--- gcc-5.3.0-original/gcc/config/microblaze/linux.h    2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/microblaze/linux.h    2016-04-06 17:56:01.475918570 -0400
+++ gcc-5.3.0-zip/gcc/config/microblaze/linux.h 2015-05-28 10:08:19.000000000 -0400
+++ gcc-5.3.0-zip/gcc/config/microblaze/linux.h 2015-05-28 10:08:19.000000000 -0400
@@ -28,7 +28,7 @@
@@ -28,7 +28,7 @@
 #undef TLS_NEEDS_GOT
 #undef TLS_NEEDS_GOT
 #define TLS_NEEDS_GOT 1
 #define TLS_NEEDS_GOT 1
 
 
-#define DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define DYNAMIC_LINKER "/lib/ld.so.1"
+#define DYNAMIC_LINKER "/lib/ld.so.1"
 #undef  SUBTARGET_EXTRA_SPECS
 #undef  SUBTARGET_EXTRA_SPECS
 #define SUBTARGET_EXTRA_SPECS \
 #define SUBTARGET_EXTRA_SPECS \
   { "dynamic_linker", DYNAMIC_LINKER }
   { "dynamic_linker", DYNAMIC_LINKER }
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/mips/linux.h gcc-5.3.0-zip/gcc/config/mips/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/mips/linux.h gcc-5.3.0-zip/gcc/config/mips/linux.h
--- gcc-5.3.0-original/gcc/config/mips/linux.h  2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/mips/linux.h  2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/mips/linux.h       2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/mips/linux.h       2015-01-05 07:33:28.000000000 -0500
@@ -22,20 +22,20 @@
@@ -22,20 +22,20 @@
 #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32"
 #define GNU_USER_LINK_EMULATIONN32 "elf32%{EB:b}%{EL:l}tsmipn32"
 
 
 #define GLIBC_DYNAMIC_LINKER32 \
 #define GLIBC_DYNAMIC_LINKER32 \
-  "%{mnan=2008:/tools/lib/ld-linux-mipsn8.so.1;:/tools/lib/ld.so.1}"
-  "%{mnan=2008:/tools/lib/ld-linux-mipsn8.so.1;:/tools/lib/ld.so.1}"
+  "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}"
+  "%{mnan=2008:/lib/ld-linux-mipsn8.so.1;:/lib/ld.so.1}"
 #define GLIBC_DYNAMIC_LINKER64 \
 #define GLIBC_DYNAMIC_LINKER64 \
-  "%{mnan=2008:/tools/lib64/ld-linux-mipsn8.so.1;:/tools/lib64/ld.so.1}"
-  "%{mnan=2008:/tools/lib64/ld-linux-mipsn8.so.1;:/tools/lib64/ld.so.1}"
+  "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}"
+  "%{mnan=2008:/lib64/ld-linux-mipsn8.so.1;:/lib64/ld.so.1}"
 #define GLIBC_DYNAMIC_LINKERN32 \
 #define GLIBC_DYNAMIC_LINKERN32 \
-  "%{mnan=2008:/tools/lib32/ld-linux-mipsn8.so.1;:/tools/lib32/ld.so.1}"
-  "%{mnan=2008:/tools/lib32/ld-linux-mipsn8.so.1;:/tools/lib32/ld.so.1}"
+  "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}"
+  "%{mnan=2008:/lib32/ld-linux-mipsn8.so.1;:/lib32/ld.so.1}"
 
 
 #undef UCLIBC_DYNAMIC_LINKER32
 #undef UCLIBC_DYNAMIC_LINKER32
 #define UCLIBC_DYNAMIC_LINKER32 \
 #define UCLIBC_DYNAMIC_LINKER32 \
-  "%{mnan=2008:/tools/lib/ld-uClibc-mipsn8.so.0;:/tools/lib/ld-uClibc.so.0}"
-  "%{mnan=2008:/tools/lib/ld-uClibc-mipsn8.so.0;:/tools/lib/ld-uClibc.so.0}"
+  "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}"
+  "%{mnan=2008:/lib/ld-uClibc-mipsn8.so.0;:/lib/ld-uClibc.so.0}"
 #undef UCLIBC_DYNAMIC_LINKER64
 #undef UCLIBC_DYNAMIC_LINKER64
 #define UCLIBC_DYNAMIC_LINKER64 \
 #define UCLIBC_DYNAMIC_LINKER64 \
-  "%{mnan=2008:/tools/lib/ld64-uClibc-mipsn8.so.0;:/tools/lib/ld64-uClibc.so.0}"
-  "%{mnan=2008:/tools/lib/ld64-uClibc-mipsn8.so.0;:/tools/lib/ld64-uClibc.so.0}"
+  "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}"
+  "%{mnan=2008:/lib/ld64-uClibc-mipsn8.so.0;:/lib/ld64-uClibc.so.0}"
 #define UCLIBC_DYNAMIC_LINKERN32 \
 #define UCLIBC_DYNAMIC_LINKERN32 \
-  "%{mnan=2008:/tools/lib32/ld-uClibc-mipsn8.so.0;:/tools/lib32/ld-uClibc.so.0}"
-  "%{mnan=2008:/tools/lib32/ld-uClibc-mipsn8.so.0;:/tools/lib32/ld-uClibc.so.0}"
+  "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}"
+  "%{mnan=2008:/lib32/ld-uClibc-mipsn8.so.0;:/lib32/ld-uClibc.so.0}"
 
 
 #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
 #define BIONIC_DYNAMIC_LINKERN32 "/system/bin/linker32"
 #define GNU_USER_DYNAMIC_LINKERN32 \
 #define GNU_USER_DYNAMIC_LINKERN32 \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/mn10300/linux.h gcc-5.3.0-zip/gcc/config/mn10300/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/mn10300/linux.h gcc-5.3.0-zip/gcc/config/mn10300/linux.h
--- gcc-5.3.0-original/gcc/config/mn10300/linux.h       2016-04-02 11:53:47.213604913 -0400
--- gcc-5.3.0-original/gcc/config/mn10300/linux.h       2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/mn10300/linux.h    2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/mn10300/linux.h    2015-01-05 07:33:28.000000000 -0500
@@ -32,7 +32,7 @@
@@ -32,7 +32,7 @@
 #undef  ASM_SPEC
 #undef  ASM_SPEC
 #define ASM_SPEC ""
 #define ASM_SPEC ""
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
 
 
 #undef  LINK_SPEC
 #undef  LINK_SPEC
 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
 #define LINK_SPEC "%{mrelax:--relax} %{shared:-shared} \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/pa/pa-linux.h gcc-5.3.0-zip/gcc/config/pa/pa-linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/pa/pa-linux.h gcc-5.3.0-zip/gcc/config/pa/pa-linux.h
--- gcc-5.3.0-original/gcc/config/pa/pa-linux.h 2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/pa/pa-linux.h 2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/pa/pa-linux.h      2015-09-24 20:04:26.000000000 -0400
+++ gcc-5.3.0-zip/gcc/config/pa/pa-linux.h      2015-09-24 20:04:26.000000000 -0400
@@ -37,7 +37,7 @@
@@ -37,7 +37,7 @@
 /* Define this for shared library support because it isn't in the main
 /* Define this for shared library support because it isn't in the main
    linux.h file.  */
    linux.h file.  */
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
 
 
 #undef LINK_SPEC
 #undef LINK_SPEC
 #define LINK_SPEC "\
 #define LINK_SPEC "\
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/rs6000/linux64.h gcc-5.3.0-zip/gcc/config/rs6000/linux64.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/rs6000/linux64.h gcc-5.3.0-zip/gcc/config/rs6000/linux64.h
--- gcc-5.3.0-original/gcc/config/rs6000/linux64.h      2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/rs6000/linux64.h      2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/rs6000/linux64.h   2015-03-09 19:18:57.000000000 -0400
+++ gcc-5.3.0-zip/gcc/config/rs6000/linux64.h   2015-03-09 19:18:57.000000000 -0400
@@ -357,14 +357,14 @@
@@ -357,14 +357,14 @@
 #undef LINK_OS_DEFAULT_SPEC
 #undef LINK_OS_DEFAULT_SPEC
 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
 #define LINK_OS_DEFAULT_SPEC "%(link_os_linux)"
 
 
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
 #ifdef LINUX64_DEFAULT_ABI_ELFv2
 #ifdef LINUX64_DEFAULT_ABI_ELFv2
-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/tools/lib64/ld64.so.1;:/tools/lib64/ld64.so.2}"
-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/tools/lib64/ld64.so.1;:/tools/lib64/ld64.so.2}"
+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/lib64/ld64.so.1;:/lib64/ld64.so.2}"
+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv1:/lib64/ld64.so.1;:/lib64/ld64.so.2}"
 #else
 #else
-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/tools/lib64/ld64.so.2;:/tools/lib64/ld64.so.1}"
-#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/tools/lib64/ld64.so.2;:/tools/lib64/ld64.so.1}"
+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/lib64/ld64.so.2;:/lib64/ld64.so.1}"
+#define GLIBC_DYNAMIC_LINKER64 "%{mabi=elfv2:/lib64/ld64.so.2;:/lib64/ld64.so.1}"
 #endif
 #endif
-#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER32 "/lib/ld-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER64 "/lib/ld64-uClibc.so.0"
 #if DEFAULT_LIBC == LIBC_UCLIBC
 #if DEFAULT_LIBC == LIBC_UCLIBC
 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
 #elif DEFAULT_LIBC == LIBC_GLIBC
 #elif DEFAULT_LIBC == LIBC_GLIBC
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/rs6000/sysv4.h gcc-5.3.0-zip/gcc/config/rs6000/sysv4.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/rs6000/sysv4.h gcc-5.3.0-zip/gcc/config/rs6000/sysv4.h
--- gcc-5.3.0-original/gcc/config/rs6000/sysv4.h        2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/rs6000/sysv4.h        2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/rs6000/sysv4.h     2015-09-24 09:46:45.000000000 -0400
+++ gcc-5.3.0-zip/gcc/config/rs6000/sysv4.h     2015-09-24 09:46:45.000000000 -0400
@@ -757,8 +757,8 @@
@@ -757,8 +757,8 @@
 
 
 #define LINK_START_LINUX_SPEC ""
 #define LINK_START_LINUX_SPEC ""
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
-#define UCLIBC_DYNAMIC_LINKER "/tools/lib/ld-uClibc.so.0"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
+#define UCLIBC_DYNAMIC_LINKER "/lib/ld-uClibc.so.0"
 #if DEFAULT_LIBC == LIBC_UCLIBC
 #if DEFAULT_LIBC == LIBC_UCLIBC
 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
 #define CHOOSE_DYNAMIC_LINKER(G, U) "%{mglibc:" G ";:" U "}"
 #elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
 #elif !defined (DEFAULT_LIBC) || DEFAULT_LIBC == LIBC_GLIBC
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/s390/linux.h gcc-5.3.0-zip/gcc/config/s390/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/s390/linux.h gcc-5.3.0-zip/gcc/config/s390/linux.h
--- gcc-5.3.0-original/gcc/config/s390/linux.h  2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/s390/linux.h  2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/s390/linux.h       2015-05-11 03:14:10.000000000 -0400
+++ gcc-5.3.0-zip/gcc/config/s390/linux.h       2015-05-11 03:14:10.000000000 -0400
@@ -60,8 +60,8 @@
@@ -60,8 +60,8 @@
 #define MULTILIB_DEFAULTS { "m31" }
 #define MULTILIB_DEFAULTS { "m31" }
 #endif
 #endif
 
 
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
-#define GLIBC_DYNAMIC_LINKER64 "/tools/lib/ld64.so.1"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
+#define GLIBC_DYNAMIC_LINKER64 "/lib/ld64.so.1"
 
 
 #undef  LINK_SPEC
 #undef  LINK_SPEC
 #define LINK_SPEC \
 #define LINK_SPEC \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/sh/linux.h gcc-5.3.0-zip/gcc/config/sh/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/sh/linux.h gcc-5.3.0-zip/gcc/config/sh/linux.h
--- gcc-5.3.0-original/gcc/config/sh/linux.h    2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/sh/linux.h    2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/sh/linux.h 2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/sh/linux.h 2015-01-05 07:33:28.000000000 -0500
@@ -43,7 +43,7 @@
@@ -43,7 +43,7 @@
 
 
 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
 #define TARGET_ASM_FILE_END file_end_indicate_exec_stack
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
 
 #undef SUBTARGET_LINK_EMUL_SUFFIX
 #undef SUBTARGET_LINK_EMUL_SUFFIX
 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
 #define SUBTARGET_LINK_EMUL_SUFFIX "_linux"
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/sparc/linux64.h gcc-5.3.0-zip/gcc/config/sparc/linux64.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/sparc/linux64.h gcc-5.3.0-zip/gcc/config/sparc/linux64.h
--- gcc-5.3.0-original/gcc/config/sparc/linux64.h       2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/sparc/linux64.h       2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/sparc/linux64.h    2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/sparc/linux64.h    2015-01-05 07:33:28.000000000 -0500
@@ -84,8 +84,8 @@
@@ -84,8 +84,8 @@
    When the -shared link option is used a final link is not being
    When the -shared link option is used a final link is not being
    done.  */
    done.  */
 
 
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER32 "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER64 "/tools/lib64/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER32 "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER64 "/lib64/ld-linux.so.2"
 
 
 #ifdef SPARC_BI_ARCH
 #ifdef SPARC_BI_ARCH
 
 
@@ -193,7 +193,7 @@
@@ -193,7 +193,7 @@
 #else /* !SPARC_BI_ARCH */
 #else /* !SPARC_BI_ARCH */
 
 
 #undef LINK_SPEC
 #undef LINK_SPEC
-#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
-#define LINK_SPEC "-m elf64_sparc -Y P,%R/tools/lib64 %{shared:-shared} \
+#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
+#define LINK_SPEC "-m elf64_sparc -Y P,%R/usr/lib64 %{shared:-shared} \
   %{!shared: \
   %{!shared: \
     %{!static: \
     %{!static: \
       %{rdynamic:-export-dynamic} \
       %{rdynamic:-export-dynamic} \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/sparc/linux.h gcc-5.3.0-zip/gcc/config/sparc/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/sparc/linux.h gcc-5.3.0-zip/gcc/config/sparc/linux.h
--- gcc-5.3.0-original/gcc/config/sparc/linux.h 2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/sparc/linux.h 2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/sparc/linux.h      2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/sparc/linux.h      2015-01-05 07:33:28.000000000 -0500
@@ -83,7 +83,7 @@
@@ -83,7 +83,7 @@
    When the -shared link option is used a final link is not being
    When the -shared link option is used a final link is not being
    done.  */
    done.  */
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
 
 
 #undef  LINK_SPEC
 #undef  LINK_SPEC
 #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \
 #define LINK_SPEC "-m elf32_sparc %{shared:-shared} \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/vax/linux.h gcc-5.3.0-zip/gcc/config/vax/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/vax/linux.h gcc-5.3.0-zip/gcc/config/vax/linux.h
--- gcc-5.3.0-original/gcc/config/vax/linux.h   2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/vax/linux.h   2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/vax/linux.h        2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/vax/linux.h        2015-01-05 07:33:28.000000000 -0500
@@ -41,7 +41,7 @@
@@ -41,7 +41,7 @@
   %{!shared: \
   %{!shared: \
     %{!static: \
     %{!static: \
       %{rdynamic:-export-dynamic} \
       %{rdynamic:-export-dynamic} \
-      -dynamic-linker /tools/lib/ld.so.1} \
-      -dynamic-linker /tools/lib/ld.so.1} \
+      -dynamic-linker /lib/ld.so.1} \
+      -dynamic-linker /lib/ld.so.1} \
     %{static:-static}}"
     %{static:-static}}"
 
 
 #undef  WCHAR_TYPE
 #undef  WCHAR_TYPE
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/xtensa/linux.h gcc-5.3.0-zip/gcc/config/xtensa/linux.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/xtensa/linux.h gcc-5.3.0-zip/gcc/config/xtensa/linux.h
--- gcc-5.3.0-original/gcc/config/xtensa/linux.h        2016-04-02 11:53:47.217604879 -0400
--- gcc-5.3.0-original/gcc/config/xtensa/linux.h        2016-04-06 17:56:01.479918541 -0400
+++ gcc-5.3.0-zip/gcc/config/xtensa/linux.h     2015-01-05 07:33:28.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/xtensa/linux.h     2015-01-05 07:33:28.000000000 -0500
@@ -44,7 +44,7 @@
@@ -44,7 +44,7 @@
   %{mlongcalls:--longcalls} \
   %{mlongcalls:--longcalls} \
   %{mno-longcalls:--no-longcalls}"
   %{mno-longcalls:--no-longcalls}"
 
 
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
-#define GLIBC_DYNAMIC_LINKER "/tools/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
+#define GLIBC_DYNAMIC_LINKER "/lib/ld.so.1"
 
 
 #undef LINK_SPEC
 #undef LINK_SPEC
 #define LINK_SPEC \
 #define LINK_SPEC \
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/zip/netbsd.h gcc-5.3.0-zip/gcc/config/zip/netbsd.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/zip/netbsd.h gcc-5.3.0-zip/gcc/config/zip/netbsd.h
--- gcc-5.3.0-original/gcc/config/zip/netbsd.h  1969-12-31 19:00:00.000000000 -0500
--- gcc-5.3.0-original/gcc/config/zip/netbsd.h  1969-12-31 19:00:00.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/zip/netbsd.h       2016-01-30 15:04:14.796899050 -0500
+++ gcc-5.3.0-zip/gcc/config/zip/netbsd.h       2016-01-30 15:04:14.796899050 -0500
@@ -0,0 +1,82 @@
@@ -0,0 +1,82 @@
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//
+// Filename:   netbsd.h
+// Filename:   netbsd.h
+//
+//
+// Project:    Zip CPU backend for the GNU Compiler Collection
+// Project:    Zip CPU backend for the GNU Compiler Collection
+//
+//
+// Purpose:
+// Purpose:
+//
+//
+// Creator:    Dan Gisselquist, Ph.D.
+// Creator:    Dan Gisselquist, Ph.D.
+//             Gisselquist Technology, LLC
+//             Gisselquist Technology, LLC
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//
+// Copyright (C) 2016, Gisselquist Technology, LLC
+// Copyright (C) 2016, Gisselquist Technology, LLC
+//
+//
+// This program is free software (firmware): you can redistribute it and/or
+// This program is free software (firmware): you can redistribute it and/or
+// modify it under the terms of  the GNU General Public License as published
+// modify it under the terms of  the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or (at
+// by the Free Software Foundation, either version 3 of the License, or (at
+// your option) any later version.
+// your option) any later version.
+//
+//
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+// for more details.
+// for more details.
+//
+//
+// You should have received a copy of the GNU General Public License along
+// You should have received a copy of the GNU General Public License along
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
+// target there if the PDF file isn't present.)  If not, see
+// target there if the PDF file isn't present.)  If not, see
+// <http://www.gnu.org/licenses/> for a copy.
+// <http://www.gnu.org/licenses/> for a copy.
+//
+//
+// License:    GPL, v3, as defined and found on www.gnu.org,
+// License:    GPL, v3, as defined and found on www.gnu.org,
+//             http://www.gnu.org/licenses/gpl.html
+//             http://www.gnu.org/licenses/gpl.html
+//
+//
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+#ifndef        ZIP_NETBSD_H
+#ifndef        ZIP_NETBSD_H
+#define        ZIP_NETBSD_H
+#define        ZIP_NETBSD_H
+
+
+/* Define default target values. */
+/* Define default target values. */
+
+
+#undef MACHINE_TYPE
+#undef MACHINE_TYPE
+#define        MACHINE_TYPE    "NetBSD/Zip ELF"
+#define        MACHINE_TYPE    "NetBSD/Zip ELF"
+
+
+#undef TARGET_OS_CPP_BUILTINS
+#undef TARGET_OS_CPP_BUILTINS
+#define        TARGET_OS_CPP_BUILTINS()        \
+#define        TARGET_OS_CPP_BUILTINS()        \
+       do { NETBSD_OS_CPP_BUILTINS_ELF();              \
+       do { NETBSD_OS_CPP_BUILTINS_ELF();              \
+       builtin_define("__ZIPCPU__");                   \
+       builtin_define("__ZIPCPU__");                   \
+       builtin_assert("cpu=zip");                      \
+       builtin_assert("cpu=zip");                      \
+       builtin_assert("machine=zip");                  \
+       builtin_assert("machine=zip");                  \
+       } while(0);
+       } while(0);
+
+
+#undef CPP_SPEC
+#undef CPP_SPEC
+#define        CPP_SPEC        NETBSD_CPP_SPEC
+#define        CPP_SPEC        NETBSD_CPP_SPEC
+
+
+#undef STARTFILE_SPEC
+#undef STARTFILE_SPEC
+#define        STARTFILE_SPEC  NETBSD_STARTFILE_SPEC
+#define        STARTFILE_SPEC  NETBSD_STARTFILE_SPEC
+
+
+#undef ENDFILE_SPEC
+#undef ENDFILE_SPEC
+#define        ENDFILE_SPEC    NETBSD_ENDFILE_SPEC
+#define        ENDFILE_SPEC    NETBSD_ENDFILE_SPEC
+
+
+#undef LIB_SPEC
+#undef LIB_SPEC
+#define        LIB_SPEC        NETBSD_LIB_SPEC
+#define        LIB_SPEC        NETBSD_LIB_SPEC
+
+
+#undef TARGET_VERSION
+#undef TARGET_VERSION
+#define        TARGET_VERSION  fprintf(stderr, " (%s)", MACHINE_TYPE);
+#define        TARGET_VERSION  fprintf(stderr, " (%s)", MACHINE_TYPE);
+
+
+/* Make gcc agree with <machine/ansi.h> */
+/* Make gcc agree with <machine/ansi.h> */
+
+
+#undef WCHAR_TYPE
+#undef WCHAR_TYPE
+#define        WCHAR_TYPE      "int"
+#define        WCHAR_TYPE      "int"
+
+
+#undef WCHAR_TYPE_SIZE
+#undef WCHAR_TYPE_SIZE
+#define        WCHAR_TYPE_SIZE 32
+#define        WCHAR_TYPE_SIZE 32
+
+
+#undef WINT_TYPE
+#undef WINT_TYPE
+#define        WINT_TYPE       "int"
+#define        WINT_TYPE       "int"
+
+
+/* Clean up after the generic Zip/ELF configuration. */
+/* Clean up after the generic Zip/ELF configuration. */
+#undef MD_EXEC_PREFIX
+#undef MD_EXEC_PREFIX
+#undef MD_STARTFILE_PREFIX
+#undef MD_STARTFILE_PREFIX
+
+
+#endif /* ZIP_NETBSD_H */
+#endif /* ZIP_NETBSD_H */
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/zip/t-zip gcc-5.3.0-zip/gcc/config/zip/t-zip
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/zip/t-zip gcc-5.3.0-zip/gcc/config/zip/t-zip
--- gcc-5.3.0-original/gcc/config/zip/t-zip     1969-12-31 19:00:00.000000000 -0500
--- gcc-5.3.0-original/gcc/config/zip/t-zip     1969-12-31 19:00:00.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/zip/t-zip  2016-02-04 19:00:59.939652587 -0500
+++ gcc-5.3.0-zip/gcc/config/zip/t-zip  2016-02-04 19:00:59.939652587 -0500
@@ -0,0 +1,47 @@
@@ -0,0 +1,47 @@
+################################################################################
+################################################################################
+##
+##
+## Filename:   t-zip
+## Filename:   t-zip
+##
+##
+## Project:    Zip CPU backend for the GNU Compiler Collection
+## Project:    Zip CPU backend for the GNU Compiler Collection
+##
+##
+## Purpose:
+## Purpose:
+##
+##
+## Creator:    Dan Gisselquist, Ph.D.
+## Creator:    Dan Gisselquist, Ph.D.
+##             Gisselquist Technology, LLC
+##             Gisselquist Technology, LLC
+##
+##
+################################################################################
+################################################################################
+##
+##
+## Copyright (C) 2016, Gisselquist Technology, LLC
+## Copyright (C) 2016, Gisselquist Technology, LLC
+##
+##
+## This program is free software (firmware): you can redistribute it and/or
+## This program is free software (firmware): you can redistribute it and/or
+## modify it under the terms of  the GNU General Public License as published
+## modify it under the terms of  the GNU General Public License as published
+## by the Free Software Foundation, either version 3 of the License, or (at
+## by the Free Software Foundation, either version 3 of the License, or (at
+## your option) any later version.
+## your option) any later version.
+##
+##
+## This program is distributed in the hope that it will be useful, but WITHOUT
+## This program is distributed in the hope that it will be useful, but WITHOUT
+## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+## ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+## for more details.
+## for more details.
+##
+##
+## You should have received a copy of the GNU General Public License along
+## You should have received a copy of the GNU General Public License along
+## with this program.  (It's in the $(ROOT)/doc directory, run make with no
+## with this program.  (It's in the $(ROOT)/doc directory, run make with no
+## target there if the PDF file isn't present.)  If not, see
+## target there if the PDF file isn't present.)  If not, see
+## <http://www.gnu.org/licenses/> for a copy.
+## <http://www.gnu.org/licenses/> for a copy.
+##
+##
+## License:    GPL, v3, as defined and found on www.gnu.org,
+## License:    GPL, v3, as defined and found on www.gnu.org,
+##             http://www.gnu.org/licenses/gpl.html
+##             http://www.gnu.org/licenses/gpl.html
+##
+##
+##
+##
+################################################################################
+################################################################################
+
+
+FPBIT = fp-bit.c
+FPBIT = fp-bit.c
+DPBIT = dp-bit.c
+DPBIT = dp-bit.c
+
+
+# dp-bit.c: $(srcdir)/config/fp-bit.c
+# dp-bit.c: $(srcdir)/config/fp-bit.c
+       # cat $(srcdir)/config/fp-bit.c > dp-bit.c
+       # cat $(srcdir)/config/fp-bit.c > dp-bit.c
+#
+#
+# fp-bit.c: $(srcdir)/config/fp-bit.c
+# fp-bit.c: $(srcdir)/config/fp-bit.c
+       # echo '#define FLOAT" > fp-bit.c
+       # echo '#define FLOAT" > fp-bit.c
+       # cat $(srcdir)/config/fp-bit.c >> fp-bit.c
+       # cat $(srcdir)/config/fp-bit.c >> fp-bit.c
+
+
+
+
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/zip/zip.c gcc-5.3.0-zip/gcc/config/zip/zip.c
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/zip/zip.c gcc-5.3.0-zip/gcc/config/zip/zip.c
--- gcc-5.3.0-original/gcc/config/zip/zip.c     1969-12-31 19:00:00.000000000 -0500
--- gcc-5.3.0-original/gcc/config/zip/zip.c     1969-12-31 19:00:00.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/zip/zip.c  2016-04-01 06:26:30.217272207 -0400
+++ gcc-5.3.0-zip/gcc/config/zip/zip.c  2016-04-06 17:47:47.255349663 -0400
@@ -0,0 +1,2341 @@
@@ -0,0 +1,2099 @@
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//
+// Filename:   zip.c
+// Filename:   zip.c
+//
+//
+// Project:    Zip CPU backend for the GNU Compiler Collection
+// Project:    Zip CPU backend for the GNU Compiler Collection
+//
+//
+// Purpose:
+// Purpose:
+//
+//
+// Creator:    Dan Gisselquist, Ph.D.
+// Creator:    Dan Gisselquist, Ph.D.
+//             Gisselquist Technology, LLC
+//             Gisselquist Technology, LLC
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//
+// Copyright (C) 2016, Gisselquist Technology, LLC
+// Copyright (C) 2016, Gisselquist Technology, LLC
+//
+//
+// This program is free software (firmware): you can redistribute it and/or
+// This program is free software (firmware): you can redistribute it and/or
+// modify it under the terms of  the GNU General Public License as published
+// modify it under the terms of  the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or (at
+// by the Free Software Foundation, either version 3 of the License, or (at
+// your option) any later version.
+// your option) any later version.
+//
+//
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+// for more details.
+// for more details.
+//
+//
+// You should have received a copy of the GNU General Public License along
+// You should have received a copy of the GNU General Public License along
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
+// target there if the PDF file isn't present.)  If not, see
+// target there if the PDF file isn't present.)  If not, see
+// <http://www.gnu.org/licenses/> for a copy.
+// <http://www.gnu.org/licenses/> for a copy.
+//
+//
+// License:    GPL, v3, as defined and found on www.gnu.org,
+// License:    GPL, v3, as defined and found on www.gnu.org,
+//             http://www.gnu.org/licenses/gpl.html
+//             http://www.gnu.org/licenses/gpl.html
+//
+//
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+#include "config.h"
+#include "config.h"
+#include "system.h"
+#include "system.h"
+#include "coretypes.h"
+#include "coretypes.h"
+#include "tm.h"
+#include "tm.h"
+#include "rtl.h"
+#include "rtl.h"
+#include "dominance.h"
+#include "dominance.h"
+#include "cfg.h"
+#include "cfg.h"
+#include "cfgrtl.h"
+#include "cfgrtl.h"
+#include "cfganal.h"
+#include "cfganal.h"
+#include "lcm.h"
+#include "lcm.h"
+#include "cfgbuild.h"
+#include "cfgbuild.h"
+#include "cfgcleanup.h"
+#include "cfgcleanup.h"
+#include "predict.h"
+#include "predict.h"
+#include "basic-block.h"
+#include "basic-block.h"
+#include "df.h"
+#include "df.h"
+#include "hashtab.h"
+#include "hashtab.h"
+#include "hash-set.h"
+#include "hash-set.h"
+#include "machmode.h"
+#include "machmode.h"
+#include "symtab.h"
+#include "symtab.h"
+#include "rtlhash.h"
+#include "rtlhash.h"
+#include "tree.h"
+#include "tree.h"
+#include "regs.h"
+#include "regs.h"
+#include "hard-reg-set.h"
+#include "hard-reg-set.h"
+#include "real.h"
+#include "real.h"
+#include "insn-config.h"
+#include "insn-config.h"
+#include "conditions.h"
+#include "conditions.h"
+#include "output.h"
+#include "output.h"
+#include "insn-attr.h"
+#include "insn-attr.h"
+#include "flags.h"
+#include "flags.h"
+#include "expr.h"
+#include "expr.h"
+#include "function.h"
+#include "function.h"
+#include "recog.h"
+#include "recog.h"
+#include "toplev.h"
+#include "toplev.h"
+#include "ggc.h"
+#include "ggc.h"
+#include "builtins.h"
+#include "builtins.h"
+#include "calls.h"
+#include "calls.h"
+#include "langhooks.h"
+#include "langhooks.h"
+#include "optabs.h"
+#include "optabs.h"
+#include "explow.h"
+#include "explow.h"
+#include "emit-rtl.h"
+#include "emit-rtl.h"
 
+#include "ifcvt.h"
+
+
+// #include "tmp_p.h"
+// #include "tmp_p.h"
+#include "target.h"
+#include "target.h"
+#include "target-def.h"
+#include "target-def.h"
+// #include "tm-constrs.h"
+// #include "tm-constrs.h"
+// #include "tm-preds.h"
+#include "tm-preds.h"
+
+
+#include "diagnostic.h"
+#include "diagnostic.h"
+// #include "integrate.h"
+// #include "integrate.h"
+
+
+// static int  zip_arg_partial_bytes(CUMULATIVE_ARGS *, enum machine_mode, tree, bool);
+// static int  zip_arg_partial_bytes(CUMULATIVE_ARGS *, enum machine_mode, tree, bool);
+// static      bool    zip_pass_by_reference(CUMULATIVE_ARGS *, enum machine_mode, const_tree, bool);
+// static      bool    zip_pass_by_reference(CUMULATIVE_ARGS *, enum machine_mode, const_tree, bool);
+static bool    zip_return_in_memory(const_tree, const_tree);
+static bool    zip_return_in_memory(const_tree, const_tree);
+static bool    zip_frame_pointer_required(void);
+static bool    zip_frame_pointer_required(void);
+// static      bool    zip_must_pass_in_stack(enum machine_mode, const_tree);
 
+
+
+// static      void    zip_setup_incoming_varargs(CUMULATIVE_ARGS *, enum machine_mode, tree, int *, int);
 
+static void zip_function_arg_advance(cumulative_args_t ca, enum machine_mode mode,
+static void zip_function_arg_advance(cumulative_args_t ca, enum machine_mode mode,
+               const_tree type, bool named);
+               const_tree type, bool named);
+static rtx zip_function_arg(cumulative_args_t ca, enum machine_mode mode, const_tree type, bool named);
+static rtx zip_function_arg(cumulative_args_t ca, enum machine_mode mode, const_tree type, bool named);
+
+
+static void    zip_asm_trampoline_template(FILE *);
+static void    zip_asm_trampoline_template(FILE *);
+static void    zip_trampoline_init(rtx, tree, rtx);
+static void    zip_trampoline_init(rtx, tree, rtx);
+static void    zip_init_builtins(void);
+static void    zip_init_builtins(void);
+static tree zip_builtin_decl(unsigned, bool);
+static tree zip_builtin_decl(unsigned, bool);
+// static void zip_asm_output_anchor(rtx x);
+// static void zip_asm_output_anchor(rtx x);
+       void    zip_asm_output_def(FILE *s, const char *n, const char *v);
+       void    zip_asm_output_def(FILE *s, const char *n, const char *v);
+       void    zip_update_cc_notice(rtx exp, rtx_insn *insn);
 
+static rtx     zip_expand_builtin(tree exp, rtx target, rtx subtarget,
+static rtx     zip_expand_builtin(tree exp, rtx target, rtx subtarget,
+                       enum machine_mode tmode, int    ignore);
+                       enum machine_mode tmode, int    ignore);
+static bool    zip_scalar_mode_supported_p(enum machine_mode mode);
+static bool    zip_scalar_mode_supported_p(enum machine_mode mode);
+static bool    zip_libgcc_floating_mode_supported_p(enum machine_mode mode);
+static bool    zip_libgcc_floating_mode_supported_p(enum machine_mode mode);
+static int     zip_address_cost(rtx addr, enum machine_mode mode, addr_space_t as, bool spd);
+static int     zip_address_cost(rtx addr, enum machine_mode mode, addr_space_t as, bool spd);
+static bool    zip_mode_dependent_address_p(const_rtx addr, addr_space_t);
+static bool    zip_mode_dependent_address_p(const_rtx addr, addr_space_t);
+static unsigned HOST_WIDE_INT  zip_const_anchor = 0x20000;
+static unsigned HOST_WIDE_INT  zip_const_anchor = 0x20000;
+static          HOST_WIDE_INT  zip_min_opb_imm = -0x200000;
+static          HOST_WIDE_INT  zip_min_opb_imm = -0x20000;
+static          HOST_WIDE_INT  zip_max_opb_imm =  0x1fffff;
+static          HOST_WIDE_INT  zip_max_opb_imm =  0x1ffff;
+static          HOST_WIDE_INT  zip_min_anchor_offset = -0x20000;
+static          HOST_WIDE_INT  zip_min_anchor_offset = -0x20000;
+static          HOST_WIDE_INT  zip_max_anchor_offset =  0x1ffff;
+static          HOST_WIDE_INT  zip_max_anchor_offset =  0x1ffff;
+static          HOST_WIDE_INT  zip_min_mov_offset = -0x1000;
+static          HOST_WIDE_INT  zip_min_mov_offset = -0x1000;
+static          HOST_WIDE_INT  zip_max_mov_offset =  0x0fff;
+static          HOST_WIDE_INT  zip_max_mov_offset =  0x0fff;
+static int     zip_sched_issue_rate(void) { return 1; }
+static int     zip_sched_issue_rate(void) { return 1; }
+static bool    zip_legitimate_address_p(machine_mode, rtx, bool);
+static bool    zip_legitimate_address_p(machine_mode, rtx, bool);
+static bool    zip_legitimate_move_operand_p(machine_mode, rtx, bool);
+static bool    zip_legitimate_move_operand_p(machine_mode, rtx, bool);
+       void    zip_debug_rtx_pfx(const char *, const_rtx x);
+       void    zip_debug_rtx_pfx(const char *, const_rtx x);
+       void    zip_debug_rtx(const_rtx x);
+       void    zip_debug_rtx(const_rtx x);
+static void    zip_override_options(void);
+static void    zip_override_options(void);
+static bool    zip_can_eliminate(int from ATTRIBUTE_UNUSED, int to);
+static bool    zip_can_eliminate(int from ATTRIBUTE_UNUSED, int to);
+static int     zip_memory_move_cost(machine_mode, reg_class_t, bool);
+static int     zip_memory_move_cost(machine_mode, reg_class_t, bool);
+static rtx     zip_legitimize_address(rtx x, rtx oldx, machine_mode mode);
+static rtx     zip_legitimize_address(rtx x, rtx oldx, machine_mode mode);
+static bool    zip_cannot_modify_jumps_p(void);
+static bool    zip_cannot_modify_jumps_p(void);
 
+#ifdef HAVE_cc0
 
+       void    zip_update_cc_notice(rtx exp, rtx_insn *insn);
 
+#error "We're not supposed to have CC0 anymore"
 
+#else
 
+static bool    zip_fixed_condition_code_regs(unsigned int *a, unsigned int *b);
 
+#endif
+
+
+
+
+#define        ALL_DEBUG_OFF   false
+#define        ALL_DEBUG_OFF   false
+#define        ALL_DEBUG_ON    false
+#define        ALL_DEBUG_ON    false
+
+
+enum ZIP_BUILTIN_ID_CODE {
+enum ZIP_BUILTIN_ID_CODE {
+       ZIP_BUILTIN_RTU,
+       ZIP_BUILTIN_RTU,
+       ZIP_BUILTIN_HALT,
+       ZIP_BUILTIN_HALT,
+       ZIP_BUILTIN_IDLE,
+       ZIP_BUILTIN_IDLE,
+       ZIP_BUILTIN_SYSCALL,
+       ZIP_BUILTIN_SYSCALL,
+       ZIP_BUILTIN_SAVE_CONTEXT,
+       ZIP_BUILTIN_SAVE_CONTEXT,
+       ZIP_BUILTIN_RESTORE_CONTEXT,
+       ZIP_BUILTIN_RESTORE_CONTEXT,
+       ZIP_BUILTIN_BITREV,
+       ZIP_BUILTIN_BITREV,
+       ZIP_BUILTIN_CC,
+       ZIP_BUILTIN_CC,
+       ZIP_BUILTIN_UCC,
+       ZIP_BUILTIN_UCC,
+       ZIP_BUILTIN_MAX
+       ZIP_BUILTIN_MAX
+};
+};
+
+
+static GTY (()) tree   zip_builtins[(int)ZIP_BUILTIN_MAX];
+static GTY (()) tree   zip_builtins[(int)ZIP_BUILTIN_MAX];
+static enum insn_code  zip_builtins_icode[(int)ZIP_BUILTIN_MAX];
+static enum insn_code  zip_builtins_icode[(int)ZIP_BUILTIN_MAX];
+
+
+
+
+#include "gt-zip.h"
+#include "gt-zip.h"
+
+
+/* The Global 'targetm' Variable. */
+/* The Global 'targetm' Variable. */
+struct gcc_target      targetm = TARGET_INITIALIZER;
+struct gcc_target      targetm = TARGET_INITIALIZER;
+
+
+
+
+enum   reg_class zip_reg_class(int);
+enum   reg_class zip_reg_class(int);
+
+
+#define        LOSE_AND_RETURN(msgid, x)               \
+#define        LOSE_AND_RETURN(msgid, x)               \
+       do {                                    \
+       do {                                    \
+               zip_operand_lossage(msgid, x);  \
+               zip_operand_lossage(msgid, x);  \
+               return;                         \
+               return;                         \
+       } while(0)
+       } while(0)
+
+
+/* Per-function machine data. */
+/* Per-function machine data. */
+struct GTY(()) machine_function
+struct GTY(()) machine_function
+{
+{
+       /* number of pretented arguments for varargs */
+       /* number of pretented arguments for varargs */
+       int     pretend_size;
+       int     pretend_size;
+
+
+       /* Number of bytes saved on the stack for local variables. */
+       /* Number of bytes saved on the stack for local variables. */
+       int     local_vars_size;
+       int     local_vars_size;
+
+
+       /* Number of bytes saved on stack for register save area */
+       /* Number of bytes saved on stack for register save area */
+       int     saved_reg_size;
+       int     saved_reg_size;
+       int     save_ret;
+       int     save_ret;
+
+
+       int     sp_fp_offset;
+       int     sp_fp_offset;
+       bool    fp_needed;
+       bool    fp_needed;
+       int     size_for_adjusting_sp;
+       int     size_for_adjusting_sp;
+};
+};
+
+
+/* Allocate a chunk of memory for per-function machine-dependent data. */
+/* Allocate a chunk of memory for per-function machine-dependent data. */
+
+
+static struct machine_function *
+static struct machine_function *
+zip_init_machine_status(void) {
+zip_init_machine_status(void) {
+       return ggc_cleared_alloc<machine_function>();
+       return ggc_cleared_alloc<machine_function>();
+}
+}
+
+
+static void
+static void
+zip_override_options(void)
+zip_override_options(void)
+{
+{
+       init_machine_status = zip_init_machine_status;
+       init_machine_status = zip_init_machine_status;
+}
+}
+
+
+enum   reg_class
+enum   reg_class
+zip_reg_class(int regno)
+zip_reg_class(int regno)
+{
+{
+       if (is_ZIP_GENERAL_REG(regno)) {
+       if (is_ZIP_GENERAL_REG(regno)) {
+               return GENERAL_REGS;
+               return GENERAL_REGS;
+       } else if (is_ZIP_REG(regno)) {
+       } else if (is_ZIP_REG(regno)) {
+               return ALL_REGS;
+               return ALL_REGS;
+       } return NO_REGS;
+       } return NO_REGS;
+}
+}
+
+
+/* Worker function for TARGET_RETURN_IN_MEMORY. */
+/* Worker function for TARGET_RETURN_IN_MEMORY. */
+static bool
+static bool
+zip_return_in_memory(const_tree type, const_tree fntype ATTRIBUTE_UNUSED) {
+zip_return_in_memory(const_tree type, const_tree fntype ATTRIBUTE_UNUSED) {
+       const   HOST_WIDE_INT size = int_size_in_bytes(type);
+       const   HOST_WIDE_INT size = int_size_in_bytes(type);
+       return (size == -1)||(size > UNITS_PER_WORD);
+       return (size == -1)||(size > UNITS_PER_WORD);
+}
+}
+
+
+/* Emit an error emssage when we're in an asm, and a fatal error for "normal"
+/* Emit an error emssage when we're in an asm, and a fatal error for "normal"
+ * insn.  Formatted output isn't easily implemented, since we use output operand
+ * insn.  Formatted output isn't easily implemented, since we use output operand
+ * lossage to output the actual message and handle the categorization of the
+ * lossage to output the actual message and handle the categorization of the
+ * error.  */
+ * error.  */
+
+
+static void
+static void
+zip_operand_lossage(const char *msgid, rtx op) {
+zip_operand_lossage(const char *msgid, rtx op) {
+       fprintf(stderr, "Operand lossage??\n");
+       fprintf(stderr, "Operand lossage??\n");
+       debug_rtx(op);
+       debug_rtx(op);
+       zip_debug_rtx(op);
+       zip_debug_rtx(op);
+       output_operand_lossage("%s", msgid);
+       output_operand_lossage("%s", msgid);
+}
+}
+
+
+/* The PRINT_OPERAND_ADDRESS worker.   */
+/* The PRINT_OPERAND_ADDRESS worker.   */
+void
+void
+zip_print_operand_address(FILE *file, rtx x) {
+zip_print_operand_address(FILE *file, rtx x) {
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) zip_debug_rtx(x);
+       if (dbg) zip_debug_rtx(x);
+       switch(GET_CODE(x)) {
+       switch(GET_CODE(x)) {
+               case REG:
+               case REG:
+                       fprintf(file, "(%s)", reg_names[REGNO(x)]);
+                       fprintf(file, "(%s)", reg_names[REGNO(x)]);
+                       break;
+                       break;
+               case SYMBOL_REF:
+               case SYMBOL_REF:
+                       fprintf(file, "%s", XSTR(x,0));
+                       fprintf(file, "%s", XSTR(x,0));
+                       break;
+                       break;
+               case LABEL_REF:
+               case LABEL_REF:
+                       x = LABEL_REF_LABEL(x);
+                       x = LABEL_REF_LABEL(x);
+               case CODE_LABEL:
+               case CODE_LABEL:
+                       { char buf[256];
+                       { char buf[256];
+                       ASM_GENERATE_INTERNAL_LABEL(buf, "L", CODE_LABEL_NUMBER(x));
+                       ASM_GENERATE_INTERNAL_LABEL(buf, "L", CODE_LABEL_NUMBER(x));
+#ifdef ASM_OUTPUT_LABEL_REF
+#ifdef ASM_OUTPUT_LABEL_REF
+                       ASM_OUTPUT_LABEL_REF(file, buf);
+                       ASM_OUTPUT_LABEL_REF(file, buf);
+#else
+#else
+                       assemble_name(file, buf);
+                       assemble_name(file, buf);
+#endif
+#endif
+                       }
+                       }
+                       break;
+                       break;
+               case PLUS:
+               case PLUS:
+                       if (!REG_P(XEXP(x, 0))) {
+                       if (!REG_P(XEXP(x, 0))) {
+                               fprintf(stderr, "Unsupported address construct\n");
+                               fprintf(stderr, "Unsupported address construct\n");
+                               zip_debug_rtx(x);
+                               zip_debug_rtx(x);
+                               abort();
+                               abort();
+                       } if (CONST_INT_P(XEXP(x, 1))) {
+                       } if (CONST_INT_P(XEXP(x, 1))) {
+                               if (INTVAL(XEXP(x,1))!=0) {
+                               if (INTVAL(XEXP(x,1))!=0) {
+                                       fprintf(file, "%ld(%s)",
+                                       fprintf(file, "%ld(%s)",
+                                       INTVAL(XEXP(x, 1)),
+                                       INTVAL(XEXP(x, 1)),
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                               } else {
+                               } else {
+                                       fprintf(file, "(%s)",
+                                       fprintf(file, "(%s)",
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                               }
+                               }
+                       } else if (GET_CODE(XEXP(x,1)) == SYMBOL_REF) {
+                       } else if (GET_CODE(XEXP(x,1)) == SYMBOL_REF) {
+                               fprintf(file, "%s(%s)", XSTR(x,0),
+                               fprintf(file, "%s(%s)", XSTR(x,0),
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                       } else if ((GET_CODE(XEXP(x, 1)) == MINUS)
+                       } else if ((GET_CODE(XEXP(x, 1)) == MINUS)
+                               && (GET_CODE(XEXP(XEXP(x, 1), 0))==SYMBOL_REF)
+                               && (GET_CODE(XEXP(XEXP(x, 1), 0))==SYMBOL_REF)
+                               && (GET_CODE(XEXP(XEXP(x, 1), 1))==SYMBOL_REF)) {
+                               && (GET_CODE(XEXP(XEXP(x, 1), 1))==SYMBOL_REF)) {
+                               fprintf(file, "%s-%s(%s)",
+                               fprintf(file, "%s-%s(%s)",
+                                       XSTR(XEXP(XEXP(x, 1),0),0),
+                                       XSTR(XEXP(XEXP(x, 1),0),0),
+                                       XSTR(XEXP(XEXP(x, 1),1),0),
+                                       XSTR(XEXP(XEXP(x, 1),1),0),
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                       } else
+                       } else
+                               fprintf(file, "#INVALID(%s)",
+                               fprintf(file, "#INVALID(%s)",
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                                       reg_names[REGNO(XEXP(x, 0))]);
+                       /*
+                       /*
+                       else if (GET_CODE(XEXP(addr, 1)) == LABEL)
+                       else if (GET_CODE(XEXP(addr, 1)) == LABEL)
+                               fprintf(file, "%s(%s)",
+                               fprintf(file, "%s(%s)",
+                                       GET_CODE(XEXP(addr, 1)),
+                                       GET_CODE(XEXP(addr, 1)),
+                                       reg_names[REGNO(GET_CODE(XEXP(addr, 0)))]);
+                                       reg_names[REGNO(GET_CODE(XEXP(addr, 0)))]);
+                       else if ((GET_CODE(XEXP(addr, 1)) == MINUS)
+                       else if ((GET_CODE(XEXP(addr, 1)) == MINUS)
+                               && (GET_CODE(XEXP(GET_CODE(XEXP(addr, 1)), 0))==LABEL)
+                               && (GET_CODE(XEXP(GET_CODE(XEXP(addr, 1)), 0))==LABEL)
+                               && (GET_CODE(XEXP(GET_CODE(XEXP(addr, 1)), 1))==LABEL)) {
+                               && (GET_CODE(XEXP(GET_CODE(XEXP(addr, 1)), 1))==LABEL)) {
+                               fprintf(file, "%s-%s(%s)",
+                               fprintf(file, "%s-%s(%s)",
+                                       reg_names[REGNO(GET_CODE(XEXP(addr, 0)))]);
+                                       reg_names[REGNO(GET_CODE(XEXP(addr, 0)))]);
+                                       reg_names[REGNO(GET_CODE(XEXP(addr, 0)))]);
+                                       reg_names[REGNO(GET_CODE(XEXP(addr, 0)))]);
+                                       reg_names[REGNO(GET_CODE(XEXP(addr, 0)))]);
+                                       reg_names[REGNO(GET_CODE(XEXP(addr, 0)))]);
+                       }
+                       }
+                       */
+                       */
+                       break;
+                       break;
+               // We don't support direct memory addressing within our
+               // We don't support direct memory addressing within our
+               // instruction set, even though the instructions themselves
+               // instruction set, even though the instructions themselves
+               // would support direct memory addressing of the lower 18 bits
+               // would support direct memory addressing of the lower 18 bits
+               // of memory space.
+               // of memory space.
+               case MEM:
+               case MEM:
+                       if (dbg) zip_debug_rtx(x);
+                       if (dbg) zip_debug_rtx(x);
+                       zip_print_operand_address(file, XEXP(x, 0));
+                       zip_print_operand_address(file, XEXP(x, 0));
+                       break;
+                       break;
+               case CONST_INT:
+               case CONST_INT:
+                       fprintf(file, "%ld",INTVAL(x));
+                       fprintf(file, "%ld",INTVAL(x));
+                       break;
+                       break;
+               default:
+               default:
+                       fprintf(stderr, "Unknown address format\n");
+                       fprintf(stderr, "Unknown address format\n");
+                       zip_debug_rtx(x);
+                       zip_debug_rtx(x);
+                       abort(); break;
+                       abort(); break;
+                       // output_addr_const(file, x);
+                       // output_addr_const(file, x);
+               break;
+               break;
+       }
+       }
+}
+}
+
+
+/* The PRINT_OPERAND worker. */
+/* The PRINT_OPERAND worker. */
+
+
+void
+void
+zip_print_operand(FILE *file, rtx x, int code)
+zip_print_operand(FILE *file, rtx x, int code)
+{
+{
+       rtx operand = x;
+       rtx operand = x;
+       int     rgoff = 0;
+       int     rgoff = 0;
+
+
+       // fprintf(file, "Print Operand!\n");
+       // fprintf(file, "Print Operand!\n");
+
+
+       /* New code entries should just be added to the switch below.  If
+       /* New code entries should just be added to the switch below.  If
+        * handling is finished, just return.  If handling was just a
+        * handling is finished, just return.  If handling was just a
+        * modification of the operand, the modified operand should be put in
+        * modification of the operand, the modified operand should be put in
+        * "operand", and then do a break to let default handling
+        * "operand", and then do a break to let default handling
+        * (zero-modifier) output the operand.
+        * (zero-modifier) output the operand.
+        */
+        */
+       switch(code) {
+       switch(code) {
+               case 0:
+               case 0:
+                       /* No code, print as usual. */
+                       /* No code, print as usual. */
+                       break;
+                       break;
+               case 'L':
+               case 'L':
+                       /* Lower of two registers, print one up */
+                       /* Lower of two registers, print one up */
+                       rgoff = 1;
+                       rgoff = 1;
+                       break;
+                       break;
+               case 'R':
+               case 'R':
+               case 'H':
+               case 'H':
+                       /* Higher of a register pair, print normal */
+                       /* Higher of a register pair, print normal */
+                       break;
+                       break;
+
+
+               default:
+               default:
+                       LOSE_AND_RETURN("invalid operand modifier letter", x);
+                       LOSE_AND_RETURN("invalid operand modifier letter", x);
+       }
+       }
+
+
+       /* Print an operand as without a modifier letter. */
+       /* Print an operand as without a modifier letter. */
+       switch (GET_CODE(operand)) {
+       switch (GET_CODE(operand)) {
+       case REG:
+       case REG:
+               if (REGNO(operand)+rgoff >= FIRST_PSEUDO_REGISTER)
+               if (REGNO(operand)+rgoff >= FIRST_PSEUDO_REGISTER)
+                       internal_error("internal error: bad register: %d", REGNO(operand));
+                       internal_error("internal error: bad register: %d", REGNO(operand));
+               fprintf(file, "%s", reg_names[REGNO(operand)+rgoff]);
+               fprintf(file, "%s", reg_names[REGNO(operand)+rgoff]);
+               return;
+               return;
+       case SCRATCH:
+       case SCRATCH:
+               LOSE_AND_RETURN("Need a scratch register", x);
+               LOSE_AND_RETURN("Need a scratch register", x);
+               return;
+               return;
+
+
+       case CODE_LABEL:
+       case CODE_LABEL:
+       case LABEL_REF:
+       case LABEL_REF:
+       case SYMBOL_REF:
+       case SYMBOL_REF:
+       case PLUS:
+       case PLUS:
+               PRINT_OPERAND_ADDRESS(file, operand);
+               PRINT_OPERAND_ADDRESS(file, operand);
+               return;
+               return;
+       case MEM:
+       case MEM:
+               PRINT_OPERAND_ADDRESS(file, XEXP(operand, 0));
+               PRINT_OPERAND_ADDRESS(file, XEXP(operand, 0));
+               return;
+               return;
+
+
+       default:
+       default:
+               /* No need to handle all strange variants, let
+               /* No need to handle all strange variants, let
+                * output_addr_const do it for us.
+                * output_addr_const do it for us.
+                */
+                */
+               if (CONSTANT_P(operand)) {
+               if (CONSTANT_P(operand)) {
+                       output_addr_const(file, operand);
+                       output_addr_const(file, operand);
+                       return;
+                       return;
+               }
+               }
+
+
+               LOSE_AND_RETURN("unexpected operand", x);
+               LOSE_AND_RETURN("unexpected operand", x);
+       }
+       }
+}
+}
+
+
+static bool
+static bool
+zip_frame_pointer_required(void)
+zip_frame_pointer_required(void)
+{
+{
+       // This should really depend upon whether we have variable sized
+       // This should really depend upon whether we have variable sized
+       // arguments in our frame or not.  Once this fails, let's look
+       // arguments in our frame or not.  Once this fails, let's look
+       // at what the problem was and then whether or not we can detect
+       // at what the problem was and then whether or not we can detect
+       // it.
+       // it.
+       //
+       //
+       // Use a GCC global to determine our answer
+       // Use a GCC global to determine our answer
+       if (cfun->calls_alloca)
+       if (cfun->calls_alloca)
+               return true;
+               return true;
+       return (frame_pointer_needed);
+       return (frame_pointer_needed);
+/*
+/*
+       fprintf(stderr, "ZIP_FRAME_POINTER_REQUIRED()\n");
 
+       if (frame_pointer_needed) {
 
+               fprintf(stderr, "FRAME_POINTER_NEEDED is true\n");
 
+               zip_debug_rtx(frame_pointer_rtx);
 
+               if (frame_pointer_rtx == NULL_RTX)
 
+                       return true;
 
+               if (GET_CODE(frame_pointer_rtx)==PLUS) {
 
+                       if ((REG_P(XEXP(frame_pointer_rtx,0)))
 
+                               &&(REGNO(XEXP(frame_pointer_rtx, 0))==zip_SP)
 
+                               &&(CONST_INT_P(XEXP(frame_pointer_rtx,1))))
 
+                               return false;
 
+                       if ((REG_P(XEXP(frame_pointer_rtx,1)))
 
+                               &&(REGNO(XEXP(frame_pointer_rtx, 1))==zip_SP)
 
+                               &&(CONST_INT_P(XEXP(frame_pointer_rtx,0))))
 
+                               return false;
 
+                       return true;
 
+               } else if ((REG_P(frame_pointer_rtx))
 
+                               &&(REGNO(frame_pointer_rtx) == zip_SP))
 
+                       return false;
 
+               return true;
 
+       } else return false;
 
+*/
+*/
+}
+}
+
+
+/* Determine whether or not a register needs to be saved on the stack or not.
+/* Determine whether or not a register needs to be saved on the stack or not.
+ */
+ */
+static bool
+static bool
+zip_save_reg(int regno) {
+zip_save_reg(int regno) {
+       if (regno == 0)
+       if (regno == 0)
+               return ((!crtl->is_leaf)
+               return ((!crtl->is_leaf)
+                       ||((df_regs_ever_live_p(0))&&(!call_used_regs[0])));
+                       ||((df_regs_ever_live_p(0))&&(!call_used_regs[0])));
+       else if ((regno == zip_GOT)&&(!ZIP_PIC))
+       else if ((regno == zip_GOT)&&(!ZIP_PIC))
+               return  ((df_regs_ever_live_p(regno))
+               return  ((df_regs_ever_live_p(regno))
+                               &&(!call_used_regs[regno]));
+                               &&(!call_used_regs[regno]));
+       else if (regno == zip_FP)
+       else if (regno == zip_FP)
+               return((zip_frame_pointer_required())||((df_regs_ever_live_p(regno))
+               return((zip_frame_pointer_required())||((df_regs_ever_live_p(regno))
+                               &&(!call_used_regs[regno])));
+                               &&(!call_used_regs[regno])));
+       else if (regno < zip_FP)
+       else if (regno < zip_FP)
+               return  ((df_regs_ever_live_p(regno))
+               return  ((df_regs_ever_live_p(regno))
+                               &&(!call_used_regs[regno]));
+                               &&(!call_used_regs[regno]));
+       return false;
+       return false;
+}
+}
+
+
+/* Compute the size of the local area and the size to be adjusted by the
+/* Compute the size of the local area and the size to be adjusted by the
+ * prologue and epilogue.
+ * prologue and epilogue.
+ *
+ *
+ * Here's what we are looking at (top is the current, bottom is the last ...)
+ * Here's what we are looking at (top is the current, bottom is the last ...)
+ *
+ *
+ *     Stack Pointer ->
+ *     Stack Pointer ->
+ *                     Local variables (could be variable size)
+ *                     Local variables (could be variable size)
+ *     Frame Pointer ->        (= Stack Pointer + sp_fp_offset)
+ *     Frame Pointer ->        (= Stack Pointer + sp_fp_offset)
+ *                     Saved return address, if saved
+ *                     Saved return address, if saved
+ *                     Other Saved registers
+ *                     Other Saved registers
+ *                     Saved frame pointer (if used)
+ *                     Saved frame pointer (if used)
+ *                     Saved R12, if used
+ *                     Saved R12, if used
+ *                     (Stack pointer is not saved)
+ *                     (Stack pointer is not saved)
+ *     Original stack pointer ->       (= Stack_Pointer +size_for_adjusting_sp)
+ *     Original stack pointer ->       (= Stack_Pointer +size_for_adjusting_sp)
+ *                     Called arguments (not passed in registers)
+ *                     Called arguments (not passed in registers)
+ *                     Return arguments (not R1, args.pretend_args_size)
+ *                     Return arguments (not R1, args.pretend_args_size)
+ *             (Prior function's stack frame ... )
+ *             (Prior function's stack frame ... )
+ *
+ *
+ */
+ */
+static void
+static void
+zip_compute_frame(void) {
+zip_compute_frame(void) {
+       int     regno;
+       int     regno;
+       int     args_size;
+       int     args_size;
+
+
+       // gcc_assert(crtl);
+       // gcc_assert(crtl);
+       gcc_assert(cfun);
+       gcc_assert(cfun);
+       gcc_assert(cfun->machine);
+       gcc_assert(cfun->machine);
+
+
+       args_size=(ACCUMULATE_OUTGOING_ARGS ? crtl->outgoing_args_size : 0);
+       args_size=(ACCUMULATE_OUTGOING_ARGS ? crtl->outgoing_args_size : 0);
+
+
+       if(crtl->args.pretend_args_size > 0) {
+       if(crtl->args.pretend_args_size > 0) {
+               args_size += crtl->args.pretend_args_size;
+               args_size += crtl->args.pretend_args_size;
+               // printf("%s pretend_args_size : %d\n", current_function_name(),
+               // printf("%s pretend_args_size : %d\n", current_function_name(),
+                       // crtl->args.pretend_args_size);
+                       // crtl->args.pretend_args_size);
+               cfun->machine->pretend_size = crtl->args.pretend_args_size;
+               cfun->machine->pretend_size = crtl->args.pretend_args_size;
+       }
+       }
+
+
+       cfun->machine->local_vars_size = get_frame_size();
+       cfun->machine->local_vars_size = get_frame_size();
+
+
+       // Save callee-saved registers.
+       // Save callee-saved registers.
+       cfun->machine->saved_reg_size = 0;
+       cfun->machine->saved_reg_size = 0;
+       for(regno=0; regno < FIRST_PSEUDO_REGISTER; regno++) {
+       for(regno=0; regno < FIRST_PSEUDO_REGISTER; regno++) {
+               if (zip_save_reg(regno))
+               if (zip_save_reg(regno))
+                       cfun->machine->saved_reg_size ++;
+                       cfun->machine->saved_reg_size ++;
+       }
+       }
+
+
+       cfun->machine->fp_needed = (zip_frame_pointer_required());
+       cfun->machine->fp_needed = (zip_frame_pointer_required());
+
+
+       if ((cfun->machine->fp_needed)&&
+       if ((cfun->machine->fp_needed)&&
+                       (!df_regs_ever_live_p(zip_FP))) {
+                       (!df_regs_ever_live_p(zip_FP))) {
+               cfun->machine->saved_reg_size ++;
+               cfun->machine->saved_reg_size ++;
+       }
+       }
+
+
+       cfun->machine->sp_fp_offset = args_size + cfun->machine->local_vars_size;
+       cfun->machine->sp_fp_offset = args_size + cfun->machine->local_vars_size;
+       cfun->machine->size_for_adjusting_sp = cfun->machine->local_vars_size
+       cfun->machine->size_for_adjusting_sp = cfun->machine->local_vars_size
+                       + cfun->machine->saved_reg_size
+                       + cfun->machine->saved_reg_size
+                       + args_size;
+                       + args_size;
+
+
+       /*
 
+       if (cfun->machine->fp_needed)
 
+               frame_pointer_rtx = gen_rtx_REG(Pmode, zip_FP);
 
+       else
 
+               frame_pointer_rtx = plus_constant(Pmode, gen_rtx_REG(Pmode, zip_SP),
 
+                       cfun->machine->sp_fp_offset);
 
+       */
 
+}
+}
+
+
+void
+void
+zip_expand_prologue(void) {
+zip_expand_prologue(void) {
+       rtx     insn;
+       rtx     insn;
+
+
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       zip_compute_frame();
+       zip_compute_frame();
+
+
+       if (dbg)  fprintf(stderr, "Computing Prologue instructions\n");
+       if (dbg)  fprintf(stderr, "Computing Prologue instructions\n");
+       if (cfun->machine->size_for_adjusting_sp != 0) {
+       if (cfun->machine->size_for_adjusting_sp != 0) {
+               insn = emit_insn(gen_subsi3(stack_pointer_rtx,
+               insn = emit_insn(gen_subsi3(stack_pointer_rtx,
+                               stack_pointer_rtx,
+                               stack_pointer_rtx,
+                       gen_int_mode(cfun->machine->size_for_adjusting_sp,
+                       gen_int_mode(cfun->machine->size_for_adjusting_sp,
+                               SImode)));
+                               SImode)));
+                       // cfun->machine->sp_fp_offset
+                       // cfun->machine->sp_fp_offset
+
+
+               RTX_FRAME_RELATED_P(insn) = 1;
+               RTX_FRAME_RELATED_P(insn) = 1;
+       }
+       }
+
+
+       {
+       {
+               int offset = 0, regno;
+               int offset = 0, regno;
+               for(regno=0; regno < FIRST_PSEUDO_REGISTER; regno++) {
+               for(regno=0; regno < FIRST_PSEUDO_REGISTER; regno++) {
+                       if (zip_save_reg(regno)) {
+                       if (zip_save_reg(regno)) {
+                               insn=emit_insn(gen_movsi_sto(
+                               insn=emit_insn(gen_movsi_sto(
+                                       gen_rtx_MEM(SImode, plus_constant(
+                                       gen_rtx_MEM(SImode, plus_constant(
+                                               Pmode, stack_pointer_rtx,
+                                               Pmode, stack_pointer_rtx,
+                                               cfun->machine->sp_fp_offset
+                                               cfun->machine->sp_fp_offset
+                                               +offset++, true)),
+                                               +offset++, true)),
+                                       gen_rtx_REG(SImode, regno)));
+                                       gen_rtx_REG(SImode, regno)));
+                               RTX_FRAME_RELATED_P(insn) = 1;
+                               RTX_FRAME_RELATED_P(insn) = 1;
+                       }
+                       }
+               }
+               }
+               if (dbg)  fprintf(stderr, "%d registers saved%s\n", offset,
+               if (dbg)  fprintf(stderr, "%d registers saved%s\n", offset,
+                       (crtl->saves_all_registers)?", should be all of them":", less than all");
+                       (crtl->saves_all_registers)?", should be all of them":", less than all");
+       }
+       }
+
+
+       if (cfun->machine->fp_needed) {
+       if (cfun->machine->fp_needed) {
+               if (dbg) zip_debug_rtx(stack_pointer_rtx);
+               if (dbg) zip_debug_rtx(stack_pointer_rtx);
+               if (dbg) zip_debug_rtx(frame_pointer_rtx);
+               if (dbg) zip_debug_rtx(frame_pointer_rtx);
+               insn = emit_insn(gen_movsi_reg_off(frame_pointer_rtx,
+               insn = emit_insn(gen_movsi_reg_off(frame_pointer_rtx,
+                               stack_pointer_rtx, gen_int_mode(
+                               stack_pointer_rtx, gen_int_mode(
+                                               cfun->machine->sp_fp_offset,
+                                               cfun->machine->sp_fp_offset,
+                                               SImode)));
+                                               SImode)));
+               RTX_FRAME_RELATED_P(insn) = 1;
+               RTX_FRAME_RELATED_P(insn) = 1;
+               if (dbg)  fprintf(stderr, "sp_fp_offset is %d\n", cfun->machine->sp_fp_offset);
+               if (dbg)  fprintf(stderr, "sp_fp_offset is %d\n", cfun->machine->sp_fp_offset);
+       }
+       }
+}
+}
+
+
+bool
+bool
+zip_use_return_insn(void)
+zip_use_return_insn(void)
+{
+{
+       if ((!reload_completed)||(cfun->machine->fp_needed)
+       if ((!reload_completed)||(cfun->machine->fp_needed)
+                       ||(get_frame_size()!=0)) {
+                       ||(get_frame_size()!=0)) {
+               // If R0 ever gets pushed to the stack, then we cannot
+               // If R0 ever gets pushed to the stack, then we cannot
+               // use a master return from anywhere.  We need to clean up the
+               // use a master return from anywhere.  We need to clean up the
+               // stack first.
+               // stack first.
+               if ((!crtl->is_leaf)||((df_regs_ever_live_p(0))
+               if ((!crtl->is_leaf)||((df_regs_ever_live_p(0))
+                                               &&(!call_used_regs[0]))) {
+                                               &&(!call_used_regs[0]))) {
+                       return false;
+                       return false;
+               }
+               }
+       }
+       }
+       zip_compute_frame();
+       zip_compute_frame();
+       return (cfun->machine->size_for_adjusting_sp == 0);
+       return (cfun->machine->size_for_adjusting_sp == 0);
+}
+}
+
+
+/* As per the notes in M68k.c, quote the function epilogue should not depend
+/* As per the notes in M68k.c, quote the function epilogue should not depend
+ * upon the current stack pointer.  It should use the frame poitner only,
+ * upon the current stack pointer.  It should use the frame poitner only,
+ * if there is a frame pointer.  This is mandatory because of alloca; we also
+ * if there is a frame pointer.  This is mandatory because of alloca; we also
+ * take advantage of it to omit stack adjustments before returning ...
+ * take advantage of it to omit stack adjustments before returning ...
+ *
+ *
+ * Let's see if we can use their approach here.
+ * Let's see if we can use their approach here.
+ *
+ *
+ * We can't.  Consider our choices:
+ * We can't.  Consider our choices:
+ *     LOD (FP),R0
+ *     LOD (FP),R0
+ *     LOD 1(FP),R4
+ *     LOD 1(FP),R4
+ *     LOD 2(FP),R5
+ *     LOD 2(FP),R5
+ *     LOD 3(FP),R6
+ *     LOD 3(FP),R6
+ *     LOD 4(FP),FP
+ *     LOD 4(FP),FP
+ *     ... Then what is the stack pointer?
+ *     ... Then what is the stack pointer?
+ * or
+ * or
+ *     LOD (FP),R0
+ *     LOD (FP),R0
+ *     LOD 1(FP),R4
+ *     LOD 1(FP),R4
+ *     LOD 2(FP),R5
+ *     LOD 2(FP),R5
+ *     LOD 3(FP),R6
+ *     LOD 3(FP),R6
+ *     MOV FP,SP
+ *     MOV FP,SP
+ *     LOD 4(SP),FP
+ *     LOD 4(SP),FP
+ *     ... Which suffers unnecessary pipeline stalls, and certainly doesn't
+ *     ... Which suffers unnecessary pipeline stalls, and certainly doesn't
+ *     exploit our pipeline memory function
+ *     exploit our pipeline memory function
+ * or
+ * or
+ *     MOV FP,SP
+ *     MOV FP,SP
+ *     LOD (SP),R0
+ *     LOD (SP),R0
+ *     LOD 1(SP),R4
+ *     LOD 1(SP),R4
+ *     LOD 2(SP),R5
+ *     LOD 2(SP),R5
+ *     LOD 3(SP),R6
+ *     LOD 3(SP),R6
+ *     LOD 4(SP),FP
+ *     LOD 4(SP),FP
+ * Which will be our choice.  Note that we do use the stack pointer, eventually.
+ * Which will be our choice.  Note that we do use the stack pointer, eventually.
+ *
+ *
+ */
+ */
+void
+void
+zip_expand_epilogue(void) {
+zip_expand_epilogue(void) {
+       int     regno, offset;
+       int     regno, offset;
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       zip_compute_frame();
+       zip_compute_frame();
+
+
+       if (dbg) fprintf(stderr, "EPILOG::\n");
+       if (dbg) fprintf(stderr, "EPILOG::\n");
+       if (cfun->machine->fp_needed) {
+       if (cfun->machine->fp_needed) {
+               if (dbg) fprintf(stderr, "EPILOG::Moving frame pointer to stack register\n");
+               if (dbg) fprintf(stderr, "EPILOG::Moving frame pointer to stack register\n");
+               emit_insn(gen_movsi_reg(stack_pointer_rtx, frame_pointer_rtx));
+               emit_insn(gen_movsi_reg(stack_pointer_rtx, frame_pointer_rtx));
+       }
+       }
+
+
+       if (cfun->machine->saved_reg_size != 0) {
+       if (cfun->machine->saved_reg_size != 0) {
+               offset =  (cfun->machine->size_for_adjusting_sp -
+               offset =  (cfun->machine->size_for_adjusting_sp -
+                               cfun->machine->sp_fp_offset
+                               cfun->machine->sp_fp_offset
+                       - cfun->machine->saved_reg_size);
+                       - cfun->machine->saved_reg_size);
+               if (dbg) fprintf(stderr, "EPILOG::Saved_REG_Size = %d\n", cfun->machine->saved_reg_size);
+               if (dbg) fprintf(stderr, "EPILOG::Saved_REG_Size = %d\n", cfun->machine->saved_reg_size);
+               for(regno=0; regno < FIRST_PSEUDO_REGISTER; regno++) {
+               for(regno=0; regno < FIRST_PSEUDO_REGISTER; regno++) {
+                       if (zip_save_reg(regno)) {
+                       if (zip_save_reg(regno)) {
+                               if (dbg) fprintf(stderr, "EPILOG::RESTORING R%d\n", regno);
+                               if (dbg) fprintf(stderr, "EPILOG::RESTORING R%d\n", regno);
+                               emit_insn(gen_movsi_lod(
+                               emit_insn(gen_movsi_lod(
+                                               gen_rtx_REG(SImode, regno),
+                                               gen_rtx_REG(SImode, regno),
+                                       gen_rtx_MEM(SImode, plus_constant( SImode,
+                                       gen_rtx_MEM(SImode, plus_constant( SImode,
+                                               stack_pointer_rtx, offset++, true))));
+                                               stack_pointer_rtx, offset++, true))));
+                       }
+                       }
+               }
+               }
+       }
+       }
+
+
+       if (cfun->machine->size_for_adjusting_sp != 0) {
+       if (cfun->machine->size_for_adjusting_sp != 0) {
+               if (dbg) fprintf(stderr, "EPILOG::ADDSI3(StackPtr, %d)\n",
+               if (dbg) fprintf(stderr, "EPILOG::ADDSI3(StackPtr, %d)\n",
+                               cfun->machine->size_for_adjusting_sp);
+                               cfun->machine->size_for_adjusting_sp);
+               emit_insn(gen_addsi3(stack_pointer_rtx, stack_pointer_rtx,
+               emit_insn(gen_addsi3(stack_pointer_rtx, stack_pointer_rtx,
+                       gen_int_mode(
+                       gen_int_mode(
+                               cfun->machine->size_for_adjusting_sp
+                               cfun->machine->size_for_adjusting_sp
+                               -cfun->machine->sp_fp_offset, SImode)));
+                               -cfun->machine->sp_fp_offset, SImode)));
+       }
+       }
+       if (dbg) fprintf(stderr, "EPILOG::EMITTING-RETURN\n");
+       if (dbg) fprintf(stderr, "EPILOG::EMITTING-RETURN\n");
+
+
+       emit_jump_insn(ret_rtx);
+       emit_jump_insn(ret_rtx);
+}
+}
+
+
+/* Implement RETURN_ADDR_RTX(COUNT, FRAMEADDR).
+/* Implement RETURN_ADDR_RTX(COUNT, FRAMEADDR).
+ *
+ *
+ * We currently only support calculating the return address for the current
+ * We currently only support calculating the return address for the current
+ * frame.
+ * frame.
+ */
+ */
+
+
+/*
+/*
+rtx
+rtx
+zip_return_addr_rtx(int count, rtx frame ATTRIBUTE_UNUSED)
+zip_return_addr_rtx(int count, rtx frame ATTRIBUTE_UNUSED)
+{
+{
+       if (count)
+       if (count)
+               return NULL_RTX;
+               return NULL_RTX;
+
+
+       zip_compute_frame();
+       zip_compute_frame();
+
+
+       // saved return address for current function is at fp - 1
+       // saved return address for current function is at fp - 1
+       if (cfun->machine->save_ret)
+       if (cfun->machine->save_ret)
+               return gen_rtx_MEM(Pmode, plus_constant(frame_pointer_rtx,
+               return gen_rtx_MEM(Pmode, plus_constant(frame_pointer_rtx,
+                               -UNITS_PER_WORD));
+                               -UNITS_PER_WORD));
+       return get_hard_reg_initial_val(Pmode, RETURN_ADDRESS_REGNUM);
+       return get_hard_reg_initial_val(Pmode, RETURN_ADDRESS_REGNUM);
+}
+}
+*/
+*/
+
+
+/* Implements the macro INITIAL_ELIMINATION_OFFSET,
+/* Implements the macro INITIAL_ELIMINATION_OFFSET,
+ * return the OFFSET.
+ * return the OFFSET.
+ */
+ */
+int
+int
+zip_initial_elimination_offset(int from, int to) {
+zip_initial_elimination_offset(int from, int to) {
+       int     ret = 0;
+       int     ret = 0;
+       zip_compute_frame();
+       zip_compute_frame();
+
+
+       if (((from) == FRAME_POINTER_REGNUM)&&((to) == STACK_POINTER_REGNUM)) {
+       if (((from) == FRAME_POINTER_REGNUM)&&((to) == STACK_POINTER_REGNUM)) {
+               ret = cfun->machine->sp_fp_offset;
+               ret = cfun->machine->sp_fp_offset;
+       } else if (((from)=ARG_POINTER_REGNUM)&&((to)==STACK_POINTER_REGNUM)) {
+       } else if (((from)=ARG_POINTER_REGNUM)&&((to)==STACK_POINTER_REGNUM)) {
+               ret = cfun->machine->sp_fp_offset;
+               ret = cfun->machine->sp_fp_offset;
+       } else if (((from)=ARG_POINTER_REGNUM)&&((to)==FRAME_POINTER_REGNUM)) {
+       } else if (((from)=ARG_POINTER_REGNUM)&&((to)==FRAME_POINTER_REGNUM)) {
+               // ret = cfun->machine->local_vars_size;
+               // ret = cfun->machine->local_vars_size;
+               ret = 0;
+               ret = 0;
+       } else {
+       } else {
+               abort();
+               abort();
+       }
+       }
+
+
+       return ret;
+       return ret;
+}
+}
+
+
+/* Return non-zero if the function argument described by TYPE is to be passed
 
+ * by reference.
 
+ */
 
+/*
 
+static bool
 
+zip_pass_by_reference(CUMULATIVE_ARGS *cum ATTRIBUTE_UNUSED,
 
+               enum machine_mode mode, const_tree type,
 
+               bool name ATTRIBUTE_UNUSED) {
 
+       unsigned        HOST_WIDE_INT   size;
 
+
 
+       if (type) {
 
+               if (AGGREGATE_TYPE_P(type)) {
 
+                       return TRUE;
 
+               } size = int_size_in_bytes(type);
 
+       } else
 
+               size = GET_MODE_SIZE(mode);
 
+
 
+       return (size > GET_MODE_SIZE(SImode)); // > 1 word : is this okay?
 
+       // The idea is to pass everything larger than an int by reference (or
 
+       // on the stack)
 
+}
 
+*/
 
+
 
+/*
+/*
+ * Code taken from m68k ...
+ * Code taken from m68k ...
+ */
+ */
+static bool
+static bool
+zip_can_eliminate(int from, int to)
+zip_can_eliminate(int from, int to)
+{
+{
+       // fprintf(stderr, "CAN_ELIMINATE::QUERYING(%d,%d)\n", from, to);
+       // fprintf(stderr, "CAN_ELIMINATE::QUERYING(%d,%d)\n", from, to);
+       if ((from == zip_FP)&&(to == zip_SP))
+       if ((from == zip_FP)&&(to == zip_SP))
+               return !cfun->machine->fp_needed;
+               return !cfun->machine->fp_needed;
+       return true;
+       return true;
+}
+}
+
+
+/*
+/*
+static bool
 
+zip_must_pass_in_stack(enum machine_mode mode, const_tree type)
 
+{
 
+       if (mode == BLKmode) {
 
+               return true;
 
+       } if (type == NULL) {
 
+               return false;
 
+       } return AGGREGATE_TYPE_P(type);
 
+}
 
+*/
 
+
 
+/*
 
+static void
+static void
+zip_basic_check(void)
+zip_basic_check(void)
+{
+{
+       gcc_assert(mode_base_align[SImode]==4);
+       gcc_assert(mode_base_align[SImode]==4);
+       if ((BITS_PER_UNIT != 32)
+       if ((BITS_PER_UNIT != 32)
+                       ||(GET_MODE_SIZE(SImode)!=1)
+                       ||(GET_MODE_SIZE(SImode)!=1)
+                       ||(GET_MODE_SIZE(DImode)!=1)
+                       ||(GET_MODE_SIZE(DImode)!=1)
+                       ||(HARD_REGNO_NREGS(0,SImode)!=1)) {
+                       ||(HARD_REGNO_NREGS(0,SImode)!=1)) {
+               printf("SIZEOF(SIMode) == %d\n", GET_MODE_SIZE(SImode));
+               printf("SIZEOF(SIMode) == %d\n", GET_MODE_SIZE(SImode));
+               printf("BITS_PER_UNIT  == %d\n", BITS_PER_UNIT);
+               printf("BITS_PER_UNIT  == %d\n", BITS_PER_UNIT);
+               gcc_assert(BITS_PER_UNIT==32);
+               gcc_assert(BITS_PER_UNIT==32);
+               gcc_assert(GET_MODE_SIZE(SImode)==1);
+               gcc_assert(GET_MODE_SIZE(SImode)==1);
+               gcc_assert(HARD_REGNO_NREGS(0,SImode)==1);
+               gcc_assert(HARD_REGNO_NREGS(0,SImode)==1);
+       }
+       }
+}
+}
+*/
+*/
+
+
+#define        zip_basic_check()
+#define        zip_basic_check()
+
+
+/* Compute the number of word sized regiters needed to hold a function
+/* Compute the number of word sized regiters needed to hold a function
+ * argument of mode INT_MODE and tree type TYPE.
+ * argument of mode INT_MODE and tree type TYPE.
+ */
+ */
+int
+int
+zip_num_arg_regs(enum machine_mode mode, const_tree type) {
+zip_num_arg_regs(enum machine_mode mode, const_tree type) {
+       int     size;
+       int     size;
+
+
+       zip_basic_check();
+       zip_basic_check();
+
+
+       if (targetm.calls.must_pass_in_stack(mode, type))
+       if (targetm.calls.must_pass_in_stack(mode, type))
+               return 0;
+               return 0;
+
+
+       if ((type)&&(mode == BLKmode))
+       if ((type)&&(mode == BLKmode))
+               size = int_size_in_bytes(type);
+               size = int_size_in_bytes(type);
+       else
+       else
+               size = GET_MODE_SIZE(mode);
+               size = GET_MODE_SIZE(mode);
+
+
+       return (size + UNITS_PER_WORD - 1)/UNITS_PER_WORD;
+       return (size + UNITS_PER_WORD - 1)/UNITS_PER_WORD;
+}
+}
+
+
+/* pushed in function prologue */
+/* pushed in function prologue */
+/*
+/*
+static void
 
+zip_setup_incoming_varargs(CUMULATIVE_ARGS *cum, enum machine_mode mode,
 
+               tree type, int *pretend_size, int no_rtl) {
 
+       if (no_rtl)
 
+               return;
 
+
 
+       gcc_assert(mode != BLKmode);
 
+
 
+       if (*cum < (ZIP_LAST_ARG_REGNO+1)) {
 
+               int size = ZIP_FIRST_ARG_REGNO + ZIP_NUM_ARGS_REGS - *cum;
 
+               rtx     regblock;
 
+               int     offset = (*cum - ZIP_FIRST_ARG_REGNO) * UNITS_PER_WORD;
 
+               regblock = gen_rtx_MEM(BLKmode,
 
+                       plus_constant(arg_pointer_rtx, offset));
 
+               move_block_from_reg(*cum, regblock, size);
 
+               *pretend_size = size * UNITS_PER_WORD;
 
+       }
 
+
 
+       if (targetm.calls.strict_argument_naming(cum))
 
+               *cum = *cum + zip_num_arg_regs(mode, type);
 
+}
 
+*/
 
+
 
+/*
 
+static int
+static int
+zip_arg_partial_bytes(CUMULATIVE_ARGS *cum, enum machine_mode mode,
+zip_arg_partial_bytes(CUMULATIVE_ARGS *cum, enum machine_mode mode,
+               tree type, bool name ATTRIBUTE_UNUSED) {
+               tree type, bool name ATTRIBUTE_UNUSED) {
+       int     words;
+       int     words;
+       unsigned int    regs = zip_num_arg_regs(mode, type);
+       unsigned int    regs = zip_num_arg_regs(mode, type);
+
+
+       if (*cum >= ZIP_LAST_ARG_REGNO + 1)
+       if (*cum >= ZIP_LAST_ARG_REGNO + 1)
+               words = 0;
+               words = 0;
+       else if ((*cum + regs) > ZIP_LAST_ARG_REGNO + 1)
+       else if ((*cum + regs) > ZIP_LAST_ARG_REGNO + 1)
+               words = (*cum + regs) - ZIP_LAST_ARG_REGNO + 1;
+               words = (*cum + regs) - ZIP_LAST_ARG_REGNO + 1;
+       else
+       else
+               words = 0;
+               words = 0;
+
+
+       return words * UNITS_PER_WORD;
+       return words * UNITS_PER_WORD;
+}
+}
+*/
+*/
+
+
+static void
+static void
+zip_function_arg_advance(cumulative_args_t ca, machine_mode mode,
+zip_function_arg_advance(cumulative_args_t ca, machine_mode mode,
+               const_tree type, bool named ATTRIBUTE_UNUSED) {
+               const_tree type, bool named ATTRIBUTE_UNUSED) {
+       CUMULATIVE_ARGS *cum;
+       CUMULATIVE_ARGS *cum;
+       int     nreg;
+       int     nreg;
+
+
+       zip_basic_check();
+       zip_basic_check();
+
+
+       cum = get_cumulative_args(ca);
+       cum = get_cumulative_args(ca);
+       nreg = zip_num_arg_regs(mode, type);
+       nreg = zip_num_arg_regs(mode, type);
+       if (((*cum)+nreg) > NUM_ARG_REGS)
+       if (((*cum)+nreg) > NUM_ARG_REGS)
+               (*cum) = NUM_ARG_REGS;
+               (*cum) = NUM_ARG_REGS;
+       else
+       else
+               (*cum) += nreg;
+               (*cum) += nreg;
+}
+}
+
+
+static rtx
+static rtx
+zip_function_arg(cumulative_args_t ca, machine_mode mode,
+zip_function_arg(cumulative_args_t ca, machine_mode mode,
+               const_tree type ATTRIBUTE_UNUSED, bool named) {
+               const_tree type ATTRIBUTE_UNUSED, bool named) {
+       CUMULATIVE_ARGS *cum;
+       CUMULATIVE_ARGS *cum;
+
+
+       zip_basic_check();
+       zip_basic_check();
+
+
+
+
+       if (!named)
+       if (!named)
+               return NULL_RTX;
+               return NULL_RTX;
+       //if (targetm.calls.must_pass_in_stack(mode, type))
+       //if (targetm.calls.must_pass_in_stack(mode, type))
+               //return NULL_RTX;
+               //return NULL_RTX;
+       cum = get_cumulative_args(ca);
+       cum = get_cumulative_args(ca);
+
+
+       if ((*cum) >= NUM_ARG_REGS)
+       if ((*cum) >= NUM_ARG_REGS)
+               return NULL_RTX;
+               return NULL_RTX;
+       return
+       return
+               gen_rtx_REG(mode, (*cum)+1);
+               gen_rtx_REG(mode, (*cum)+1);
+}
+}
+
+
 
+#ifdef HAVE_cc0
+/* NOTICE_UPDATE_CC sends us here
+/* NOTICE_UPDATE_CC sends us here
+ */
+ */
+void
+void
+zip_update_cc_notice(rtx exp, rtx_insn *insn)
+zip_update_cc_notice(rtx exp, rtx_insn *insn)
+{
+{
 
+#error "The CC0 code was supposed to be removed"
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       enum    attr_ccresult  ccr;
+       enum    attr_ccresult  ccr;
+       enum    attr_conditional  conditionally_executed;
+       enum    attr_conditional  conditionally_executed;
+
+
+       // The default is that nothing has changed.
+       // The default is that nothing has changed.
+       // cc_status = cc_status_prev;
+       // cc_status = cc_status_prev;
+       rtx     src, dest;
+       rtx     src, dest;
+
+
+       if (dbg) fprintf(stderr, "CC-NOTICE ...\n");
+       if (dbg) fprintf(stderr, "CC-NOTICE ...\n");
+       if (dbg) zip_debug_rtx_pfx("CC :", exp);
+       if (dbg) zip_debug_rtx_pfx("CC :", exp);
+       if (dbg) debug_rtx(exp);
+       if (dbg) debug_rtx(exp);
+
+
+       ccr = get_attr_ccresult(insn);
+       ccr = get_attr_ccresult(insn);
+       if (ccr == CCRESULT_UNKNOWN) {
+       if (ccr == CCRESULT_UNKNOWN) {
+               CC_STATUS_INIT;
+               CC_STATUS_INIT;
+               if (dbg) fprintf(stderr, "\tINIT-CC\n");
+               if (dbg) fprintf(stderr, "\tINIT-CC\n");
+               return;
+               return;
+       }
+       }
+
+
+       if ((GET_CODE(exp) == PARALLEL)&&(GET_CODE(XVECEXP(exp, 0, 0))==SET)) {
+       if ((GET_CODE(exp) == PARALLEL)&&(GET_CODE(XVECEXP(exp, 0, 0))==SET)) {
+               // This works up and until we add cc0 parallel instructions
+               // This works up and until we add cc0 parallel instructions
+               // to our instruction set.
+               // to our instruction set.
+               dest = SET_DEST(XVECEXP(exp, 0, 0));
+               dest = SET_DEST(XVECEXP(exp, 0, 0));
+               src  = SET_SRC (XVECEXP(exp, 0, 0));
+               src  = SET_SRC (XVECEXP(exp, 0, 0));
+       } else if (GET_CODE(exp) == SET) {
+       } else if (GET_CODE(exp) == SET) {
+               dest = SET_DEST(exp);
+               dest = SET_DEST(exp);
+               src  = SET_SRC (exp);
+               src  = SET_SRC (exp);
+       } else {
+       } else {
+               // First, do nothing if we haven't touched the condition codes.
+               // First, do nothing if we haven't touched the condition codes.
+               // Condition codes can only be changed as a result of a set
+               // Condition codes can only be changed as a result of a set
+               // expression ...?
+               // expression ...?
+               if (dbg) fprintf(stderr, "Non-set expression, doesn\'t touch condition codes\n");
+               if (dbg) fprintf(stderr, "Non-set expression, doesn\'t touch condition codes\n");
+               return;
+               return;
+       }
+       }
+
+
+
+
+       if (ccr == CCRESULT_UNCHANGED) {
+       if (ccr == CCRESULT_UNCHANGED) {
+               if (dbg) fprintf(stderr, "\tUnchanged CC\n");
+               if (dbg) fprintf(stderr, "\tUnchanged CC\n");
+
+
+               // We can't just run away here ... even though the CC result
+               // We can't just run away here ... even though the CC result
+               // hasn't changed, GCC's ability to recognize it as a valid
+               // hasn't changed, GCC's ability to recognize it as a valid
+               // result has changed.  In other words, if we just 'set' a
+               // result has changed.  In other words, if we just 'set' a
+               // value contained within either value1 or value2, then we'll
+               // value contained within either value1 or value2, then we'll
+               // need to update those values so that they are no longer looked
+               // need to update those values so that they are no longer looked
+               // upon as potentially containing the current CC values.
+               // upon as potentially containing the current CC values.
+
+
+               if (dest) {
+               if (dest) {
+                       if (dest == cc0_rtx)
+                       if (dest == cc0_rtx)
+                               CC_STATUS_INIT;
+                               CC_STATUS_INIT;
+                       else if ((REG_P(dest))&&(dest != pc_rtx)) {
+                       else if ((REG_P(dest))&&(dest != pc_rtx)) {
+                               // An example here might be a load instruction
+                               // An example here might be a load instruction
+                               if (reg_mentioned_p(dest, cc_status.value1))
+                               if (reg_mentioned_p(dest, cc_status.value1))
+                                       cc_status.value1 = NULL_RTX;
+                                       cc_status.value1 = NULL_RTX;
+                               if (reg_mentioned_p(dest, cc_status.value2))
+                               if (reg_mentioned_p(dest, cc_status.value2))
+                                       cc_status.value2 = NULL_RTX;
+                                       cc_status.value2 = NULL_RTX;
+                       }
+                       }
+               }
+               }
+               return;
+               return;
+       }
+       }
+
+
+       // Gotta wait on this test, until we know whether or not the
+       // Gotta wait on this test, until we know whether or not the
+       // conditionally executed instruction was designed to set the
+       // conditionally executed instruction was designed to set the
+       // CC0 register.
+       // CC0 register.
+       conditionally_executed = get_attr_conditional(insn);
+       conditionally_executed = get_attr_conditional(insn);
+       if ((conditionally_executed == CONDITIONAL_YES)&&(dest != cc0_rtx)) {
+       if ((conditionally_executed == CONDITIONAL_YES)&&(dest != cc0_rtx)) {
+               // cc_status is unchanged
+               // cc_status is unchanged
+               // However, GCC's vision of it may have changed
+               // However, GCC's vision of it may have changed
+               //
+               //
+               // Initialize CC_STATUS
+               // Initialize CC_STATUS
+               if (dbg) fprintf(stderr, "\tCC -- unchanged (conditional exec)\n");
+               if (dbg) fprintf(stderr, "\tCC -- unchanged (conditional exec)\n");
+               CC_STATUS_INIT;
+               CC_STATUS_INIT;
+               return;
+               return;
+       } else if (GET_CODE(src)==IF_THEN_ELSE) {
+       } else if (GET_CODE(src)==IF_THEN_ELSE) {
+               // Same thing as above
+               // Same thing as above
+               CC_STATUS_INIT;
+               CC_STATUS_INIT;
+               return;
+               return;
+       }
+       }
+
+
+       if (ccr == CCRESULT_VALIDZN)
+       if (ccr == CCRESULT_VALIDZN)
+               cc_status.flags = CC_NO_OVERFLOW;
+               cc_status.flags = CC_NO_OVERFLOW;
+       else
+       else
+               cc_status.flags = 0;
+               cc_status.flags = 0;
+       cc_status.value1 = dest;
+       cc_status.value1 = dest;
+       if (dest == cc0_rtx)
+       if (dest == cc0_rtx)
+               cc_status.value2 = src;
+               cc_status.value2 = src;
+       else if((REG_P(dest))&&(!reg_mentioned_p(dest, src)))
+       else if((REG_P(dest))&&(!reg_mentioned_p(dest, src)))
+               cc_status.value2 = src;
+               cc_status.value2 = src;
+       else if((SUBREG_P(dest))&&(!reg_mentioned_p(XEXP(dest,0), src)))
+       else if((SUBREG_P(dest))&&(!reg_mentioned_p(XEXP(dest,0), src)))
+               cc_status.value2 = src;
+               cc_status.value2 = src;
+       else
+       else
+               cc_status.value2 = 0;
+               cc_status.value2 = 0;
+       if (dbg) fprintf(stderr, "\tCC -- Set flags for\n");
+       if (dbg) fprintf(stderr, "\tCC -- Set flags for\n");
+       if (dbg) zip_debug_rtx_pfx("V1: ", dest);
+       if (dbg) zip_debug_rtx_pfx("V1: ", dest);
+       if ((dbg)&&(cc_status.value2)) zip_debug_rtx_pfx("V2: ", src);
+       if ((dbg)&&(cc_status.value2)) zip_debug_rtx_pfx("V2: ", src);
+       else if (dbg)   fprintf(stderr, "V2: (No SRC)\n");
+       else if (dbg)   fprintf(stderr, "V2: (No SRC)\n");
+       if ((dbg)&&(REG_P(dest))) fprintf(stderr, "src refers to dest ?? %s\n",
+       if ((dbg)&&(REG_P(dest))) fprintf(stderr, "src refers to dest ?? %s\n",
+               refers_to_regno_p(REGNO(dest),REGNO(dest),src,NULL)?"Yes":"No");
+               refers_to_regno_p(REGNO(dest),REGNO(dest),src,NULL)?"Yes":"No");
+       if ((dbg)&&(REG_P(dest))) fprintf(stderr, "Occurrs %d times\n",
+       if ((dbg)&&(REG_P(dest))) fprintf(stderr, "Occurrs %d times\n",
+               count_occurrences(dest,src,0));
+               count_occurrences(dest,src,0));
+       if ((dbg)&&(REG_P(dest))) fprintf(stderr, "%s mentioned\n",
+       if ((dbg)&&(REG_P(dest))) fprintf(stderr, "%s mentioned\n",
+               reg_mentioned_p(dest,src)?"Is":"Is not");
+               reg_mentioned_p(dest,src)?"Is":"Is not");
+       if ((dbg)&&(REG_P(dest))) fprintf(stderr, "%s referenced\n",
+       if ((dbg)&&(REG_P(dest))) fprintf(stderr, "%s referenced\n",
+               reg_referenced_p(dest,src)?"Is":"Is not");
+               reg_referenced_p(dest,src)?"Is":"Is not");
+
+
+//
+//
+// These results are only used in final.c, where they are used to remove
+// These results are only used in final.c, where they are used to remove
+// compare instructions if the optimizer is on.  If I produce nothing, no
+// compare instructions if the optimizer is on.  If I produce nothing, no
+// compare instructions will be removed.  If I produce something, a smart
+// compare instructions will be removed.  If I produce something, a smart
+// decision may be made to remove compare instructions.
+// decision may be made to remove compare instructions.
+//
+//
+// cc_status will be compared  with subsequent
+// cc_status will be compared  with subsequent
+//     (set (cc0) (something)) (i.e. compare only) instructions
+//     (set (cc0) (something)) (i.e. compare only) instructions
+//
+//
+//     (set (cc0) (compare (x) (y)))
+//     (set (cc0) (compare (x) (y)))
+//     dst = cc0 -- the destination of the set is ignored, save that it must be
+//     dst = cc0 -- the destination of the set is ignored, save that it must be
+//             cc0
+//             cc0
+//     src1 = (compare (x) (y))
+//     src1 = (compare (x) (y))
+//     if (src1 == compare)&&(y == (const_int 0))
+//     if (src1 == compare)&&(y == (const_int 0))
+//             src2 = (x)
+//             src2 = (x)
+//     else
+//     else
+//             src2 = null
+//             src2 = null
+//
+//
+//     Four conditions:
+//     Four conditions:
+//     1. if (val1)&&(src1 == val1)
+//     1. if (val1)&&(src1 == val1)
+//             This would be true if I had seen a (set (val1) (src1)) insn
+//             This would be true if I had seen a (set (val1) (src1)) insn
+//             If I have seen a (set (val1) (src1))
+//             If I have seen a (set (val1) (src1))
+//                     or equivalently a (set (val1) (compare (x) (y)))
+//                     or equivalently a (set (val1) (compare (x) (y)))
+//     or
+//     or
+//     2. if (val2)&&(src1 == val2)
+//     2. if (val2)&&(src1 == val2)
+//             This would be true if I had seen a (set (val1) (src1)) insn,
+//             This would be true if I had seen a (set (val1) (src1)) insn,
+//             and only if val2 was still valid.
+//             and only if val2 was still valid.
+//     or
+//     or
+//     3. if (src2)&&(value1)&&(src2 == value1)
+//     3. if (src2)&&(value1)&&(src2 == value1)
+//             This would be true if we are comparing against zero, and the
+//             This would be true if we are comparing against zero, and the
+//             number we are comparing against zero is value 1
+//             number we are comparing against zero is value 1
+//     or
+//     or
+//     4. if (src2)&&(value2)&&(src2 == value2)
+//     4. if (src2)&&(value2)&&(src2 == value2)
+//             ... or value2.  This is the common ZipCPU case.
+//             ... or value2.  This is the common ZipCPU case.
+//
+//
+//             then delete the compare.
+//             then delete the compare.
+//
+//
+}
+}
 
+#else
 
+
 
+void   zip_canonicalize_comparison(int *code, rtx *op0, rtx *op1,
 
+               bool preserve_op0)
 
+{
 
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
 
+
 
+       if (dbg) fprintf(stderr, "CANONICALIZE ...%s\n", (preserve_op0)?"(Preserve Op0)":"");
 
+       if (dbg) zip_debug_rtx_pfx("CODE", gen_rtx_fmt_ee((rtx_code)*code, VOIDmode, gen_rtx_REG(CCmode,zip_CC), const0_rtx));
 
+       if (dbg) zip_debug_rtx_pfx("OP0 ", *op0);
 
+       if (dbg) zip_debug_rtx_pfx("OP1 ", *op1);
 
+
 
+       if ((!preserve_op0)&&((*code == LE)||(*code == GTU)||(*code == GEU))) {
 
+               rtx tem = *op0;
 
+               *op0 = *op1;
 
+               *op1 = tem;
 
+               *code = (int)swap_condition((enum rtx_code)*code);
 
+       }
 
+
 
+       if ((*code == LE)||(*code == LEU)||(*code == GTU)) {
 
+               int offset = 1; // (*code == GTU) ? 1 : -1;
 
+               bool    swap = false;
 
+
 
+               if (CONST_INT_P(*op1)) {
 
+                       *op1 = GEN_INT(INTVAL(*op1)+offset);
 
+                       swap = true;
 
+               } else if (REG_P(*op1)) {
 
+                       *op1 = plus_constant(SImode, *op1, offset, true);
 
+                       swap = true;
 
+               } else if ((GET_CODE(*op1)==PLUS)&&(CONST_INT_P(XEXP(*op1,1)))){
 
+                       *op1 = plus_constant(GET_MODE(*op1),XEXP(*op1,0),
 
+                               INTVAL(XEXP(*op1,1))+offset);
 
+                       swap = true;
 
+               } if (swap) {
 
+                       if (*code == LE)
 
+                               (*code)= LT;
 
+                       else if (*code == LEU)
 
+                               (*code)= LTU;
 
+                       else // (*code == GTU)
 
+                               (*code) = GEU;
 
+               }
 
+       }
 
+}
 
+
 
+static bool
 
+zip_fixed_condition_code_regs(unsigned int *a, unsigned int *b) {
 
+       *a = zip_CC;
 
+       *b = INVALID_REGNUM;
 
+       return true;
 
+}
 
+
 
+#endif
+
+
+
+
+/* totally buggy - we can't return pointers to nested functions */
+/* totally buggy - we can't return pointers to nested functions */
+static void
+static void
+zip_asm_trampoline_template(FILE *f) {
+zip_asm_trampoline_template(FILE *f) {
+       // Whereas at one time I thought I wouldn't need it, now I know I
+       // Whereas at one time I thought I wouldn't need it, now I know I
+       // need this trampoline function, although it is for a completely
+       // need this trampoline function, although it is for a completely
+       // different purpose than the one I was familiar with.
+       // different purpose than the one I was familiar with.
+       fprintf(f, "\tldihi 0,r1\n");
+       fprintf(f, "\tldihi 0,r1\n");
+       fprintf(f, "\tldilo 0,r1\n");
+       fprintf(f, "\tldilo 0,r1\n");
+       fprintf(f, "\tjmp r1\n");
+       fprintf(f, "\tjmp r1\n");
+}
+}
+
+
+/* Worker function for TARGET_TRAMPOLINE_INIT. */
+/* Worker function for TARGET_TRAMPOLINE_INIT. */
+static void
+static void
+zip_trampoline_init(rtx m_tramp ATTRIBUTE_UNUSED,
+zip_trampoline_init(rtx m_tramp ATTRIBUTE_UNUSED,
+       tree fndecl ATTRIBUTE_UNUSED,
+       tree fndecl ATTRIBUTE_UNUSED,
+       rtx chain_value ATTRIBUTE_UNUSED) {
+       rtx chain_value ATTRIBUTE_UNUSED) {
+// #warning "This needs to be filled out"
+// #warning "This needs to be filled out"
+       abort();
+       abort();
+}
+}
+
+
+static tree
+static tree
+def_builtin(const char *name, enum insn_code icode, enum ZIP_BUILTIN_ID_CODE code,
+def_builtin(const char *name, enum insn_code icode, enum ZIP_BUILTIN_ID_CODE code,
+       tree type)
+       tree type)
+{
+{
+       tree t = add_builtin_function(name,type,code,BUILT_IN_MD, NULL, NULL_TREE);
+       tree t = add_builtin_function(name,type,code,BUILT_IN_MD, NULL, NULL_TREE);
+       zip_basic_check();
+       zip_basic_check();
+
+
+       if(t) {
+       if(t) {
+               zip_builtins[code] = t;
+               zip_builtins[code] = t;
+               zip_builtins_icode[code] = icode;
+               zip_builtins_icode[code] = icode;
+       }
+       }
+
+
+       return t;
+       return t;
+
+
+}
+}
+
+
+void   zip_init_builtins(void) {
+void   zip_init_builtins(void) {
+       zip_basic_check();
+       zip_basic_check();
+
+
+  tree void_ftype_void = build_function_type_list(void_type_node, NULL_TREE);
+  tree void_ftype_void = build_function_type_list(void_type_node, NULL_TREE);
+#ifdef HAVE_zip_rtu
+#ifdef HAVE_zip_rtu
+  def_builtin("zip_rtu", CODE_FOR_zip_rtu, ZIP_BUILTIN_RTU, void_ftype_void);
+  def_builtin("zip_rtu", CODE_FOR_zip_rtu, ZIP_BUILTIN_RTU, void_ftype_void);
+#endif
+#endif
+#ifdef HAVE_zip_halt
+#ifdef HAVE_zip_halt
+  def_builtin("zip_halt",  CODE_FOR_zip_halt,  ZIP_BUILTIN_HALT, void_ftype_void);
+  def_builtin("zip_halt",  CODE_FOR_zip_halt,  ZIP_BUILTIN_HALT, void_ftype_void);
+#endif
+#endif
+#ifdef HAVE_zip_idle
+#ifdef HAVE_zip_idle
+  def_builtin("zip_idle", CODE_FOR_zip_idle, ZIP_BUILTIN_IDLE, void_ftype_void);
+  def_builtin("zip_idle", CODE_FOR_zip_idle, ZIP_BUILTIN_IDLE, void_ftype_void);
+#endif
+#endif
+
+
+#ifdef HAVE_zip_syscall
+#ifdef HAVE_zip_syscall
+// Support int SYSCALL(callID, int a, int b, int c);
+// Support int SYSCALL(callID, int a, int b, int c);
+  def_builtin("zip_syscall", CODE_FOR_zip_syscall, ZIP_BUILTIN_SYSCALL,
+  def_builtin("zip_syscall", CODE_FOR_zip_syscall, ZIP_BUILTIN_SYSCALL,
+                       build_function_type_list(void_type_node, NULL_TREE));
+                       build_function_type_list(void_type_node, NULL_TREE));
+#endif
+#endif
+
+
+#ifdef HAVE_zip_save_context
+#ifdef HAVE_zip_save_context
+  def_builtin("zip_save_context", CODE_FOR_zip_save_context, ZIP_BUILTIN_SAVE_CONTEXT,
+  def_builtin("zip_save_context", CODE_FOR_zip_save_context, ZIP_BUILTIN_SAVE_CONTEXT,
+               build_function_type_list(void_type_node, ptr_type_node, 0));
+               build_function_type_list(void_type_node, ptr_type_node, 0));
+#endif
+#endif
+
+
+#ifdef HAVE_zip_restore_context
+#ifdef HAVE_zip_restore_context
+  def_builtin("zip_restore_context", CODE_FOR_zip_restore_context, ZIP_BUILTIN_RESTORE_CONTEXT,
+  def_builtin("zip_restore_context", CODE_FOR_zip_restore_context, ZIP_BUILTIN_RESTORE_CONTEXT,
+       build_function_type_list(void_type_node, ptr_type_node, 0));
+       build_function_type_list(void_type_node, ptr_type_node, 0));
+#endif
+#endif
+
+
+#ifdef HAVE_zip_bitrev
+#ifdef HAVE_zip_bitrev
+  def_builtin("zip_bitrev", CODE_FOR_zip_bitrev, ZIP_BUILTIN_BITREV,
+  def_builtin("zip_bitrev", CODE_FOR_zip_bitrev, ZIP_BUILTIN_BITREV,
+       build_function_type_list(unsigned_type_node, unsigned_type_node,
+       build_function_type_list(unsigned_type_node, unsigned_type_node,
+               NULL_TREE));
+               NULL_TREE));
+#endif
+#endif
+
+
+#ifdef HAVE_zip_cc
+#ifdef HAVE_zip_cc
+  def_builtin("zip_cc", CODE_FOR_zip_cc, ZIP_BUILTIN_CC,
+  def_builtin("zip_cc", CODE_FOR_zip_cc, ZIP_BUILTIN_CC,
+       build_function_type_list(unsigned_type_node, NULL_TREE));
+       build_function_type_list(unsigned_type_node, NULL_TREE));
+#endif
+#endif
+
+
+#ifdef HAVE_zip_ucc
+#ifdef HAVE_zip_ucc
+  def_builtin("zip_ucc", CODE_FOR_zip_ucc, ZIP_BUILTIN_UCC,
+  def_builtin("zip_ucc", CODE_FOR_zip_ucc, ZIP_BUILTIN_UCC,
+       build_function_type_list(unsigned_type_node, NULL_TREE));
+       build_function_type_list(unsigned_type_node, NULL_TREE));
+#endif
+#endif
+
+
+}
+}
+
+
+static tree
+static tree
+zip_builtin_decl(unsigned zip_builtin_code, bool initialize_p ATTRIBUTE_UNUSED)
+zip_builtin_decl(unsigned zip_builtin_code, bool initialize_p ATTRIBUTE_UNUSED)
+{
+{
+  if (zip_builtin_code >= ZIP_BUILTIN_MAX)
+  if (zip_builtin_code >= ZIP_BUILTIN_MAX)
+    return error_mark_node;
+    return error_mark_node;
+
+
+  return zip_builtins[zip_builtin_code];
+  return zip_builtins[zip_builtin_code];
+}
+}
+
+
+static rtx
+static rtx
+zip_expand_builtin(tree exp, rtx target,
+zip_expand_builtin(tree exp, rtx target,
+               rtx subtarget ATTRIBUTE_UNUSED,
+               rtx subtarget ATTRIBUTE_UNUSED,
+               machine_mode tmode ATTRIBUTE_UNUSED,
+               machine_mode tmode ATTRIBUTE_UNUSED,
+               int     ignore ATTRIBUTE_UNUSED) {
+               int     ignore ATTRIBUTE_UNUSED) {
+
+
+       tree    fndecl = TREE_OPERAND(CALL_EXPR_FN(exp), 0);
+       tree    fndecl = TREE_OPERAND(CALL_EXPR_FN(exp), 0);
+       bool    nonvoid = (TREE_TYPE(TREE_TYPE(fndecl)) != void_type_node);
+       bool    nonvoid = (TREE_TYPE(TREE_TYPE(fndecl)) != void_type_node);
+       enum    ZIP_BUILTIN_ID_CODE code=(enum ZIP_BUILTIN_ID_CODE)DECL_FUNCTION_CODE(fndecl);
+       enum    ZIP_BUILTIN_ID_CODE code=(enum ZIP_BUILTIN_ID_CODE)DECL_FUNCTION_CODE(fndecl);
+       enum    insn_code icode = zip_builtins_icode[code];
+       enum    insn_code icode = zip_builtins_icode[code];
+       rtx     pat, op[5];
+       rtx     pat, op[5];
+       call_expr_arg_iterator  iter;
+       call_expr_arg_iterator  iter;
+       tree    arg;
+       tree    arg;
+
+
+       if ((code == ZIP_BUILTIN_SAVE_CONTEXT)
+       if ((code == ZIP_BUILTIN_SAVE_CONTEXT)
+                       ||(code == ZIP_BUILTIN_RESTORE_CONTEXT)) {
+                       ||(code == ZIP_BUILTIN_RESTORE_CONTEXT)) {
+               arg = first_call_expr_arg(exp, &iter);
+               arg = first_call_expr_arg(exp, &iter);
+               if (arg == error_mark_node)
+               if (arg == error_mark_node)
+                       return NULL_RTX;
+                       return NULL_RTX;
+               op[0] = expand_normal(arg);
+               op[0] = expand_normal(arg);
+               if (GET_CODE(op[0]) != REG)
+               if (GET_CODE(op[0]) != REG)
+                       op[0] = force_reg(Pmode, op[0]);
+                       op[0] = force_reg(Pmode, op[0]);
+               pat = GEN_FCN(icode)(op[0]);
+               pat = GEN_FCN(icode)(op[0]);
+       } else if (code == ZIP_BUILTIN_BITREV) {
+       } else if (code == ZIP_BUILTIN_BITREV) {
+               arg = first_call_expr_arg(exp, &iter);
+               arg = first_call_expr_arg(exp, &iter);
+               if (arg == error_mark_node) {
+               if (arg == error_mark_node) {
+                       return NULL_RTX;
+                       return NULL_RTX;
+               }
+               }
+               op[0] = expand_normal(arg);
+               op[0] = expand_normal(arg);
+               if (!target)
+               if (!target)
+                       target = gen_reg_rtx(SImode);
+                       target = gen_reg_rtx(SImode);
+               pat = GEN_FCN(icode)(target, op[0]);
+               pat = GEN_FCN(icode)(target, op[0]);
+       } else if ((code == ZIP_BUILTIN_CC)||(code == ZIP_BUILTIN_UCC)) {
+       } else if ((code == ZIP_BUILTIN_CC)||(code == ZIP_BUILTIN_UCC)) {
+               if (!target)
+               if (!target)
+                       target = gen_reg_rtx(SImode);
+                       target = gen_reg_rtx(SImode);
+               pat = GEN_FCN(icode)(target);
+               pat = GEN_FCN(icode)(target);
+       } else // RTU, HALT, IDLE
+       } else // RTU, HALT, IDLE
+               pat = GEN_FCN(icode)();
+               pat = GEN_FCN(icode)();
+       if (!pat)
+       if (!pat)
+               return NULL_RTX;
+               return NULL_RTX;
+       emit_insn(pat);
+       emit_insn(pat);
+       return (nonvoid ? target : const0_rtx);
+       return (nonvoid ? target : const0_rtx);
+}
+}
+
+
+static bool
+static bool
+zip_scalar_mode_supported_p(enum machine_mode mode) {
+zip_scalar_mode_supported_p(enum machine_mode mode) {
+       zip_basic_check();
+       zip_basic_check();
+
+
+       return ((mode)==SImode)||((mode)==DImode); // ||((mode)==SFmode);
+       return ((mode)==SImode)||((mode)==DImode); // ||((mode)==SFmode);
+}
+}
+
+
+static bool
+static bool
+zip_libgcc_floating_mode_supported_p(enum machine_mode mode) {
+zip_libgcc_floating_mode_supported_p(enum machine_mode mode) {
+       return ((mode)==SFmode)||((mode)==DFmode);
+       return ((mode)==SFmode)||((mode)==DFmode);
+}
+}
+
+
+static int
+static int
+zip_address_cost(rtx addr ATTRIBUTE_UNUSED,
+zip_address_cost(rtx addr ATTRIBUTE_UNUSED,
+       enum machine_mode mode ATTRIBUTE_UNUSED,
+       enum machine_mode mode ATTRIBUTE_UNUSED,
+       addr_space_t as ATTRIBUTE_UNUSED, bool spd ATTRIBUTE_UNUSED) {
+       addr_space_t as ATTRIBUTE_UNUSED, bool spd ATTRIBUTE_UNUSED) {
+       return 1;
+       return 1;
+}
+}
+
+
+static bool
+static bool
+zip_mode_dependent_address_p(const_rtx addr ATTRIBUTE_UNUSED,
+zip_mode_dependent_address_p(const_rtx addr ATTRIBUTE_UNUSED,
+       addr_space_t as ATTRIBUTE_UNUSED) {
+       addr_space_t as ATTRIBUTE_UNUSED) {
+       return false;
+       return false;
+}
+}
+
+
+/*
+/*
+static void
+static void
+zip_asm_output_anchor(rtx x) {
+zip_asm_output_anchor(rtx x) {
+       printf("ANCHOR: OP(%d)\n", GET_CODE(x));
+       printf("ANCHOR: OP(%d)\n", GET_CODE(x));
+}
+}
+*/
+*/
+
+
+static void
+static void
+zip_debug_print(const char *pfx, int lvl, const char *str) {
+zip_debug_print(const char *pfx, int lvl, const char *str) {
+       int     i;
+       int     i;
+       i = lvl;
+       i = lvl;
+       if ((true)||(lvl == 0))
+       if ((true)||(lvl == 0))
+               fprintf(stderr, "%s", pfx);
+               fprintf(stderr, "%s", pfx);
+       else
+       else
+               i += strlen(pfx);
+               i += strlen(pfx);
+       while(i-->0)
+       while(i-->0)
+               fprintf(stderr, "  ");
+               fprintf(stderr, "  ");
+       fprintf(stderr, "%s\n", str);
+       fprintf(stderr, "%s\n", str);
+}
+}
+
+
+static void
+static void
+zip_debug_print_m(const char *pfx, int lvl, const char *str, enum machine_mode m) {
+zip_debug_print_m(const char *pfx, int lvl, const char *str, enum machine_mode m) {
+       int     i;
+       int     i;
+
+
+       i = lvl;
+       i = lvl;
+       if ((true)||(lvl == 0))
+       if ((true)||(lvl == 0))
+               fprintf(stderr, "%s", pfx);
+               fprintf(stderr, "%s", pfx);
+       else
+       else
+               i = lvl+strlen(pfx);
+               i = lvl+strlen(pfx);
+       while(i-->0)
+       while(i-->0)
+               fprintf(stderr, "  ");
+               fprintf(stderr, "  ");
+       switch(m) {
+       switch(m) {
+               case VOIDmode:
+               case VOIDmode:
+                       fprintf(stderr, "%s:V\n", str);
+                       fprintf(stderr, "%s:V\n", str);
+                       break;
+                       break;
+               case BLKmode:
+               case BLKmode:
+                       fprintf(stderr, "%s:BLK\n", str);
+                       fprintf(stderr, "%s:BLK\n", str);
+                       break;
+                       break;
+               case BImode:
+               case BImode:
+                       fprintf(stderr, "%s:BI\n", str);
+                       fprintf(stderr, "%s:BI\n", str);
+                       break;
+                       break;
+#ifdef HAVE_QImode
+#ifdef HAVE_QImode
+               case QImode:
+               case QImode:
+                       fprintf(stderr, "%s:QI\n", str);
+                       fprintf(stderr, "%s:QI\n", str);
+                       break;
+                       break;
+#endif
+#endif
+#ifdef HAVE_HImode
+#ifdef HAVE_HImode
+               case HImode:
+               case HImode:
+                       fprintf(stderr, "%s:HI\n", str);
+                       fprintf(stderr, "%s:HI\n", str);
+                       break;
+                       break;
+#endif
+#endif
+               case SImode:
+               case SImode:
+                       fprintf(stderr, "%s:SI\n", str);
+                       fprintf(stderr, "%s:SI\n", str);
+                       break;
+                       break;
 
+               case CCmode:
 
+                       fprintf(stderr, "%s:CC\n", str);
 
+                       break;
+               case DImode:
+               case DImode:
+                       fprintf(stderr, "%s:DI\n", str);
+                       fprintf(stderr, "%s:DI\n", str);
+                       break;
+                       break;
+               default:
+               default:
+                       fprintf(stderr, "%s:?\n", str);
+                       fprintf(stderr, "%s:?\n", str);
+       }
+       }
+}
+}
+
+
+static void
+static void
+zip_debug_rtx_1(const char *pfx, const_rtx x, int lvl) {
+zip_debug_rtx_1(const char *pfx, const_rtx x, int lvl) {
+       if (x == NULL_RTX) {
+       if (x == NULL_RTX) {
+               zip_debug_print(pfx, lvl, "(NULL-RTX)");
+               zip_debug_print(pfx, lvl, "(NULL-RTX)");
+               return;
+               return;
+       } else if (GET_CODE(x) > NUM_RTX_CODE) {
+       } else if (GET_CODE(x) > NUM_RTX_CODE) {
+               char    buf[64];
+               char    buf[64];
+               sprintf(buf, "(BAD-RTX-CODE %d)", GET_CODE(x));
+               sprintf(buf, "(BAD-RTX-CODE %d)", GET_CODE(x));
+               zip_debug_print(pfx, lvl, buf);
+               zip_debug_print(pfx, lvl, buf);
+               gcc_assert(0 && "Bad RTX Code");
+               gcc_assert(0 && "Bad RTX Code");
+               return;
+               return;
+       } switch(GET_CODE(x)) { // rtl.def
+       } switch(GET_CODE(x)) { // rtl.def
+       case PARALLEL: zip_debug_print(pfx, lvl, "(PARALLEL");
+       case PARALLEL:
+               debug_rtx(x); break;
+               zip_debug_print(pfx, lvl, "(PARALLEL");
 
+               for(int j=0; j<XVECLEN(x,0);j++)
 
+                       zip_debug_rtx_1(pfx, XVECEXP(x,0,j), lvl+1);
 
+               zip_debug_print(pfx, lvl, ")");
 
+               debug_rtx(x);
 
+               break;
+       case INT_LIST: zip_debug_print(pfx, lvl, "(INT-LIST"); break;
+       case INT_LIST: zip_debug_print(pfx, lvl, "(INT-LIST"); break;
+       case SEQUENCE: zip_debug_print(pfx, lvl, "(SEQUENCE"); break;
+       case SEQUENCE:
 
+               zip_debug_print(pfx, lvl, "(SEQUENCE");
 
+               for(int j=0; j<XVECLEN(x,0);j++)
 
+                       zip_debug_rtx_1(pfx, XVECEXP(x,0,j), lvl+1);
 
+               zip_debug_print(pfx, lvl, ")");
 
+               debug_rtx(x);
 
+               break;
+       case ADDRESS: zip_debug_print(pfx, lvl, "(ADDRESS"); break;
+       case ADDRESS: zip_debug_print(pfx, lvl, "(ADDRESS"); break;
+       case DEBUG_INSN: zip_debug_print(pfx, lvl, "(DEBUG-INSN"); break;
+       case DEBUG_INSN: zip_debug_print(pfx, lvl, "(DEBUG-INSN"); break;
+       case INSN:
+       case INSN:
+               zip_debug_print(pfx, lvl, "(INSN");
+               zip_debug_print(pfx, lvl, "(INSN");
+               /*
+               /*
+               { const rtx_insn *tmp_rtx;
+               { const rtx_insn *tmp_rtx;
+               for(tmp_rtx = as_a <const rtx_insn *>(x); tmp_rtx != 0; tmp_rtx = NEXT_INSN(tmp_rtx)) {
+               for(tmp_rtx = as_a <const rtx_insn *>(x); tmp_rtx != 0; tmp_rtx = NEXT_INSN(tmp_rtx)) {
+                       zip_debug_rtx_1(tmp_rtx, lvl+1);
+                       zip_debug_rtx_1(tmp_rtx, lvl+1);
+               }}
+               }}
+               */
+               */
+               zip_debug_rtx_1(pfx, PATTERN(x), lvl+1);
+               zip_debug_rtx_1(pfx, PATTERN(x), lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               debug_rtx(x);
+               debug_rtx(x);
+               break;
+               break;
+       case JUMP_INSN: zip_debug_print(pfx, lvl, "(JUMP-INSN");
+       case JUMP_INSN: zip_debug_print(pfx, lvl, "(JUMP-INSN");
+               zip_debug_rtx_1(pfx, PATTERN(x), lvl+1);
+               zip_debug_rtx_1(pfx, PATTERN(x), lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               /*
+               /*
+               if (JUMP_LABEL(x)) {
+               if (JUMP_LABEL(x)) {
+                       if (GET_CODE(JUMP_LABEL(x)) == LABEL_REF) {
+                       if (GET_CODE(JUMP_LABEL(x)) == LABEL_REF) {
+                               char    buf[64];
+                               char    buf[64];
+                               sprintf(buf, "(LABEL *.L%d))", CODE_LABEL_NUMBER(LABEL_REF_LABEL(JUMP_LABEL(x))));
+                               sprintf(buf, "(LABEL *.L%d))", CODE_LABEL_NUMBER(LABEL_REF_LABEL(JUMP_LABEL(x))));
+                               zip_debug_print(pfx, lvl+1, buf);
+                               zip_debug_print(pfx, lvl+1, buf);
+                       } else if (GET_CODE(JUMP_LABEL(x))==CODE_LABEL) {
+                       } else if (GET_CODE(JUMP_LABEL(x))==CODE_LABEL) {
+                               char    buf[64];
+                               char    buf[64];
+                               sprintf(buf, "(CODE_LABEL *.L%d))", CODE_LABEL_NUMBER(JUMP_LABEL(x)));
+                               sprintf(buf, "(CODE_LABEL *.L%d))", CODE_LABEL_NUMBER(JUMP_LABEL(x)));
+                               zip_debug_print(pfx, lvl+1, buf);
+                               zip_debug_print(pfx, lvl+1, buf);
+                       } else
+                       } else
+                       zip_debug_print(pfx, lvl+1, "(w/Label))");
+                       zip_debug_print(pfx, lvl+1, "(w/Label))");
+               } else
+               } else
+                       zip_debug_print(pfx, lvl+1, "(NO label))");
+                       zip_debug_print(pfx, lvl+1, "(NO label))");
+               debug_rtx(x);
+               debug_rtx(x);
+               */
+               */
+               break;
+               break;
+       case CALL:
+       case CALL:
+               zip_debug_print(pfx, lvl, "(CALL (Adr) (Args)");
+               zip_debug_print(pfx, lvl, "(CALL (Adr) (Args)");
+               zip_debug_rtx_1(pfx, XEXP(x,0), lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0), lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1), lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1), lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case CALL_INSN: zip_debug_print(pfx, lvl, "(CALL-INSN");
+       case CALL_INSN: zip_debug_print(pfx, lvl, "(CALL-INSN");
+               debug_rtx(x);
+               debug_rtx(x);
+               break;
+               break;
+       case BARRIER: zip_debug_print(pfx, lvl, "(BARRIER)"); break;
+       case BARRIER: zip_debug_print(pfx, lvl, "(BARRIER)"); break;
+       case RETURN: zip_debug_print(pfx, lvl, "(RETURN)"); break;
+       case RETURN: zip_debug_print(pfx, lvl, "(RETURN)"); break;
+       case NOTE:
+       case NOTE:
+               {       char buf[128];
+               {       char buf[128];
+                       sprintf(buf, "(NOTE %s)", GET_REG_NOTE_NAME(GET_MODE(x)));
+                       sprintf(buf, "(NOTE %s)", GET_REG_NOTE_NAME(GET_MODE(x)));
+                       zip_debug_print(pfx, lvl, buf);
+                       zip_debug_print(pfx, lvl, buf);
+               }break;
+               }break;
+       case COND_EXEC: zip_debug_print(pfx, lvl, "(COND_EXEC)");
+       case COND_EXEC: zip_debug_print(pfx, lvl, "(COND_EXEC)");
+               debug_rtx(x);
+               debug_rtx(x);
+               break;
+               break;
+       case ASM_INPUT: zip_debug_print(pfx, lvl, "(ASM INPUT)"); break;
+       case ASM_INPUT: zip_debug_print(pfx, lvl, "(ASM INPUT)"); break;
+       case ASM_OPERANDS: zip_debug_print(pfx, lvl, "(ASM OPERANDS)"); break;
+       case ASM_OPERANDS: zip_debug_print(pfx, lvl, "(ASM OPERANDS)"); break;
+       case UNSPEC: zip_debug_print(pfx, lvl, "(UNSPEC)"); break;
+       case UNSPEC: zip_debug_print(pfx, lvl, "(UNSPEC)"); break;
+       case UNSPEC_VOLATILE: zip_debug_print(pfx, lvl, "(UNSPEC_VOLATILE)"); break;
+       case UNSPEC_VOLATILE: zip_debug_print(pfx, lvl, "(UNSPEC_VOLATILE)"); break;
+       case CODE_LABEL:
+       case CODE_LABEL:
+               {
+               {
+                       char    buf[64];
+                       char    buf[64];
+                       sprintf(buf, "(CODE_LABEL *.L%d)", CODE_LABEL_NUMBER(x));
+                       sprintf(buf, "(CODE_LABEL *.L%d)", CODE_LABEL_NUMBER(x));
+                       zip_debug_print_m(pfx, lvl, buf, GET_MODE(x));
+                       zip_debug_print_m(pfx, lvl, buf, GET_MODE(x));
+               } break;
+               } break;
+       case SET:
+       case SET:
+               zip_debug_print_m(pfx, lvl, "(SET", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(SET", GET_MODE(x));
+               zip_debug_rtx_1(pfx, SET_DEST(x),lvl+1);
+               zip_debug_rtx_1(pfx, SET_DEST(x),lvl+1);
+               zip_debug_rtx_1(pfx, SET_SRC(x),lvl+1);
+               zip_debug_rtx_1(pfx, SET_SRC(x),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               debug_rtx(x);
+               debug_rtx(x);
+               break;
+               break;
+       case REG:
+       case REG: {
 
+               char buf[25];
+               if (REGNO(x) == zip_PC)
+               if (REGNO(x) == zip_PC)
+                       zip_debug_print(pfx, lvl, "(PC)");
+                       sprintf(buf, "(PC)");
+               else if (REGNO(x) == zip_CC)
+               else if (REGNO(x) == zip_CC)
+                       zip_debug_print(pfx, lvl, "(CC0)");
+                       sprintf(buf, "(CC)");
+               else if (REGNO(x) == zip_SP)
+               else if (REGNO(x) == zip_SP)
+                       zip_debug_print(pfx, lvl, "(SP)");
+                       sprintf(buf, "(SP)");
+               else if (REGNO(x) == zip_FP)
+               else if (REGNO(x) == zip_FP)
+                       zip_debug_print(pfx, lvl, "(REG FP)");
+                       sprintf(buf, "(REG FP)");
+               else if (REGNO(x) == zip_GOT)
+               else if (REGNO(x) == zip_GOT)
+                       zip_debug_print(pfx, lvl, "(REG GBL)");
+                       sprintf(buf, "(REG GBL)");
+               else if (FUNCTION_VALUE_REGNO_P(REGNO(x)))
+               else if (FUNCTION_VALUE_REGNO_P(REGNO(x)))
+                       zip_debug_print(pfx, lvl, "(REG RTN-VL)");
+                       sprintf(buf, "(REG RTN-VL)");
+               else if (REGNO(x) == RETURN_ADDRESS_REGNUM)
+               else if (REGNO(x) == RETURN_ADDRESS_REGNUM)
+                       zip_debug_print(pfx, lvl, "(REG RTN-AD)");
+                       sprintf(buf, "(REG RTN-AD)");
+               else { char buf[25];
+               else
+               sprintf(buf, "(REG %d)", REGNO(x));
+               sprintf(buf, "(REG %d)", REGNO(x));
+               zip_debug_print_m(pfx, lvl, buf, GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, buf, GET_MODE(x));
+               } break;
+               } break;
+       case IF_THEN_ELSE: // 51
+       case IF_THEN_ELSE: // 51
+               zip_debug_print(pfx, lvl, "(IF-THEN-ELSE");
+               zip_debug_print(pfx, lvl, "(IF-THEN-ELSE");
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,2),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,2),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case PC:
+       case PC:
+               zip_debug_print(pfx, lvl, "(PC)");
+               zip_debug_print(pfx, lvl, "(PC)");
+               break;
+               break;
+       case CC0:
+       case CC0:
+               zip_debug_print(pfx, lvl, "(CC0)");
+               zip_debug_print(pfx, lvl, "(CC0)");
+               break;
+               break;
+       case COMPARE:
+       case COMPARE:
+               zip_debug_print(pfx, lvl, "(COMPARE");
+               zip_debug_print(pfx, lvl, "(COMPARE");
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case CONST:
+       case CONST:
+               zip_debug_print_m(pfx, lvl, "(CONST", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(CONST", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case CONST_INT:
+       case CONST_INT:
+               { char buf[25];
+               { char buf[25];
+               if (GET_MODE(x)==SImode)
+               if (GET_MODE(x)==SImode)
+                       sprintf(buf, "(CONST_INT:SI %ld)", INTVAL(x));
+                       sprintf(buf, "(CONST_INT:SI %ld)", INTVAL(x));
+               else if (GET_MODE(x)==VOIDmode)
+               else if (GET_MODE(x)==VOIDmode)
+                       sprintf(buf, "(CONST_INT:V %ld)", INTVAL(x));
+                       sprintf(buf, "(CONST_INT:V %ld)", INTVAL(x));
+               else
+               else
+                       sprintf(buf, "(CONST_INT:? %ld)", INTVAL(x));
+                       sprintf(buf, "(CONST_INT:? %ld)", INTVAL(x));
+               zip_debug_print(pfx, lvl, buf);
+               zip_debug_print(pfx, lvl, buf);
+               } break;
+               } break;
+       case LABEL_REF:
+       case LABEL_REF:
+               { char buf[256], *bp;
+               { char buf[256];
+               sprintf(buf, "(LABEL *.L%d)", CODE_LABEL_NUMBER(LABEL_REF_LABEL(x)));
+               sprintf(buf, "(LABEL *.L%d)", CODE_LABEL_NUMBER(LABEL_REF_LABEL(x)));
+               zip_debug_print(pfx, lvl, buf);
+               zip_debug_print(pfx, lvl, buf);
+               }
+               }
+               break;
+               break;
+       case SYMBOL_REF:
+       case SYMBOL_REF:
+               {
+               {
+                       char buf[64];
+                       char buf[64];
+                       sprintf(buf, "(SYMBOL: %s)", XSTR(x,0));
+                       sprintf(buf, "(SYMBOL: %s)", XSTR(x,0));
+                       // fprintf(file, "%s", XSTR(x,0));
+                       // fprintf(file, "%s", XSTR(x,0));
+                       zip_debug_print(pfx, lvl, buf);
+                       zip_debug_print(pfx, lvl, buf);
+               }
+               }
+               break;
+               break;
+       case MEM:
+       case MEM:
+               zip_debug_print_m(pfx, lvl, "(MEM", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(MEM", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       /*
+       /*
+       case VALUE:
+       case VALUE:
+               {
+               {
+                       char buf[64];
+                       char buf[64];
+                       sprintf(buf, "(VALUE: %d)", INTVAL(XEXP,0));
+                       sprintf(buf, "(VALUE: %d)", INTVAL(XEXP,0));
+                       zip_debug_print_m(pfx, lvl, "buf", GET_MODE(x));
+                       zip_debug_print_m(pfx, lvl, "buf", GET_MODE(x));
+               }
+               }
+               break;
+               break;
+       */
+       */
+       case PLUS:
+       case PLUS:
+               zip_debug_print_m(pfx, lvl, "(PLUS", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(PLUS", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case MINUS:
+       case MINUS:
+               zip_debug_print_m(pfx, lvl, "(MINUS", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(MINUS", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case AND:
+       case AND:
+               zip_debug_print_m(pfx, lvl, "(AND", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(AND", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case IOR:
+       case IOR:
+               zip_debug_print_m(pfx, lvl, "(OR", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(OR", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case XOR:
+       case XOR:
+               zip_debug_print_m(pfx, lvl, "(XOR", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(XOR", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case MULT:
+       case MULT:
+               zip_debug_print_m(pfx, lvl, "(MULT", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(MULT", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case EQ:        //
+       case EQ:        //
+               zip_debug_print_m(pfx, lvl, "(EQ", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(EQ", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case NE:        //
+       case NE:        //
+               zip_debug_print_m(pfx, lvl, "(NE", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(NE", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case GE:        //
+       case GE:        //
+               zip_debug_print_m(pfx, lvl, "(GE", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(GE", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case GT:        //
+       case GT:        //
+               zip_debug_print_m(pfx, lvl, "(GT", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(GT", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case LE:        //
+       case LE:        //
+               zip_debug_print_m(pfx, lvl, "(LE", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(LE", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case LT:        //
+       case LT:        //
+               zip_debug_print_m(pfx, lvl, "(LT", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(LT", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case GEU:       //
+       case GEU:       //
+               zip_debug_print_m(pfx, lvl, "(GEU", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(GEU", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case GTU:       //
+       case GTU:       //
+               zip_debug_print_m(pfx, lvl, "(GTU", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(GTU", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case LEU:       //
+       case LEU:       //
+               zip_debug_print_m(pfx, lvl, "(LEU", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(LEU", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case LTU:       //
+       case LTU:       //
+               zip_debug_print_m(pfx, lvl, "(LTU", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(LTU", GET_MODE(x));
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_rtx_1(pfx, XEXP(x,1),lvl+1);
+               zip_debug_print(pfx, lvl, ")");
+               zip_debug_print(pfx, lvl, ")");
+               break;
+               break;
+       case SCRATCH:   //
+       case SCRATCH:   //
+               zip_debug_print_m(pfx, lvl, "(SCRATCH)", GET_MODE(x));
+               zip_debug_print_m(pfx, lvl, "(SCRATCH)", GET_MODE(x));
+               break;
+               break;
+       case SUBREG:
+       case SUBREG:
+               { char buf[25];
+               { char buf[25];
+               if (REG_P(XEXP(x,0))) {
+               if (REG_P(XEXP(x,0))) {
+                       sprintf(buf, "(SUBREG %d/%d)", REGNO(XEXP(x,0)),
+                       sprintf(buf, "(SUBREG %d/%d)", REGNO(XEXP(x,0)),
+                               SUBREG_BYTE(x));
+                               SUBREG_BYTE(x));
+                       zip_debug_print(pfx, lvl, buf);
+                       zip_debug_print(pfx, lvl, buf);
+               } else if (MEM_P(XEXP(x,0))) {
+               } else if (MEM_P(XEXP(x,0))) {
+                       sprintf(buf, "(SUBREG /%d", SUBREG_BYTE(x));
+                       sprintf(buf, "(SUBREG /%d", SUBREG_BYTE(x));
+                       zip_debug_print(pfx, lvl, buf);
+                       zip_debug_print(pfx, lvl, buf);
+                       zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+                       zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+                       zip_debug_print(pfx, lvl, ")");
+                       zip_debug_print(pfx, lvl, ")");
+               } else {
+               } else {
+                       sprintf(buf, "(SUBREG UNK /%d", SUBREG_BYTE(x));
+                       sprintf(buf, "(SUBREG UNK /%d", SUBREG_BYTE(x));
+                       zip_debug_print(pfx, lvl, buf);
+                       zip_debug_print(pfx, lvl, buf);
+                       zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+                       zip_debug_rtx_1(pfx, XEXP(x,0),lvl+1);
+                       zip_debug_print(pfx, lvl, ")");
+                       zip_debug_print(pfx, lvl, ")");
+               }}
+               }}
+               break;
+               break;
+       default:
+       default:
+               { char buf[128];
+               { char buf[128];
+               sprintf(buf, "(? = %d) -- calling DEBUG-RTX", GET_CODE(x));
+               sprintf(buf, "(? = %d) -- calling DEBUG-RTX", GET_CODE(x));
+               zip_debug_print(pfx, lvl, buf);
+               zip_debug_print(pfx, lvl, buf);
+               debug_rtx(x);
+               debug_rtx(x);
+               } break;
+               } break;
+       }
+       }
+}
+}
+
+
+void
+void
+zip_debug_rtx_pfx(const char *pfx, const_rtx x) {
+zip_debug_rtx_pfx(const char *pfx, const_rtx x) {
+       zip_debug_rtx_1(pfx, x, 0);
+       zip_debug_rtx_1(pfx, x, 0);
+}
+}
+
+
+void
+void
+zip_debug_rtx(const_rtx x) {
+zip_debug_rtx(const_rtx x) {
+       zip_debug_rtx_pfx("", x);
+       zip_debug_rtx_pfx("", x);
+}
+}
+
+
+void
+void
+zip_debug_insn(rtx_insn *insn ATTRIBUTE_UNUSED) {
+zip_debug_insn(rtx_insn *insn ATTRIBUTE_UNUSED) {
+}
+}
+
+
+void
+void
+zip_debug_bb(basic_block bb) {
+zip_debug_bb(basic_block bb) {
+       rtx_insn        *insn;
+       rtx_insn        *insn;
+
+
+       fprintf(stderr, "************ BASIC-BLOCK ***************\n");
+       fprintf(stderr, "************ BASIC-BLOCK ***************\n");
+       FOR_BB_INSNS(bb, insn)
+       FOR_BB_INSNS(bb, insn)
+       {
+       {
+               zip_debug_rtx(insn);
+               zip_debug_rtx(insn);
+       }
+       }
+}
+}
+
+
+
+
+static bool
+static bool
+zip_legitimate_opb(const_rtx x, bool strict)
+zip_legitimate_opb(rtx x, bool strict)
+{
+{
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB\n");
+       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB\n");
+       if (dbg) zip_debug_rtx_pfx("Test: ", x);
+       if (dbg) zip_debug_rtx_pfx("Test: ", x);
+
+
+       if (NULL_RTX == x)
+       if (NULL_RTX == x)
+               return false;
+               return false;
+       else if ((GET_MODE(x) != SImode)&&(GET_MODE(x) != VOIDmode))
+       else if ((GET_MODE(x) != SImode)&&(GET_MODE(x) != VOIDmode)) {
 
+               if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> Mode failure\n");
+               return false;
+               return false;
+       else if (REG_P(x)) {
+       } else if ((strict)&&(REG_P(x))) {
+               bool    res;
+               if (REGNO(x)<zip_CC) {
+               // Only insist the register b a valid register if strict is true
+                       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> (Reg)\n");
+               res = (!strict)||((is_ZIP_REG(REGNO(x)))&&(REGNO(x) != zip_CC));
+                       return true;
+               if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> %s (Reg)\n",
+               } else return false;
+                       (res)?"YES!":"No");
+       } else if (register_operand(x, GET_MODE(x))) {
+               return res;
+               // This also handles subregs
+       } else if ((!strict)&&(SUBREG_P(x))) {
+               if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> (Reg)\n");
+               // Only insist the register b a valid register if strict is true
+               return true;
+               if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> (Subreg(Reg),recurse)\n");
 
+               return zip_legitimate_opb(XEXP(x,0), strict);
 
+       } else if ((CONST_INT_P(x))
+       } else if ((CONST_INT_P(x))
+               &&(INTVAL(x) >= zip_min_opb_imm)
+               &&(INTVAL(x) >= zip_min_opb_imm)
+               &&(INTVAL(x) <= zip_max_opb_imm)) {
+               &&(INTVAL(x) <= zip_max_opb_imm)) {
+               if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> YES! (Const)\n");
+               if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> YES! (Const) %ld <= %ld <= %ld\n", zip_min_opb_imm, INTVAL(x), zip_max_opb_imm);
+               return true;
+               return true;
 
+       // } else if ((GET_CODE(x) == LABEL_REF)||(GET_CODE(x)==CODE_LABEL)) {
 
+               // return true;
+       } else if (GET_CODE(x) == PLUS) {
+       } else if (GET_CODE(x) == PLUS) {
+               // Is it a valid register?
+               // Is it a valid register?
+               if(!REG_P(XEXP(x,0))) {
+               if ((!strict)&&(!register_operand((rtx)XEXP((rtx)x,0), GET_MODE(x)))) {
+                       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> No (No reg in +%s)\n",
+                       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> No (No reg in +%s)\n",
+                       (GET_CODE(XEXP(x,1))==REG)?", reg in op[1]":"");
+                       (GET_CODE(XEXP(x,1))==REG)?", reg in op[1]":"");
+                       return false;
+                       return false;
+               } if ((strict)&&((!is_ZIP_REG(REGNO(XEXP(x,0))))||(REGNO(XEXP(x,0)) == zip_CC))) {
+               } else if ((strict)&&((!REG_P(XEXP(x,0)))||(REGNO(XEXP(x,0))>=zip_CC))) {
+                       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> No (Wrong reg in +, %d)\n", REGNO(XEXP(x,0)));
 
+                       return false;
+                       return false;
+               } if ((GET_CODE(XEXP(x, 1)) == CONST_INT)
+               } if ((GET_CODE(XEXP(x, 1)) == CONST_INT)
+                       &&(INTVAL(XEXP(x, 1)) <= zip_max_anchor_offset)
+                       &&(INTVAL(XEXP(x, 1)) <= zip_max_anchor_offset)
+                       &&(INTVAL(XEXP(x, 1)) >= zip_min_anchor_offset)) {
+                       &&(INTVAL(XEXP(x, 1)) >= zip_min_anchor_offset)) {
+                       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> YES! (reg+int)\n");
+                       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> YES! (reg+int)\n");
+                       // if((INTVAL(XEXP(x,1))<0)&&(REGNO(XEXP(x,0))==zip_SP))
+                       // if((INTVAL(XEXP(x,1))<0)&&(REGNO(XEXP(x,0))==zip_SP))
+                               // gcc_unreachable();
+                               // gcc_unreachable();
+                       return true;
+                       return true;
+               } if ((GET_CODE(XEXP(x, 1)) == LABEL_REF)
+               } if ((GET_CODE(XEXP(x, 1)) == LABEL_REF)
 
+                       ||(GET_CODE(XEXP(x, 1)) == CODE_LABEL)
+                       ||(GET_CODE(XEXP(x, 1)) == SYMBOL_REF)) {
+                       ||(GET_CODE(XEXP(x, 1)) == SYMBOL_REF)) {
+                       // While we can technically support this, the problem
+                       // While we can technically support this, the problem
+                       // is that the symbol address could be anywhere, and we
+                       // is that the symbol address could be anywhere, and we
+                       // have no way of recovering if it's outside of our
+                       // have no way of recovering if it's outside of our
+                       // 14 allowable bits.
+                       // 14 allowable bits.
+                       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> No. (reg+lbl)\n");
+                       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> No. (reg+lbl)\n");
+                       return false;
+                       return false;
+               }
+               }
+               // if ((GET_CODE(XEXP(x, 1)) == MINUS)
 
+               //      &&((GET_CODE(XEXP(XEXP(x,1),0)) == LABEL_REF)
 
+               //              ||(GET_CODE(XEXP(XEXP(x,1),0)) == CONST_INT)
 
+               //              ||(GET_CODE(XEXP(XEXP(x,1),0)) == SYMBOL_REF))
 
+               //      &&((GET_CODE(XEXP(XEXP(x,1),1)) == LABEL_REF)
 
+               //              ||(GET_CODE(XEXP(XEXP(x,1),0)) == CONST_INT)
 
+               //              ||(GET_CODE(XEXP(XEXP(x,1),1)) == SYMBOL_REF))
 
+               //      &&((GET_CODE(XEXP(XEXP(x,1),0)))
 
+               //              == (GET_CODE(XEXP(XEXP(x,1),1))))) {
 
+               //      if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPERAND-ADDRESS -> YES! (lbl-lbl+reg)\n");
 
+               //      return true;
 
+               //}
 
+       }
+       }
+
+
+       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> No\n");
+       if (dbg) fprintf(stderr, "ZIP-LEGITIMATE-OPB -> No\n");
+       if (dbg) zip_debug_rtx(x);
+       if (dbg) zip_debug_rtx(x);
+       return false;
+       return false;
+}
+}
+
+
+static bool
+static bool
+zip_legitimate_move_operand_p(machine_mode mode ATTRIBUTE_UNUSED, rtx x, bool strict) {
+zip_legitimate_move_operand_p(machine_mode mode ATTRIBUTE_UNUSED, rtx x, bool strict) {
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND\n");
+       if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND\n");
+       if (dbg) zip_debug_rtx_pfx("VMov?: ", x);
+       if (dbg) zip_debug_rtx_pfx("VMov?: ", x);
+
+
+       if (NULL_RTX == x)
+       if (!zip_legitimate_opb(x, strict))
+               return false;
 
+       else if (REG_P(x)) {
 
+               // Only insist the register b a valid register if strict is true
 
+               if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND -> YES! (Reg)\n");
 
+               return (!strict)||((is_ZIP_REG(REGNO(x)))&&(REGNO(x) !=zip_CC));
 
+       } else if (GET_CODE(x) == PLUS) {
 
+               // if (GET_CODE(XEXP(x,0))==PLUS) {
 
+               // return (zip_legitimate_opb(XEXP(x,0), strict))
 
+               // &&(zip_const_address_operand(XEXP(x,0)));
 
+               // }
 
+               // Is it a valid register?
 
+               if(GET_CODE(XEXP(x,0)) != REG) {
 
+                       if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND -> No (No reg in +%s)\n",
 
+                       (GET_CODE(XEXP(x,1))==REG)?", reg in op[1]":"");
 
+                       return false;
+                       return false;
+               } if ((strict)&&
+       else if ((GET_CODE(x)==PLUS)&&(CONST_INT_P(XEXP(x,1)))) {
+                       ((!is_ZIP_REG(REGNO(XEXP(x,0))))
+               if ((INTVAL(XEXP(x, 1)) > zip_max_mov_offset)
+                       ||(REGNO(XEXP(x,0)) == zip_CC))) {
+                       ||(INTVAL(XEXP(x, 1)) < zip_min_mov_offset)) {
+                       if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND -> No (Wrong reg in +, %d)\n", REGNO(XEXP(x,0)));
+                       if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND -> NO! (reg+int), int out of bounds: %d\n", INTVAL(XEXP(x,1)));
+                       return false;
+                       return false;
+               } if ((GET_CODE(XEXP(x, 1)) == CONST_INT)
 
+                       &&(INTVAL(XEXP(x, 1)) <= zip_max_mov_offset)
 
+                       &&(INTVAL(XEXP(x, 1)) >= zip_min_mov_offset)) {
 
+                       if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND -> YES! (reg+int)\n");
 
+                       return true;
 
+               }
+               }
+       }
+       }
+
+
+       if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND -> No\n");
+       if (dbg) fprintf(stderr, "ZIP-VALID-MOVE-OPERAND -> Yes\n");
+       if (dbg) zip_debug_rtx(x);
+       if (dbg) zip_debug_rtx(x);
+       return false;
+       return true;
+}
+}
+
+
+int
+int
+zip_pd_mov_operand(rtx op)
+zip_pd_mov_operand(rtx op)
+{
+{
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-VALID-MOV(predicate) for OPERAND\n");
+       if (dbg) fprintf(stderr, "ZIP-VALID-MOV(predicate) for OPERAND\n");
+       return zip_legitimate_move_operand_p(VOIDmode, op, !can_create_pseudo_p());
+       return zip_legitimate_move_operand_p(VOIDmode, op, !can_create_pseudo_p());
+}
+}
+
+
+int
+int
+zip_pd_mvimm_operand(rtx op)
+zip_pd_mvimm_operand(rtx op)
+{
+{
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-VALID-MVIMM(predicate) for OPERAND\n");
+       if (dbg) fprintf(stderr, "ZIP-VALID-MVIMM(predicate) for OPERAND\n");
+       if (!CONST_INT_P(op))
+       if (!CONST_INT_P(op))
+               return false;
+               return false;
+       if (INTVAL(op) > zip_max_mov_offset)
+       if (INTVAL(op) > zip_max_mov_offset)
+               return false;
+               return false;
+       if (INTVAL(op) < zip_min_mov_offset)
+       if (INTVAL(op) < zip_min_mov_offset)
+               return false;
+               return false;
+       return true;
+       return true;
+}
+}
+
+
+int
+int
+zip_pd_imm_operand(rtx op)
+zip_pd_imm_operand(rtx op)
+{
+{
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-VALID-IMM(predicate) for OPERAND\n");
+       if (dbg) fprintf(stderr, "ZIP-VALID-IMM(predicate) for OPERAND\n");
+       if (!CONST_INT_P(op))
+       if (!CONST_INT_P(op))
+               return false;
+               return false;
+       if (INTVAL(op) > zip_max_anchor_offset)
+       if (INTVAL(op) > zip_max_anchor_offset)
+               return false;
+               return false;
+       if (INTVAL(op) < zip_min_anchor_offset)
+       if (INTVAL(op) < zip_min_anchor_offset)
+               return false;
+               return false;
+       return true;
+       return true;
+}
+}
+
+
+int
+int
+zip_address_operand(rtx op)
+zip_address_operand(rtx op)
+{
+{
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-ADDRESS for OPERAND\n");
+       if (dbg) fprintf(stderr, "ZIP-ADDRESS for OPERAND\n");
+       if ((REG_P(op))&&(REGNO(op)==zip_CC))
+       if ((REG_P(op))&&(REGNO(op)==zip_CC))
+               return false;
+               return false;
+       else if ((GET_CODE(op) == PLUS)&&(REG_P(XEXP(op,0)))
+       else if ((GET_CODE(op) == PLUS)&&(REG_P(XEXP(op,0)))
+                       &&(REGNO(XEXP(op,0))==zip_CC))
+                       &&(REGNO(XEXP(op,0))==zip_CC))
+               return false;
+               return false;
+       else
+       else
+               return zip_legitimate_opb(op, !can_create_pseudo_p());
+               return zip_legitimate_opb(op, !can_create_pseudo_p());
+}
+}
+
+
+int
+int
+zip_pd_opb_operand(rtx op)
+zip_pd_opb_operand(rtx op)
+{
+{
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-OPB(predicate) for OPERAND\n");
+       if (dbg) fprintf(stderr, "ZIP-OPB(predicate) for OPERAND\n");
+       return zip_legitimate_opb(op, !can_create_pseudo_p());
+       return zip_legitimate_opb(op, false); //, !can_create_pseudo_p());
+}
+}
+
+
+int
+int
+zip_ct_address_operand(rtx op)
+zip_ct_address_operand(rtx op)
+{
+{
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-ADDRESS(constraint) for OPERAND\n");
+       if (dbg) fprintf(stderr, "ZIP-ADDRESS(constraint) for OPERAND\n");
+       return zip_legitimate_opb(op, !can_create_pseudo_p());
+       return zip_legitimate_opb(op, !can_create_pseudo_p());
+}
+}
+
+
+int
+int
+zip_const_address_operand(rtx x) {
+zip_const_address_operand(rtx x) {
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS?\n");
+       if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS?\n");
+       if (dbg) zip_debug_rtx(x);
+       if (dbg) zip_debug_rtx(x);
+       if ((GET_MODE(x) != SImode)&&(GET_MODE(x) != VOIDmode))
+       if ((GET_MODE(x) != SImode)&&(GET_MODE(x) != VOIDmode))
+               return false;
+               return false;
+       if ((GET_CODE(x) == LABEL_REF)
+       if ((GET_CODE(x) == LABEL_REF)
+                       ||(GET_CODE(x) == CODE_LABEL)
+                       ||(GET_CODE(x) == CODE_LABEL)
+                       ||(GET_CODE(x) == SYMBOL_REF)) {
+                       ||(GET_CODE(x) == SYMBOL_REF)) {
+               if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS? -> YES!\n");
+               if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS? -> YES!\n");
+               return true;
+               return true;
+       } else if (CONST_INT_P(x)) {
+       } else if (CONST_INT_P(x)) {
+               if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS? -> YES!\n");
+               if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS? -> YES!\n");
+               return true;
+               return true;
+       } else if (GET_CODE(x) == PLUS) {
+       } else if (GET_CODE(x) == PLUS) {
+               if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS(PLUS)\n");
+               if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS(PLUS)\n");
+               return ((zip_const_address_operand(XEXP(x,0)))
+               return ((zip_const_address_operand(XEXP(x,0)))
+                       &&(CONST_INT_P(XEXP(x,1))));
+                       &&(CONST_INT_P(XEXP(x,1))));
+       } else if (GET_CODE(x) == MINUS) {
+       } else if (GET_CODE(x) == MINUS) {
+               if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS(MINUS)\n");
+               if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS(MINUS)\n");
+               return ((zip_const_address_operand(XEXP(x,0)))
+               return ((zip_const_address_operand(XEXP(x,0)))
+                       &&(zip_const_address_operand(XEXP(x,1))));
+                       &&(zip_const_address_operand(XEXP(x,1))));
+       }
+       }
+
+
+       if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS? -> No\n");
+       if (dbg) fprintf(stderr, "is ZIP-CONST-ADDRESS? -> No\n");
+       if (dbg) zip_debug_rtx(x);
+       if (dbg) zip_debug_rtx(x);
+       return false;
+       return false;
+}
+}
+
+
+int
+int
+zip_ct_const_address_operand(rtx x) {
+zip_ct_const_address_operand(rtx x) {
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-CONST-ADDRESS(constraint)\n");
+       if (dbg) fprintf(stderr, "ZIP-CONST-ADDRESS(constraint)\n");
+       return zip_const_address_operand(x);
+       return zip_const_address_operand(x);
+}
+}
+
+
+int
+int
+zip_pd_const_address_operand(rtx x) {
+zip_pd_const_address_operand(rtx x) {
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "ZIP-CONST-ADDRESS(predicate)\n");
+       if (dbg) fprintf(stderr, "ZIP-CONST-ADDRESS(predicate)\n");
+       return zip_const_address_operand(x);
+       return zip_const_address_operand(x);
+}
+}
+
+
+
+
+static bool
+static bool
+zip_legitimate_address_p(machine_mode mode ATTRIBUTE_UNUSED, rtx x, bool strict)
+zip_legitimate_address_p(machine_mode mode ATTRIBUTE_UNUSED, rtx x, bool strict)
+{
+{
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) fprintf(stderr, "Zip-LEGITIMATE-ADDRESS-P\n");
+       if (dbg) fprintf(stderr, "Zip-LEGITIMATE-ADDRESS-P\n");
+       if (dbg) zip_debug_rtx(x);
+       if (dbg) zip_debug_rtx(x);
+
+
+       // Only insist the register be a valid register if strict is true
+       // Only insist the register be a valid register if strict is true
+       if (zip_legitimate_opb(x, strict))
+       if (zip_legitimate_opb(x, strict))
+               return true;
+               return true;
+       // else if (zip_const_address_operand(x))
+       // else if (zip_const_address_operand(x))
+               // return true;
+               // return true;
+
+
+       return false;
+       return false;
+}
+}
+
+
+static rtx
+static rtx
+zip_legitimize_address(rtx x, rtx oldx ATTRIBUTE_UNUSED, machine_mode mode ATTRIBUTE_UNUSED) {
+zip_legitimize_address(rtx x, rtx oldx ATTRIBUTE_UNUSED, machine_mode mode ATTRIBUTE_UNUSED) {
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+
+
+       if (dbg) zip_debug_rtx_pfx("LEGITIMIZE: ", x);
+       if (dbg) zip_debug_rtx_pfx("LEGITIMIZE: ", x);
+       if (zip_legitimate_address_p(mode, x, !can_create_pseudo_p()))
+       if (zip_legitimate_address_p(mode, x, !can_create_pseudo_p()))
+               return x;
+               return x;
+
+
+       if (GET_CODE(x)==PLUS) {
+       if (GET_CODE(x)==PLUS) {
+               if (!REG_P(XEXP(x,0)))
+               if (!REG_P(XEXP(x,0)))
+                       XEXP(x,0) = force_reg(GET_MODE(x),XEXP(x,0));
+                       XEXP(x,0) = force_reg(GET_MODE(x),XEXP(x,0));
+               if ((!zip_legitimate_address_p(mode, x, !can_create_pseudo_p()))
+               if ((!zip_legitimate_address_p(mode, x, !can_create_pseudo_p()))
+                       &&(!CONST_INT_P(XEXP(x,1))))
+                       &&(!CONST_INT_P(XEXP(x,1))))
+                       x = force_reg(GET_MODE(x),x);
+                       x = force_reg(GET_MODE(x),x);
+       } else if (MEM_P(x))
+       } else if (MEM_P(x))
+               x = force_reg(GET_MODE(x),x);
+               x = force_reg(GET_MODE(x),x);
+
+
+       if (dbg) zip_debug_rtx_pfx("LEGITIMATE: ", x);
+       if (dbg) zip_debug_rtx_pfx("LEGITIMATE: ", x);
+       return x;
+       return x;
+}
+}
+
+
+void
+void
+zip_asm_output_def(FILE *stream, const char *name, const char *value)
+zip_asm_output_def(FILE *stream, const char *name, const char *value)
+{
+{
+       assemble_name(stream, name);
+       assemble_name(stream, name);
+       fprintf(stream, "\t.equ ");
+       fprintf(stream, "\t.equ ");
+       assemble_name(stream, value);
+       assemble_name(stream, value);
+       fputc('\n', stream);
+       fputc('\n', stream);
+}
+}
+
+
+/*
 
+bool   zip_load_address_lod(rtx regrx, rtx memrx) {
 
+       fprintf(stderr, "ZIP-LOAD-ADDRESS-LOD\n");
 
+       if (!MEM_P(memrx))
 
+               return false;
 
+       if (GET_CODE(regrx) != REG)
 
+               return false;
 
+       enum    rtx_code ic = GET_CODE(memrx);
 
+       if ((ic == SYMBOL_REF)
 
+               ||(ic == CODE_LABEL)
 
+               ||(ic == LABEL_REF)) {
 
+               if (can_create_pseudo_p()) {
 
+                       rtx scratch_reg;
 
+                       scratch_reg = gen_rtx_SCRATCH(SImode);
 
+                       emit_insn(gen_movsi_ldi(scratch_reg, XEXP(memrx, 0)));
 
+                       emit_insn(gen_movsi_lod(regrx, scratch_reg));
 
+                       return true;
 
+               } else return false;
 
+       } else return false;
 
+}
 
+
 
+bool   zip_load_address_sto(rtx memrx, rtx regrx) {
 
+       fprintf(stderr,  "CHECKING-IN-W/ZIP_LOAD_ADDRESS_STORE\n");
 
+       if (!MEM_P(memrx))
 
+               return false;
 
+       if (GET_CODE(regrx) != REG)
 
+               return false;
 
+       enum    rtx_code ic = GET_CODE(memrx);
 
+       if ((ic == SYMBOL_REF)
 
+               ||(ic == CODE_LABEL)
 
+               ||(ic == LABEL_REF)) {
 
+               if (can_create_pseudo_p()) {
 
+                       rtx scratch_reg;
 
+                       scratch_reg = gen_rtx_SCRATCH(SImode);
 
+                       emit_insn(gen_movsi_ldi(scratch_reg, XEXP(memrx, 0)));
 
+                       emit_insn(gen_movsi_sto(scratch_reg, regrx));
 
+                       return true;
 
+               } else return false;
 
+       } return false;
 
+}
 
+*/
 
+
 
+#define        USE_SUBREG
+#define        USE_SUBREG
+#ifdef USE_SUBREG
+#ifdef USE_SUBREG
+#define        SREG_P(RTX) ((SUBREG_P(RTX))&&(REG_P(XEXP(RTX,0))))
+#define        SREG_P(RTX) ((SUBREG_P(RTX))&&(REG_P(XEXP(RTX,0))))
+#define        SMEM_P(RTX) ((SUBREG_P(RTX))&&(MEM_P(XEXP(RTX,0))))
+#define        SMEM_P(RTX) ((SUBREG_P(RTX))&&(MEM_P(XEXP(RTX,0))))
+#else
+#else
+#define        SREG_P(RTX)     false
+#define        SREG_P(RTX)     false
+#define        SMEM_P(RTX)     false
+#define        SMEM_P(RTX)     false
+#endif
+#endif
+
+
+bool   zip_gen_move_rtl(rtx dst, rtx src) {
 
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
 
+
 
+       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE\n");
 
+       if (dbg) zip_debug_rtx_pfx("FROM: ", src);
 
+       if (dbg) zip_debug_rtx_pfx("TO  : ", dst);
 
+       if (dbg) fprintf(stderr, "PSEUDOs: %s\n", can_create_pseudo_p()?"true":"false");
 
+       if (((REG_P(dst))||(SREG_P(dst)))
 
+                       &&((REG_P(src))||(SREG_P(src)))) {
 
+               // First type of move... register to register
 
+               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/REG -- EMIT\n");
 
+               // if (SREG_P(dst)) dst = gen_raw_REG(SImode,REGNO(XEXP(dst,0))+SUBREG_BYTE(dst));
 
+               // if (SREG_P(src)) src = gen_raw_REG(SImode,REGNO(XEXP(src,0))+SUBREG_BYTE(src));
 
+               emit_insn(gen_movsi_reg(dst, src));
 
+       } else if ((MEM_P(dst))&&(MEM_P(XEXP(dst,0)))) {
 
+               // An indirect store, (mem (mem (addr .))) = whatever ...
 
+               if (can_create_pseudo_p()) {
 
+                       rtx     tmp = gen_reg_rtx(Pmode);
 
+                       zip_gen_move_rtl(tmp, XEXP(dst,0));
 
+                       // mark_reg_pointer(tmp,0);
 
+                       zip_gen_move_rtl(gen_rtx_MEM(GET_MODE(src), tmp), src);
 
+               } else {
 
+                       fprintf(stderr, "ZIP:Cannot move into mem w/o pseudo\n");
 
+                       return false;
 
+               }
 
+       } else if ((MEM_P(src))&&(MEM_P(XEXP(src,0)))) {
 
+               // If this is an indirect load, Rx = (mem (mem (addr)))
 
+               if (can_create_pseudo_p()) {
 
+                       rtx     tmp = gen_reg_rtx(Pmode);
 
+                       zip_gen_move_rtl(tmp, XEXP(src,0));
 
+                       // mark_reg_pointer(tmp,0);
 
+                       zip_gen_move_rtl(dst, gen_rtx_MEM(GET_MODE(src), tmp));
 
+               } else {
 
+                       fprintf(stderr, "ZIP: Cannot move from mem(mem(ptr)) w/o pseudo\n");
 
+                       return false;
 
+               }
 
+       } else if (((REG_P(dst))||(SREG_P(dst)))&&(GET_CODE(src)==PLUS)
 
+                       &&(REG_P(XEXP(src,0)))
 
+                       &&(CONST_INT_P(XEXP(src,1)))) {
 
+               // if (SREG_P(dst)) dst = gen_raw_REG(SImode,REGNO(XEXP(dst,0))+SUBREG_BYTE(dst));
 
+               // Second type of move... register plus offset to register
 
+               if ((INTVAL(XEXP(src, 1)) <= zip_max_mov_offset)
 
+                       &&(INTVAL(XEXP(src, 1)) >= zip_min_mov_offset)) {
 
+                       // The offset is within bounds
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/REG+OFF -- EMIT\n");
 
+                       emit_insn(gen_movsi_reg_off(dst, XEXP(src,0),XEXP(src,1)));
 
+               } else if (can_create_pseudo_p()) {
 
+                       // The offset is out of bounds, get a new register and
 
+                       // generate an add instruction to split this up.
 
+                       rtx     tmp = gen_reg_rtx(GET_MODE(XEXP(src,0)));
 
+
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/LDI\n");
 
+                       emit_insn(gen_movsi_ldi(tmp, XEXP(src,1)));
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/ADD\n");
 
+                       emit_insn(gen_addsi3(tmp, tmp, XEXP(src,0)));
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/DST\n");
 
+                       emit_insn(gen_movsi_reg(dst, tmp));
 
+               } else {
 
+                       fprintf(stderr, "ZIP: Cannot move a(r),b w/o pseudo for out of bounds a\n");
 
+                       return false;
 
+               }
 
+       } else if ((MEM_P(dst))&&(MEM_P(src))) {
 
+               rtx     tmp;
 
+               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/MEM/MEM\n");
 
+               if (can_create_pseudo_p()) {
 
+                       tmp = gen_reg_rtx(GET_MODE(src));
 
+                       emit_insn(gen_movsi(tmp, src));
 
+                       emit_insn(gen_movsi(dst, tmp));
 
+               } else {
 
+                       fprintf(stderr, "ZIP: Cannot move mem(A) to mem(B) w/o pseudo\n");
 
+                       return false;
 
+               }
 
+       } else if (((REG_P(dst))||(SREG_P(dst)))&&(MEM_P(src))) {
 
+               // Memory load
 
+               // if (SREG_P(dst)) dst = gen_raw_REG(SImode,REGNO(XEXP(dst,0))+SUBREG_BYTE(dst));
 
+               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/LOD\n");
 
+               if (zip_legitimate_opb(XEXP(src, 0), false)) {
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/SIMPLE-LOD(ADDR)\n");
 
+                       if (dbg) zip_debug_rtx_pfx("Smple-Addr: ", src);
 
+                       emit_insn(gen_movsi_lod(dst, src));
 
+               } else if (zip_const_address_operand(XEXP(src,0))) {
 
+                       if (can_create_pseudo_p()) {
 
+                               rtx     tmp;
 
+                               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/LOD(CONST-ADDR)\n");
 
+                               tmp = gen_reg_rtx(Pmode);
 
+                               emit_insn(gen_movsi_ldi(tmp, XEXP(src,0)));
 
+                               emit_insn(gen_movsi_lod(dst, gen_rtx_MEM(GET_MODE(src),tmp)));
 
+                       } else {
 
+                               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/LOD(CONST-ADDR,SELF)\n");
 
+                               emit_insn(gen_movsi_ldi(dst, XEXP(src,0)));
 
+                               emit_insn(gen_movsi_lod(dst, gen_rtx_MEM(GET_MODE(src),dst)));
 
+                       }
 
+               } else {
 
+                       internal_error("%s", "ZIP/No usable load\n");
 
+               }
 
+       } else if ((MEM_P(dst))&&((REG_P(src))||(SREG_P(src)))) {
 
+               // Memory store
 
+               // if (SREG_P(src)) src = gen_raw_REG(SImode,REGNO(XEXP(src,0))+SUBREG_BYTE(src));
 
+               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/STO\n");
 
+               if (zip_legitimate_opb(XEXP(dst, 0), false)) {
 
+                       // If it's a legitimate address already, do nothing mor
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/STO(Legit Addr)--EMIT\n");
 
+                       // if (REG_P(XEXP(dst,0)))
 
+                               // mark_reg_pointer(XEXP(dst,0),0);
 
+                       // else if ((GET_CODE(XEXP(dst,0))==PLUS)
 
+                                       // &&(REG_P(XEXP(XEXP(dst,0),0))))
 
+                               // mark_reg_pointer(XEXP(XEXP(dst,0),0),0);
 
+                       emit_insn(gen_movsi_sto(dst, src));
 
+               } else if (zip_const_address_operand(XEXP(dst,0))) {
 
+                       rtx     tmp;
 
+
 
+                       if (can_create_pseudo_p()) {
 
+                               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/STO(Const Addr,Reg) -- EMIT\n");
 
+                               // Otherwise we need to load the memory address
 
+                               // into a register
 
+                               tmp = gen_reg_rtx(Pmode);
 
+                               // mark_reg_pointer(tmp,0);
 
+                               emit_insn(gen_movsi_ldi(tmp, XEXP(dst,0)));
 
+                               //
 
+                               // Then we can do our load
 
+                               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/STO -- emit\n");
 
+                               emit_insn(gen_movsi_sto(gen_rtx_MEM(GET_MODE(src), tmp), src));
 
+                       } else {
 
+                               fprintf(stderr, "Cannot move src -> mem(dst) w/o pseudo\n");
 
+                               return false;
 
+                       }
 
+               } else if (can_create_pseudo_p())
 
+                       internal_error("%s", "ZIP/No usable store\n");
 
+               else {
 
+                       fprintf(stderr, "ZIP/Unanticipated store problem\n");
 
+                       return false;
 
+               }
 
+               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/STO -- DONE\n");
 
+       } else if ((MEM_P(dst))&&((CONST_INT_P(src))||(GET_CODE(src)==SYMBOL_REF))) {
 
+               // Store a constant into memory
 
+               rtx     tmp;
 
+
 
+               if (can_create_pseudo_p()) {
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/CONST->MEM\n");
 
+                       // Load the source constant into a register first
 
+                       tmp = gen_reg_rtx((GET_MODE(src)==VOIDmode)?GET_MODE(dst):GET_MODE(src));
 
+                       emit_insn(gen_movsi_ldi(tmp,src));
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/CONST->REG->MEM -- RECURSE\n");
 
+
 
+                       // Then do a normal move, recursing to handle memory
 
+                       // properly
 
+                       zip_gen_move_rtl(dst, tmp);
 
+                       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/CONST->MEM -- DONE\n");
 
+               } else {
 
+                       fprintf(stderr, "ZIP/Cannot store constant into mem w/o pseudo\n");
 
+                       return false;
 
+               }
 
+       } else if (((REG_P(dst))||(SREG_P(dst)))&&(CONST_INT_P(src))) {
 
+               // if (SREG_P(dst)) dst = gen_raw_REG(SImode,REGNO(XEXP(dst,0))+SUBREG_BYTE(dst));
 
+               // Load a constant into a register
 
+               // The assembler really takes care of all of this, since
 
+               // the assembler will split the constant if it doesn't fit
 
+               // into a single instruction.
 
+               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/CONST->REG\n");
 
+               // if ((GET_MODE(dst)==VOIDmode)&&(GET_MODE(src)==VOIDmode))
 
+                       // PUT_MODE(dst,SImode);
 
+               emit_insn(gen_movsi_ldi(dst, src));
 
+       } else if ((REG_P(dst))&&
 
+                       ((LABEL_P(src))
 
+                       ||(GET_CODE(src)==SYMBOL_REF)
 
+                       ||(GET_CODE(src)==LABEL_REF))) {
 
+               // Load a constant into a register
 
+               // The assembler really takes care of all of this, since
 
+               // the assembler will split the constant if it doesn't fit
 
+               // into a single instruction.
 
+               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/LABEL->REG\n");
 
+               emit_insn(gen_movsi_ldi(dst, src));
 
+       } else if ((REG_P(dst))&&
 
+                       ((GET_CODE(src)==PLUS)
 
+                       &&((GET_CODE(XEXP(src,0))==SYMBOL_REF)
 
+                               ||(GET_CODE(XEXP(src,0))==LABEL_REF))
 
+                       &&(CONST_INT_P(XEXP(src,1))))) {
 
+               if (dbg) fprintf(stderr, "ZIP-GEN-MOVE/LABEL+OFFSET->REG\n");
 
+               if ((INTVAL(XEXP(src,1))>=zip_min_mov_offset)
 
+                       &&(INTVAL(XEXP(src,1))<=zip_max_mov_offset)) {
 
+                       emit_insn(gen_movsi_ldi(dst, XEXP(src,1)));
 
+                       emit_insn(gen_movsi_reg_off(dst, dst, XEXP(src,1)));
 
+               } else if (can_create_pseudo_p()) {
 
+                       rtx tmp = gen_reg_rtx(Pmode);
 
+                       emit_insn(gen_movsi_ldi(tmp, XEXP(src,1)));
 
+                       emit_insn(gen_movsi_ldi(dst, src));
 
+                       emit_insn(gen_addsi3(dst,dst,tmp));
 
+                       return true;
 
+               } else {
 
+                       fprintf(stderr, "Cannot move LABEL+OFFSET -> dst w/o pseudo\n");
 
+                       return false;
 
+               }
 
+       } else if (((REG_P(dst))||(SREG_P(dst)))&&(GET_CODE(src) == CONST)) {
 
+               // if (SREG_P(dst)) dst = gen_raw_REG(SImode,REGNO(XEXP(dst,0))+SUBREG_BYTE(dst));
 
+               zip_gen_move_rtl(dst, XEXP(src,0));
 
+       } else if (SMEM_P(dst)) {
 
+               rtx     addr = XEXP(XEXP(dst,0),0);
 
+               if (REG_P(addr)) {
 
+                       zip_gen_move_rtl(
 
+                               gen_rtx_MEM(SImode, plus_constant(Pmode,addr,
 
+                                       SUBREG_BYTE(dst),false)),src);
 
+               } else if ((GET_CODE(addr)==PLUS)
 
+                               &&(REG_P(XEXP(addr,0)))
 
+                               &&(CONST_INT_P(XEXP(addr,1)))) {
 
+                       rtx addreg = XEXP(addr,0);
 
+                       zip_gen_move_rtl(
 
+                               gen_rtx_MEM(SImode, plus_constant(Pmode,addreg,
 
+                                       INTVAL(XEXP(addr,1))+SUBREG_BYTE(dst),
 
+                                       false)),src);
 
+               } else fprintf(stderr, "ZIP/Cannot understand SUBREG\n");
 
+       } else if (SMEM_P(src)) {
 
+               rtx     addr = XEXP(XEXP(src,0),0);
 
+               if (REG_P(addr)) {
 
+                       zip_gen_move_rtl(dst,
 
+                               gen_rtx_MEM(SImode, plus_constant(Pmode,addr,
 
+                                       SUBREG_BYTE(src),false)));
 
+               } else if ((GET_CODE(addr)==PLUS)
 
+                               &&(REG_P(XEXP(addr,0)))
 
+                               &&(CONST_INT_P(XEXP(addr,1)))) {
 
+                       rtx addreg = XEXP(addr,0);
 
+                       zip_gen_move_rtl(dst,
 
+                               gen_rtx_MEM(SImode, plus_constant(Pmode,addreg,
 
+                                       INTVAL(XEXP(addr,1))+SUBREG_BYTE(src),
 
+                                       false)));
 
+               } else fprintf(stderr, "ZIP/Cannot understand SUBREG\n");
 
+       } else {
 
+               fprintf(stderr, "ZIP/No usable move\n");
 
+               zip_debug_rtx_pfx("TO  : ", dst);
 
+               zip_debug_rtx_pfx("FROM: ", src);
 
+               debug_rtx(dst);
 
+               debug_rtx(src);
 
+               return false;
 
+       }
 
+       if (dbg) fprintf(stderr, "ZIP-GEN-MOVE -- DONE\n");
 
+       return true;
 
+}
 
+
 
+const char *zip_set_zero_or_one(rtx condition, rtx dst) {
+const char *zip_set_zero_or_one(rtx condition, rtx dst) {
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       if (dbg) fprintf(stderr, "ZIP::SET-ZERO-OR-ONE\n");
+       if (dbg) fprintf(stderr, "ZIP::SET-ZERO-OR-ONE\n");
+       if (dbg) zip_debug_rtx_pfx("CND", condition);
+       if (dbg) zip_debug_rtx_pfx("CND", condition);
+       if (dbg) zip_debug_rtx_pfx("REG", dst);
+       if (dbg) zip_debug_rtx_pfx("REG", dst);
+       switch(GET_CODE(condition)) {
+       switch(GET_CODE(condition)) {
+       case EQ:        return "LDI\t0,%0\n\tLDILO.Z\t1,%0";
+       case EQ:        return "LDI\t0,%0\n\tLDILO.Z\t1,%0";
+       case NE:        return "LDI\t0,%0\n\tLDILO.NZ\t1,%0";
+       case NE:        return "LDI\t0,%0\n\tLDILO.NZ\t1,%0";
+       case LT:        return "LDI\t0,%0\n\tLDILO.LT\t1,%0";
+       case LT:        return "LDI\t0,%0\n\tLDILO.LT\t1,%0";
+       case GT:        return "LDI\t0,%0\n\tLDILO.GT\t1,%0";
+       case GT:        return "LDI\t0,%0\n\tLDILO.GT\t1,%0";
+       case LE:        return "LDI\t1,%0\n\tLDILO.GT\t0,%0";
+       case LE:        return "LDI\t1,%0\n\tLDILO.GT\t0,%0";
+       case GE:        return "LDI\t0,%0\n\tLDILO.GE\t1,%0";
+       case GE:        return "LDI\t0,%0\n\tLDILO.GE\t1,%0";
+       case LTU:       return "LDI\t0,%0\n\tLDILO.C\t1,%0";
+       case LTU:       return "LDI\t0,%0\n\tLDILO.C\t1,%0";
+       case GTU:       return "LDI\t1,%0\n\tLDILO.C\t0,%0\n\tLDILO.Z\t0,%0";
+       case GTU:       return "LDI\t1,%0\n\tLDILO.C\t0,%0\n\tLDILO.Z\t0,%0";
+       case LEU:       return "LDI\t0,%0\n\tLDILO.C\t1,%0\n\tLDILO.Z\t1,%0";
+       case LEU:       return "LDI\t0,%0\n\tLDILO.C\t1,%0\n\tLDILO.Z\t1,%0";
+       case GEU:       return "LDI\t1,%0\n\tLDILO.C\t0,%0";
+       case GEU:       return "LDI\t1,%0\n\tLDILO.C\t0,%0";
+       default:
+       default:
+               zip_debug_rtx(condition);
+               zip_debug_rtx(condition);
+               internal_error("CSTORE Unsupported condition");
+               internal_error("CSTORE Unsupported condition");
+               return NULL;
+               return NULL;
+       }
+       }
+}
+}
+
+
+const char *zip_binary_movsicc(rtx_code condition, const char *op, const int opno) {
+const char *zip_binary_movsicc(rtx_code condition, const char *op, const int opno) {
+       static char     result[64] = "";
+       static char     result[64] = "";
+       switch(condition) {
+       switch(condition) {
+               //
+               //
+               // Result already exists in the iffalse register
+               // Result already exists in the iffalse register
+               // Can't change it.  Therefore, on the
+               // Can't change it.  Therefore, on the
+               // condition ... move true register to the
+               // condition ... move true register to the
+               // destination
+               // destination
+               //
+               //
+               case EQ:        sprintf(result, "%s.Z\t%%%d,%%0", op, opno); break;
+               case EQ:        sprintf(result, "%s.Z\t%%%d,%%0", op, opno); break;
+               case NE:        sprintf(result, "%s.NZ\t%%%d,%%0", op, opno); break;
+               case NE:        sprintf(result, "%s.NZ\t%%%d,%%0", op, opno); break;
+               case LT:        sprintf(result, "%s.LT\t%%%d,%%0", op, opno); break;
+               case LT:        sprintf(result, "%s.LT\t%%%d,%%0", op, opno); break;
+               case GT:        sprintf(result, "%s.GT\t%%%d,%%0", op, opno); break;
+               case GT:        sprintf(result, "%s.GT\t%%%d,%%0", op, opno); break;
+               // .LE doesn't exist on Zip CPU--turn this into two instructions
+               // .LE doesn't exist on Zip CPU--turn this into two instructions
+               case LE:        sprintf(result, "%s.LT\t%%%d,%%0\n\t%s.Z\t%%%d,%%0", op, opno, op, opno); break;
+               case LE:        sprintf(result, "%s.LT\t%%%d,%%0\n\t%s.Z\t%%%d,%%0", op, opno, op, opno); break;
+               case GE:        sprintf(result, "%s.GE\t%%%d,%%0", op, opno); break;
+               case GE:        sprintf(result, "%s.GE\t%%%d,%%0", op, opno); break;
+               case LTU:       sprintf(result, "%s.C\t%%%d,%%0", op, opno); break;
+               case LTU:       sprintf(result, "%s.C\t%%%d,%%0", op, opno); break;
+               //
+               //
+               // .GTU doesn't exist on the Zip CPU either. We also note that
+               // .GTU doesn't exist on the Zip CPU either. We also note that
+               // .C will never be set on an equal condition.  Therefore, we
+               // .C will never be set on an equal condition.  Therefore, we
+               // turn this into a XOR.NZ 2,CC, which will set the .C condition
+               // turn this into a XOR.NZ 2,CC, which will set the .C condition
+               // as long as .Z wasn't true.  We then undo this when we're
+               // as long as .Z wasn't true.  We then undo this when we're
+               // done.  This is possible since none of these instructions
+               // done.  This is possible since none of these instructions
+               // (LDI/MOV/Lod conditional, nor Xor conditional) will ever set
+               // (LDI/MOV/Lod conditional, nor Xor conditional) will ever set
+               // the condition codes.
+               // the condition codes.
+               //
+               //
+               // This is obviously not very optimal.  Avoid this by all means
+               // This is obviously not very optimal.  Avoid this by all means
+               // if you can
+               // if you can
+               case GTU:       sprintf(result, "XOR.NZ\t2,CC\n%s.C\t%%%d,%%0\n\tXOR.NZ\t2,CC", op, opno); break;
+               case GTU:       sprintf(result, "XOR.NZ\t2,CC\n%s.C\t%%%d,%%0\n\tXOR.NZ\t2,CC", op, opno); break;
+               // .LEU doesn't exist on Zip CPU either--turn this into another
+               // .LEU doesn't exist on Zip CPU either--turn this into another
+               // two instructions
+               // two instructions
+               case LEU:       sprintf(result, "%s.C\t%%%d,%%0\n\t%s.Z\t%%%d,%%0", op, opno, op, opno); break;
+               case LEU:       sprintf(result, "%s.C\t%%%d,%%0\n\t%s.Z\t%%%d,%%0", op, opno, op, opno); break;
+               //
+               //
+               // .GEU doesn't exist on Zip CPU.  Implementing it her is
+               // .GEU doesn't exist on Zip CPU.  Implementing it her is
+               // painful.  We can change the condition codes to make it so,
+               // painful.  We can change the condition codes to make it so,
+               // but the instruction requires the condition codes not be
+               // but the instruction requires the condition codes not be
+               // changed.  Hence, we must change them back if we do so.
+               // changed.  Hence, we must change them back if we do so.
+               //
+               //
+               // .C will be set on less than but not equal.  Hence !.C will
+               // .C will be set on less than but not equal.  Hence !.C will
+               // be true on greater than or equal.
+               // be true on greater than or equal.
+               case GEU:       sprintf(result, "XOR\t2,CC\n%s.C\t%%%d,%%0\n\tXOR\t2,CC", op, opno); break;
+               case GEU:       sprintf(result, "XOR\t2,CC\n%s.C\t%%%d,%%0\n\tXOR\t2,CC", op, opno); break;
+               default:
+               default:
+                       internal_error("MOVSICC(BINARY) Unsupported condition");
+                       internal_error("MOVSICC(BINARY) Unsupported condition");
+                       return NULL;
+                       return NULL;
+       } return result;
+       } return result;
+}
+}
+
+
+const char *zip_tertiary_movsicc(rtx condition, const char *optrue, const char *opfalse) {
+const char *zip_tertiary_movsicc(rtx condition, const char *optrue, const char *opfalse) {
+       static  char    result[64] = "";
+       static  char    result[64] = "";
+       switch(GET_CODE(condition)) {
+       switch(GET_CODE(condition)) {
+               case EQ:        sprintf(result,"%s\t%%3,%%0\n\t%s.Z\t%%2,%%0", opfalse, optrue); break;
+               case EQ:        sprintf(result,"%s\t%%3,%%0\n\t%s.Z\t%%2,%%0", opfalse, optrue); break;
+               case NE:        sprintf(result,"%s\t%%3,%%0\n\t%s.NZ\t%%2,%%0", opfalse, optrue); break;
+               case NE:        sprintf(result,"%s\t%%3,%%0\n\t%s.NZ\t%%2,%%0", opfalse, optrue); break;
+               case LT:        sprintf(result,"%s\t%%3,%%0\n\t%s.LT\t%%2,%%0", opfalse, optrue); break;
+               case LT:        sprintf(result,"%s\t%%3,%%0\n\t%s.LT\t%%2,%%0", opfalse, optrue); break;
+               case GT:        sprintf(result,"%s\t%%3,%%0\n\t%s.GT\t%%2,%%0", opfalse, optrue); break;
+               case GT:        sprintf(result,"%s\t%%3,%%0\n\t%s.GT\t%%2,%%0", opfalse, optrue); break;
+               // LE doesn't exist on a Zip CPU.  Accomplish this by
+               // LE doesn't exist on a Zip CPU.  Accomplish this by
+               // reversing the condition: i.e., load the false value into
+               // reversing the condition: i.e., load the false value into
+               // the register, and the on condition load the true value.
+               // the register, and the on condition load the true value.
+               case LE:        sprintf(result,"%s\t%%2,%%0\n\t%s.GT\t%%3,%%0", optrue, opfalse); break;
+               case LE:        sprintf(result,"%s\t%%2,%%0\n\t%s.GT\t%%3,%%0", optrue, opfalse); break;
+               case GE:        sprintf(result,"%s\t%%3,%%0\n\t%s.GE\t%%2,%%0", opfalse, optrue); break;
+               case GE:        sprintf(result,"%s\t%%3,%%0\n\t%s.GE\t%%2,%%0", opfalse, optrue); break;
+               case LTU:       sprintf(result,"%s\t%%3,%%0\n\t%s.C\t%%2,%%0", opfalse, optrue); break;
+               case LTU:       sprintf(result,"%s\t%%3,%%0\n\t%s.C\t%%2,%%0", opfalse, optrue); break;
+               //
+               //
+               case GTU:       sprintf(result,"%s\t%%2,%%0\n\t%s.C\t%%3,%%0\n\t%s.Z\t%%3,%%0", optrue, opfalse, opfalse); break;
+               case GTU:       sprintf(result,"%s\t%%2,%%0\n\t%s.C\t%%3,%%0\n\t%s.Z\t%%3,%%0", optrue, opfalse, opfalse); break;
+               case LEU:       sprintf(result,"%s\t%%3,%%0\n\t%s.C\t%%2,%%0\n\t%s.Z\t%%2,%%0", opfalse, optrue, optrue); break;
+               case LEU:       sprintf(result,"%s\t%%3,%%0\n\t%s.C\t%%2,%%0\n\t%s.Z\t%%2,%%0", opfalse, optrue, optrue); break;
+               case GEU:       sprintf(result,"%s\t%%2,%%0\n\t%s.C\t%%3,%%0\n", optrue, opfalse); break;
+               case GEU:       sprintf(result,"%s\t%%2,%%0\n\t%s.C\t%%3,%%0\n", optrue, opfalse); break;
+               default:
+               default:
+                       internal_error("MOVSICC Unsupported condition");
+                       internal_error("MOVSICC Unsupported condition");
+                       return NULL;
+                       return NULL;
+       } return result;
+       } return result;
+}
+}
+
+
+const char *zip_movsicc(rtx dst, rtx condition, rtx iftrue, rtx iffalse) {
+const char *zip_movsicc(rtx dst, rtx condition, rtx iftrue, rtx iffalse) {
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
+       if (dbg) fprintf(stderr, "ZIP::MOVSICC\n");
+       if (dbg) fprintf(stderr, "ZIP::MOVSICC\n");
+       if (dbg) zip_debug_rtx_pfx("DST", dst);
+       if (dbg) zip_debug_rtx_pfx("DST", dst);
+       if (dbg) zip_debug_rtx_pfx("CND", condition);
+       if (dbg) zip_debug_rtx_pfx("CND", condition);
+       if (dbg) zip_debug_rtx_pfx("TRU", iftrue);
+       if (dbg) zip_debug_rtx_pfx("TRU", iftrue);
+       if (dbg) zip_debug_rtx_pfx("FAL", iffalse);
+       if (dbg) zip_debug_rtx_pfx("FAL", iffalse);
+       if ((REG_P(iftrue))&&(REGNO(dst)==REGNO(iftrue))) {
+       if ((REG_P(iftrue))&&(REGNO(dst)==REGNO(iftrue))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- CASE if(X) -> R\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- CASE if(X) -> R\n");
+               if (zip_legitimate_move_operand_p(SImode, iffalse, true))
+               if (zip_legitimate_move_operand_p(SImode, iffalse, true))
+                       return zip_binary_movsicc(reverse_condition(GET_CODE(condition)), "MOV", 3);
+                       return zip_binary_movsicc(reverse_condition(GET_CODE(condition)), "MOV", 3);
+               else if (zip_const_address_operand(iffalse))
+               else if (zip_const_address_operand(iffalse))
+                       return zip_binary_movsicc(reverse_condition(GET_CODE(condition)), "LDI", 3);
+                       return zip_binary_movsicc(reverse_condition(GET_CODE(condition)), "LDI", 3);
+               else if (zip_const_address_operand(iffalse))
+               else if (zip_const_address_operand(iffalse))
+                       return zip_binary_movsicc(reverse_condition(GET_CODE(condition)), "LDI", 3);
+                       return zip_binary_movsicc(reverse_condition(GET_CODE(condition)), "LDI", 3);
+               else if ((MEM_P(iffalse))&&(zip_legitimate_opb(XEXP(iffalse,0), true)))
+               else if ((MEM_P(iffalse))&&(zip_legitimate_opb(XEXP(iffalse,0), true)))
+                       return zip_binary_movsicc(reverse_condition(GET_CODE(condition)), "LOD", 3);
+                       return zip_binary_movsicc(reverse_condition(GET_CODE(condition)), "LOD", 3);
+               else {
+               else {
+                       internal_error("MOVSICC Unsupported mode");
+                       internal_error("MOVSICC Unsupported mode");
+                       return NULL;
+                       return NULL;
+               }
+               }
+       } if ((REG_P(iftrue))&&(REGNO(dst)==REGNO(iftrue))) {
+       } if ((REG_P(iftrue))&&(REGNO(dst)==REGNO(iftrue))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- CASE if(!X) -> R\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- CASE if(!X) -> R\n");
+               if (zip_legitimate_move_operand_p(SImode, iftrue, true))
+               if (zip_legitimate_move_operand_p(SImode, iftrue, true))
+                       return zip_binary_movsicc(GET_CODE(condition), "MOV",2);
+                       return zip_binary_movsicc(GET_CODE(condition), "MOV",2);
+               else if (zip_const_address_operand(iffalse))
+               else if (zip_const_address_operand(iffalse))
+                       return zip_binary_movsicc(GET_CODE(condition), "LDI",2);
+                       return zip_binary_movsicc(GET_CODE(condition), "LDI",2);
+               else if (zip_const_address_operand(iffalse))
+               else if (zip_const_address_operand(iffalse))
+                       return zip_binary_movsicc(GET_CODE(condition), "LDI",2);
+                       return zip_binary_movsicc(GET_CODE(condition), "LDI",2);
+               else if ((MEM_P(iffalse))&&(zip_legitimate_opb(XEXP(iffalse,0), true)))
+               else if ((MEM_P(iffalse))&&(zip_legitimate_opb(XEXP(iffalse,0), true)))
+                       return zip_binary_movsicc(GET_CODE(condition), "LOD",2);
+                       return zip_binary_movsicc(GET_CODE(condition), "LOD",2);
+               else {
+               else {
+                       internal_error("MOVSICC Unsupported mode");
+                       internal_error("MOVSICC Unsupported mode");
+                       return NULL;
+                       return NULL;
+               }
+               }
+       } if ((zip_const_address_operand(iftrue))&&(zip_const_address_operand(iffalse))) {
+       } if ((zip_const_address_operand(iftrue))&&(zip_const_address_operand(iffalse))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) #1 ELSE #2\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) #1 ELSE #2\n");
+               return zip_tertiary_movsicc(condition, "LDI", "LDI");
+               return zip_tertiary_movsicc(condition, "LDI", "LDI");
+       } if ((zip_const_address_operand(iftrue))&&(zip_legitimate_move_operand_p(SImode, iffalse, true))) {
+       } if ((zip_const_address_operand(iftrue))&&(zip_legitimate_move_operand_p(SImode, iffalse, true))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) #1 ELSE A+B\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) #1 ELSE A+B\n");
+               return zip_tertiary_movsicc(condition, "LDI", "MOV");
+               return zip_tertiary_movsicc(condition, "LDI", "MOV");
+       } if ((zip_legitimate_move_operand_p(SImode, iftrue, true))&&(zip_const_address_operand(iffalse))) {
+       } if ((zip_legitimate_move_operand_p(SImode, iftrue, true))&&(zip_const_address_operand(iffalse))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A+B ELSE #x\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A+B ELSE #x\n");
+               return zip_tertiary_movsicc(condition, "MOV", "LDI");
+               return zip_tertiary_movsicc(condition, "MOV", "LDI");
+       } if ((zip_legitimate_move_operand_p(SImode, iftrue, true))
+       } if ((zip_legitimate_move_operand_p(SImode, iftrue, true))
+                       &&(zip_legitimate_move_operand_p(SImode, iffalse, true))) {
+                       &&(zip_legitimate_move_operand_p(SImode, iffalse, true))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A+B ELSE C+D\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A+B ELSE C+D\n");
+               return zip_tertiary_movsicc(condition, "MOV", "MOV");
+               return zip_tertiary_movsicc(condition, "MOV", "MOV");
+       }
+       }
+       if ((MEM_P(iftrue))
+       if ((MEM_P(iftrue))
+               &&(zip_legitimate_opb(XEXP(iftrue,0), true))
+               &&(zip_legitimate_opb(XEXP(iftrue,0), true))
+               &&(zip_legitimate_move_operand_p(SImode, iffalse, true))) {
+               &&(zip_legitimate_move_operand_p(SImode, iffalse, true))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A[B] ELSE C+D\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A[B] ELSE C+D\n");
+               return zip_tertiary_movsicc(condition, "LOD", "MOV");
+               return zip_tertiary_movsicc(condition, "LOD", "MOV");
+       } if ((zip_legitimate_move_operand_p(SImode, iftrue, true))
+       } if ((zip_legitimate_move_operand_p(SImode, iftrue, true))
+               &&(MEM_P(iffalse))&&(zip_legitimate_opb(XEXP(iffalse,0), true))) {
+               &&(MEM_P(iffalse))&&(zip_legitimate_opb(XEXP(iffalse,0), true))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A+B ELSE C[D]\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A+B ELSE C[D]\n");
+               return zip_tertiary_movsicc(condition, "MOV", "LOD");
+               return zip_tertiary_movsicc(condition, "MOV", "LOD");
+       } if ((MEM_P(iftrue))&&(zip_legitimate_opb(XEXP(iftrue,0), true))
+       } if ((MEM_P(iftrue))&&(zip_legitimate_opb(XEXP(iftrue,0), true))
+               &&(MEM_P(iffalse))&&(zip_legitimate_opb(XEXP(iffalse,0), true))) {
+               &&(MEM_P(iffalse))&&(zip_legitimate_opb(XEXP(iffalse,0), true))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A[B] ELSE C[D]\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A[B] ELSE C[D]\n");
+               return zip_tertiary_movsicc(condition, "LOD", "LOD");
+               return zip_tertiary_movsicc(condition, "LOD", "LOD");
+       } if ((MEM_P(iftrue))
+       } if ((MEM_P(iftrue))
+               &&(zip_legitimate_opb(XEXP(iftrue,0),true))
+               &&(zip_legitimate_opb(XEXP(iftrue,0),true))
+               &&(zip_const_address_operand(iffalse))) {
+               &&(zip_const_address_operand(iffalse))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A[B] ELSE #x\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) A[B] ELSE #x\n");
+               return zip_tertiary_movsicc(condition, "LOD", "LDI");
+               return zip_tertiary_movsicc(condition, "LOD", "LDI");
+       } if ((MEM_P(iffalse))
+       } if ((MEM_P(iffalse))
+               &&(zip_legitimate_opb(XEXP(iffalse,0),true))
+               &&(zip_legitimate_opb(XEXP(iffalse,0),true))
+               &&(zip_const_address_operand(iftrue))) {
+               &&(zip_const_address_operand(iftrue))) {
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) #x ELSE A[B]\n");
+               if (dbg) fprintf(stderr, "ZIP::MOVSICC -- IF(X) #x ELSE A[B]\n");
+               return zip_tertiary_movsicc(condition, "LDI", "LOD");
+               return zip_tertiary_movsicc(condition, "LDI", "LOD");
+       }
+       }
+
+
+       internal_error("MOVSICC Operands not supported");
+       internal_error("MOVSICC Operands not supported");
+}
+}
+
+
+const char *zip_addsicc(rtx dst, rtx condition, rtx ifsrc, rtx addv ATTRIBUTE_UNUSED) {
+const char *zip_addsicc(rtx dst, rtx condition, rtx ifsrc, rtx addv ATTRIBUTE_UNUSED) {
+       // We know upon entry that REG_P(dst) must be true
+       // We know upon entry that REG_P(dst) must be true
+       if (!REG_P(dst))
+       if (!REG_P(dst))
+               internal_error("%s","ADDSICC into something other than register");
+               internal_error("%s","ADDSICC into something other than register");
+       if ((REG_P(ifsrc))&&(REGNO(dst)==REGNO(ifsrc))) {
+       if ((REG_P(ifsrc))&&(REGNO(dst)==REGNO(ifsrc))) {
+               switch (GET_CODE(condition)) {
+               switch (GET_CODE(condition)) {
+               case EQ: return "ADD.Z\t%3,%0";
+               case EQ: return "ADD.Z\t%3,%0";
+               case NE: return "ADD.NZ\t%3,%0";
+               case NE: return "ADD.NZ\t%3,%0";
+               case LT: return "ADD.LT\t%3,%0";
+               case LT: return "ADD.LT\t%3,%0";
+               case GT: return "ADD.GT\t%3,%0";
+               case GT: return "ADD.GT\t%3,%0";
+               case LE: return "ADD.LT\t%3,%0\n\tADD.Z\t%3,%0";
+               case LE: return "ADD.LT\t%3,%0\n\tADD.Z\t%3,%0";
+               case GE: return "ADD.GE\t%3,%0";
+               case GE: return "ADD.GE\t%3,%0";
+               case LTU: return "ADD.C\t%3,%0";
+               case LTU: return "ADD.C\t%3,%0";
+               case LEU: return "ADD.C\t%3,%0\n\tADD.Z\t%3,%0";
+               case LEU: return "ADD.C\t%3,%0\n\tADD.Z\t%3,%0";
+               case GEU: return "XOR\t2,CC\n\tADD.C\t%3,%0\n\tXOR\t2,CC";
+               case GEU: return "XOR\t2,CC\n\tADD.C\t%3,%0\n\tXOR\t2,CC";
+               // Can do a GEU comparison, and then undo on the Zero condition
+               // Can do a GEU comparison, and then undo on the Zero condition
+               case GTU: return "XOR\t2,CC\n\tADD.C\t%3,%0\n\tSUB.Z\t%3,%0\n\tXOR\t2,CC";
+               case GTU: return "XOR\t2,CC\n\tADD.C\t%3,%0\n\tSUB.Z\t%3,%0\n\tXOR\t2,CC";
+               default:
+               default:
+                       internal_error("%s", "Zip/No usable addsi expansion");
+                       internal_error("%s", "Zip/No usable addsi expansion");
+                       break;
+                       break;
+               }
+               }
+       } else {
+       } else {
+               // MOV A+REG,REG
+               // MOV A+REG,REG
+               switch (GET_CODE(condition)) {
+               switch (GET_CODE(condition)) {
+               case EQ: return "MOV.Z\t%3+%2,%0";
+               case EQ: return "MOV.Z\t%3+%2,%0";
+               case NE: return "MOV.NZ\t%3+%2,%0";
+               case NE: return "MOV.NZ\t%3+%2,%0";
+               case LT: return "MOV.LT\t%3+%2,%0";
+               case LT: return "MOV.LT\t%3+%2,%0";
+               case GT: return "MOV.GT\t%3+%2,%0";
+               case GT: return "MOV.GT\t%3+%2,%0";
+               case LE: return "MOV.LT\t%3+%2,%0\n\tMOV.Z\t%3+%2,%0";
+               case LE: return "MOV.LT\t%3+%2,%0\n\tMOV.Z\t%3+%2,%0";
+               case GE: return "MOV.GE\t%3+%2,%0";
+               case GE: return "MOV.GE\t%3+%2,%0";
+               case LTU: return "MOV.C\t%3+%2,%0";
+               case LTU: return "MOV.C\t%3+%2,%0";
+               case LEU: return "MOV.C\t%3+%2,%0\n\tMOV.Z\t%3+%2,%0";
+               case LEU: return "MOV.C\t%3+%2,%0\n\tMOV.Z\t%3+%2,%0";
+               case GEU: return "XOR\t2,CC\n\tMOV.C\t%3+%2,%0\n\tXOR\t2,CC";
+               case GEU: return "XOR\t2,CC\n\tMOV.C\t%3+%2,%0\n\tXOR\t2,CC";
+               // Can do a GEU comparison, and then undo on the Zero condition
+               // Can do a GEU comparison, and then undo on the Zero condition
+               // EXCEPT: with a move instruction, what's there to undo?  We
+               // EXCEPT: with a move instruction, what's there to undo?  We
+               // just clobbered our register!
+               // just clobbered our register!
+               // case GTU: return "XOR\t2,CC\n\tMOV.C\t%3,%0\n\tSUB.Z\t%3,%0XOR\t2,CC";
+               // case GTU: return "XOR\t2,CC\n\tMOV.C\t%3,%0\n\tSUB.Z\t%3,%0XOR\t2,CC";
+               default:
+               default:
+                       internal_error("%s", "Zip/No usable addsi(reg,reg) expansion");
+                       internal_error("%s", "Zip/No usable addsi(reg,reg) expansion");
+                       break;
+                       break;
+               }
+               }
+       }
+       }
+
+
+       return "BREAK";
+       return "BREAK";
+}
+}
+
+
+static int     zip_memory_move_cost(machine_mode mode, reg_class_t ATTRIBUTE_UNUSED, bool in ATTRIBUTE_UNUSED) {
+static int     zip_memory_move_cost(machine_mode mode, reg_class_t ATTRIBUTE_UNUSED, bool in ATTRIBUTE_UNUSED) {
+       int     rv = 14;
+       int     rv = 14;
+       if ((mode == DImode)||(mode == DFmode))
+       if ((mode == DImode)||(mode == DFmode))
+               rv += 2;
+               rv += 2;
+       return rv;
+       return rv;
+}
+}
+
+
+// #warning "How do we tell the compiler LDI label is expensive as 2 ops"?
+// #warning "How do we tell the compiler LDI label is expensive as 2 ops"?
+
 
+static bool    zip_cannot_modify_jumps_p(void) {
+static bool    zip_cannot_modify_jumps_p(void) {
+       // Let's try their suggested approach, keeping us from modifying jumps
+       // Let's try their suggested approach, keeping us from modifying jumps
+       // after reload.  This should also allow our peephole2 optimizations
+       // after reload.  This should also allow our peephole2 optimizations
+       // to adjust things back to what they need to be if necessary.
+       // to adjust things back to what they need to be if necessary.
+       return (reload_completed || reload_in_progress);
+       return (reload_completed || reload_in_progress);
+}
+}
 
+
 
+rtx_insn       *zip_ifcvt_info;
 
+
 
+void
 
+zip_ifcvt_modify_tests(ce_if_block *ce_info ATTRIBUTE_UNUSED, rtx *true_expr, rtx *false_expr) {
 
+       const bool      dbg = ((ALL_DEBUG_ON)||(false))&&(!ALL_DEBUG_OFF);
 
+       if (dbg) fprintf(stderr, "IFCVT-MODIFY-TESTS\n");
 
+       if (*true_expr) switch(GET_CODE(*true_expr)) {
 
+               case LE:
 
+               case GTU:
 
+               case GEU:
 
+               case LEU:
 
+                       if (dbg) fprintf(stderr, "TRUE, missing expr\n");
 
+                       if (dbg) zip_debug_rtx(*true_expr);
 
+                       *true_expr = NULL_RTX;
 
+                       break;
 
+               default: // LT, GT, GTE, LTU, NE, EQ
 
+                       break;
 
+       }
 
+
 
+       if (*false_expr) switch(GET_CODE(*false_expr)) {
 
+               case LE:
 
+               case GTU:
 
+               case GEU:
 
+               case LEU:
 
+                       if (dbg) fprintf(stderr, "FALSE, missing expr\n");
 
+                       if (dbg) zip_debug_rtx(*false_expr);
 
+                       *false_expr = NULL_RTX;
 
+               default:
 
+                       break;
 
+       }
 
+       if ((dbg)&&((!*true_expr)||(!*false_expr)))
 
+               fprintf(stderr, "IFCVT-MODIFY-TESTS -- FAIL\n");
 
+}
 
+
 
+void
 
+zip_ifcvt_modify_cancel(struct ce_if_block *ceinfo ATTRIBUTE_UNUSED) {
 
+/*
 
+       fprintf(stderr, "IFCVT -- CANCEL\n");
 
+       zip_ifcvt_info = NULL;
 
+*/
 
+}
 
+
 
+void
 
+zip_ifcvt_modify_final(struct ce_if_block *ceinfo ATTRIBUTE_UNUSED) {
 
+/*
 
+rtx_insn *insn;
 
+FOR_BB_INSNS(ceinfo->test_bb, insn)
 
+       fprintf(stderr, "IFCVT -- FINAL\n");
 
+       zip_debug_rtx_pfx("FINAL-TEST-BB", insn);
 
+       zip_ifcvt_info = NULL;
 
+*/
 
+}
 
+
 
+void
 
+zip_ifcvt_machdep_init(struct ce_if_block *ceinfo ATTRIBUTE_UNUSED) {
 
+/*
 
+       zip_ifcvt_info = NULL;
 
+       rtx_insn *insn, *ifinsn = NULL;
 
+       FOR_BB_INSNS(ceinfo->test_bb, insn) {
 
+               rtx     p;
 
+               p = single_set(insn);
 
+               if (!p) continue;
 
+               if (SET_DEST(p)==pc_rtx) {
 
+                       ifinsn = insn;
 
+               }
 
+               if (!REG_P(SET_DEST(p)))
 
+                       continue;
 
+               if (GET_MODE(SET_DEST(p))!=CCmode)
 
+                       continue;
 
+               if (REGNO(SET_DEST(p))!=zip_CC)
 
+                       continue;
 
+               zip_ifcvt_info = insn;
 
+       }
 
+
 
+       if (zip_ifcvt_info)
 
+               zip_debug_rtx_pfx("PUTATIVE-CMP",zip_ifcvt_info);
 
+       if (ifinsn)
 
+               zip_debug_rtx_pfx("PRIOR-JMP",ifinsn);
 
+*/
 
+}
 
+
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/zip/zip.h gcc-5.3.0-zip/gcc/config/zip/zip.h
diff -Naur '--exclude=*.swp' gcc-5.3.0-original/gcc/config/zip/zip.h gcc-5.3.0-zip/gcc/config/zip/zip.h
--- gcc-5.3.0-original/gcc/config/zip/zip.h     1969-12-31 19:00:00.000000000 -0500
--- gcc-5.3.0-original/gcc/config/zip/zip.h     1969-12-31 19:00:00.000000000 -0500
+++ gcc-5.3.0-zip/gcc/config/zip/zip.h  2016-04-01 06:33:55.090614401 -0400
+++ gcc-5.3.0-zip/gcc/config/zip/zip.h  2016-04-04 18:41:58.074920257 -0400
@@ -0,0 +1,3898 @@
@@ -0,0 +1,3983 @@
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//
+// Filename:   gcc/config/zip/zip.h
+// Filename:   gcc/config/zip/zip.h
+//
+//
+// Project:    Zip CPU backend for the GNU Compiler Collection
+// Project:    Zip CPU backend for the GNU Compiler Collection
+//
+//
+// Purpose:
+// Purpose:
+//
+//
+// Creator:    Dan Gisselquist, Ph.D.
+// Creator:    Dan Gisselquist, Ph.D.
+//             Gisselquist Technology, LLC
+//             Gisselquist Technology, LLC
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+//
+//
+// Copyright (C) 2016, Gisselquist Technology, LLC
+// Copyright (C) 2016, Gisselquist Technology, LLC
+//
+//
+// This program is free software (firmware): you can redistribute it and/or
+// This program is free software (firmware): you can redistribute it and/or
+// modify it under the terms of  the GNU General Public License as published
+// modify it under the terms of  the GNU General Public License as published
+// by the Free Software Foundation, either version 3 of the License, or (at
+// by the Free Software Foundation, either version 3 of the License, or (at
+// your option) any later version.
+// your option) any later version.
+//
+//
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// This program is distributed in the hope that it will be useful, but WITHOUT
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+// ANY WARRANTY; without even the implied warranty of MERCHANTIBILITY or
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+// for more details.
+// for more details.
+//
+//
+// You should have received a copy of the GNU General Public License along
+// You should have received a copy of the GNU General Public License along
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
+// with this program.  (It's in the $(ROOT)/doc directory, run make with no
+// target there if the PDF file isn't present.)  If not, see
+// target there if the PDF file isn't present.)  If not, see
+// <http://www.gnu.org/licenses/> for a copy.
+// <http://www.gnu.org/licenses/> for a copy.
+//
+//
+// License:    GPL, v3, as defined and found on www.gnu.org,
+// License:    GPL, v3, as defined and found on www.gnu.org,
+//             http://www.gnu.org/licenses/gpl.html
+//             http://www.gnu.org/licenses/gpl.html
+//
+//
+//
+//
+////////////////////////////////////////////////////////////////////////////////
+////////////////////////////////////////////////////////////////////////////////
+#ifndef        GCC_ZIP_H
+#ifndef        GCC_ZIP_H
+#define        GCC_ZIP_H
+#define        GCC_ZIP_H
+
+
+
+
+//
+//
+//
+//
+// Zip CPU configuration registers
+// Zip CPU configuration registers
+//
+//
+//
+//
+#define        ZIP_USER        0        // Assume we are in supervisor mode
+#define        ZIP_USER        0        // Assume we are in supervisor mode
+#define        ZIP_MULTIPLY    1       // Assume we have multiply instructions
+#define        ZIP_MULTIPLY    1       // Assume we have multiply instructions
+#define        ZIP_DIVIDE      1       // Assume we have divide instructions
+#define        ZIP_DIVIDE      1       // Assume we have divide instructions
+#define        ZIP_FPU         0        // Assume we have no floating point instructions
+#define        ZIP_FPU         0        // Assume we have no floating point instructions
+#define        ZIP_PIPELINED   1       // Assume our instructions are pipelined
+#define        ZIP_PIPELINED   1       // Assume our instructions are pipelined
+#define        ZIP_VLIW        1       // Assume we have the VLIW feature
+#define        ZIP_VLIW        1       // Assume we have the VLIW feature
+#define        ZIP_ATOMIC      ((ZIP_PIPELINED)&&(ZIP_VLIW))
+#define        ZIP_ATOMIC      ((ZIP_PIPELINED)&&(ZIP_VLIW))
+#define        ZIP_PIC         0        // Attempting to produce PIC code, with GOT
+#define        ZIP_PIC         0        // Attempting to produce PIC code, with GOT
+#define        ZIP_HAS_DI      1
+#define        ZIP_HAS_DI      1
+
+
+// Zip has 16 registers in each user mode.
+// Zip has 16 registers in each user mode.
+//     Register 15 is the program counter (PC)
+//     Register 15 is the program counter (PC)
+//     Register 14 is the condition codes (CC)
+//     Register 14 is the condition codes (CC)
+//     Register 13 is the stack pointer   (SP)
+//     Register 13 is the stack pointer   (SP)
+//     Register 12 (may be) the Global Offset Table pointer (GOT)
+//     Register 12 (may be) the Global Offset Table pointer (GOT)
+//     Register  0 (may be) the return address pointer
+//     Register  0 (may be) the return address pointer
+// Registers 16-31 may only be used in supervisor mode.
+// Registers 16-31 may only be used in supervisor mode.
+#define        is_ZIP_GENERAL_REG(REGNO)       ((REGNO)<13)
+#define        is_ZIP_GENERAL_REG(REGNO)       ((REGNO)<13)
+#define        is_ZIP_REG(REGNO)               ((REGNO)<16)
+#define        is_ZIP_REG(REGNO)               ((REGNO)<16)
+
+
+// #define     zip_FP_PSEUDO   16
+// #define     zip_FP_PSEUDO   16
+#define        zip_PC          15
+#define        zip_PC          15
+#define        zip_CC          14
+#define        zip_CC          14
+#define        zip_SP          13
+#define        zip_SP          13
+#define        zip_FP          12
+#define        zip_FP          12
+#define        zip_GOT         11
+#define        zip_GOT         11
+#define        zip_AP          10
+#define        zip_AP          10
+#define        zip_R1          1
+#define        zip_R1          1
+#define        zip_R0          0
+#define        zip_R0          0
+
+
+#define        ZIP_FIRST_ARG_REGNO     1
+#define        ZIP_FIRST_ARG_REGNO     1
+#define        ZIP_LAST_ARG_REGNO      5
+#define        ZIP_LAST_ARG_REGNO      5
+#define        NUM_ARG_REGS            (ZIP_LAST_ARG_REGNO-ZIP_FIRST_ARG_REGNO+1)
+#define        NUM_ARG_REGS            (ZIP_LAST_ARG_REGNO-ZIP_FIRST_ARG_REGNO+1)
+#define        MAX_PARM_REGS           (ZIP_LAST_ARG_REGNO-ZIP_FIRST_ARG_REGNO+1)
+#define        MAX_PARM_REGS           (ZIP_LAST_ARG_REGNO-ZIP_FIRST_ARG_REGNO+1)
+
+
+/* The overall framework of an assembler file */
+/* The overall framework of an assembler file */
+
+
+#define        ASM_COMMENT_START       ";"
+#define        ASM_COMMENT_START       ";"
+#define        ASM_APP_ON              ""
+#define        ASM_APP_ON              ""
+#define        ASM_APP_OFF             ""
+#define        ASM_APP_OFF             ""
+
+
+#define        FILE_ASM_OP             "\t.file\n"
+#define        FILE_ASM_OP             "\t.file\n"
+
+
+/* Output and Generation of Labels */
+/* Output and Generation of Labels */
+#define        GLOBAL_ASM_OP           "\t.global\t"
+#define        GLOBAL_ASM_OP           "\t.global\t"
+
+
+#undef BITS_PER_UNIT
+#undef BITS_PER_UNIT
+#define        BITS_PER_UNIT   (32)
+#define        BITS_PER_UNIT   (32)
+
+
+/* Assembler Commands for Alignment */
+/* Assembler Commands for Alignment */
+#define        ASM_OUTPUT_ALIGN(STREAM,POWER)  \
+#define        ASM_OUTPUT_ALIGN(STREAM,POWER)  \
+               { int pwr = POWER; fprintf(STREAM, "\t.p2align %d\n", (pwr<2)?2:pwr); }
+               { int pwr = POWER; fprintf(STREAM, "\t.p2align %d\n", (pwr<2)?2:pwr); }
+
+
+
+
+/* A C compound statement to output to stdio stream STREAM the assembler syntax
+/* A C compound statement to output to stdio stream STREAM the assembler syntax
+ * for an instruction operand X. */
+ * for an instruction operand X. */
+#define        PRINT_OPERAND(STREAM, X, CODE)  zip_print_operand(STREAM, X, CODE)
+#define        PRINT_OPERAND(STREAM, X, CODE)  zip_print_operand(STREAM, X, CODE)
+#define        PRINT_OPERAND_ADDRESS(STREAM, X) zip_print_operand_address(STREAM, X)
+#define        PRINT_OPERAND_ADDRESS(STREAM, X) zip_print_operand_address(STREAM, X)
+
+
+/* Passing arguments in registers */
+/* Passing arguments in registers */
+#define        FUNCTION_VALUE_REGNO_P(REGNO)   ((REGNO)==zip_R1)
+#define        FUNCTION_VALUE_REGNO_P(REGNO)   ((REGNO)==zip_R1)
+
+
+/* Define how to find the value returned by a function.  VALTYPE is the data
+/* Define how to find the value returned by a function.  VALTYPE is the data
+ * type of the value (as a tree).  If the precise function being called is known
+ * type of the value (as a tree).  If the precise function being called is known
+ * FUNC is its FUNCTION_DECL; otherwise, FUNC is 0. */
+ * FUNC is its FUNCTION_DECL; otherwise, FUNC is 0. */
+#define        FUNCTION_VALUE(VALTYPE, FUNC) gen_rtx_REG(TYPE_MODE(VALTYPE), zip_R1)
+#define        FUNCTION_VALUE(VALTYPE, FUNC) gen_rtx_REG(TYPE_MODE(VALTYPE), zip_R1)
+
+
+/* Define how to find the value returned by a library function assuming the
+/* Define how to find the value returned by a library function assuming the
+ * value has mode MODE.
+ * value has mode MODE.
+ */
+ */
+#define        LIBCALL_VALUE(MODE)     gen_rtx_REG(MODE, zip_R1)
+#define        LIBCALL_VALUE(MODE)     gen_rtx_REG(MODE, zip_R1)
+
+
+
+
+/* STACK AND CALLING */
+/* STACK AND CALLING */
+
+
+
+
+/* Define this macro as a C expression that is nonzero for registers that are
+/* Define this macro as a C expression that is nonzero for registers that are
+ * used by the epilogue or the return pattern.  The stack and frame pointer
+ * used by the epilogue or the return pattern.  The stack and frame pointer
+ * registers are already assumed to be used as needed.
+ * registers are already assumed to be used as needed.
+ */
+ */
+#define        EPILOGUE_USES(R)        (R == RETURN_ADDRESS_REGNUM)
+#define        EPILOGUE_USES(R)        (R == RETURN_ADDRESS_REGNUM)
+
+
+
+
+/* Normal alignment required for function parameters on the stack, in bits.  All
+/* Normal alignment required for function parameters on the stack, in bits.  All
+ * stack parameters receive at leaswt this much alignment regardless of data
+ * stack parameters receive at leaswt this much alignment regardless of data
+ * type. */
+ * type. */
+#define        PARM_BOUNDARY   32
+#define        PARM_BOUNDARY   32
+
+
+/* Alignment of field after 'int : 0' in a structure. */
+/* Alignment of field after 'int : 0' in a structure. */
+#define        EMPTY_FIELD_BOUNDARY    32
+#define        EMPTY_FIELD_BOUNDARY    32
+
+
+/* No data type wants to be aligned rounder than this. */
+/* No data type wants to be aligned rounder than this. */
+#define        BIGGEST_ALIGNMENT       32
+#define        BIGGEST_ALIGNMENT       32
+
+
+/* The best alignment to use in cases where we have a choice. */
+/* The best alignment to use in cases where we have a choice. */
+#define        FASTEST_ALIGNMENT       32
+#define        FASTEST_ALIGNMENT       32
+
+
+/* Every structures size must be a multiple of 32-bits. */
+/* Every structures size must be a multiple of 32-bits. */
+#define        STRUCTURE_SIZE_BOUNDARY 32
+#define        STRUCTURE_SIZE_BOUNDARY 32
+
+
+/* PCC_BITFIELD_TYPE_MATTERS -- define this if you wish to imitate the the way
+/* PCC_BITFIELD_TYPE_MATTERS -- define this if you wish to imitate the the way
+ * other C compilers handle alignment of bit-fields and the structures that
+ * other C compilers handle alignment of bit-fields and the structures that
+ * contain them.
+ * contain them.
+ *
+ *
+ * The behavior is that the type written for a named bit-field (int, short, or
+ * The behavior is that the type written for a named bit-field (int, short, or
+ * other integer type) imposes an alignment for the entire structure, as if the
+ * other integer type) imposes an alignment for the entire structure, as if the
+ * structure really did contain an ordinary field of that type.  In addition,
+ * structure really did contain an ordinary field of that type.  In addition,
+ * the bit-field is placed within the structure so that it would fit within
+ * the bit-field is placed within the structure so that it would fit within
+ * such a field, not crossing a boundary for it.
+ * such a field, not crossing a boundary for it.
+ *
+ *
+ * Thus, no most machines, a named bit-field whose type is written as int would
+ * Thus, no most machines, a named bit-field whose type is written as int would
+ * not cross a four-byte boundary, and would force four-byte alignment for the
+ * not cross a four-byte boundary, and would force four-byte alignment for the
+ * whole structure.  (The alignment used may not be four bytes; it is controlled
+ * whole structure.  (The alignment used may not be four bytes; it is controlled
+ * by other alignment parameters.)
+ * by other alignment parameters.)
+ *
+ *
+ * An unnamed bit-field will not affect the alignment of the containing
+ * An unnamed bit-field will not affect the alignment of the containing
+ * structure.
+ * structure.
+ *
+ *
+ * If thhe macro is defined, its definition should be a C expression, a non
+ * If thhe macro is defined, its definition should be a C expression, a non
+ * zero value for the expression enables this behavior.
+ * zero value for the expression enables this behavior.
+ * Look at the fundamental type that is used for a bit-field and use that to
+ * Look at the fundamental type that is used for a bit-field and use that to
+ * impose alignment on the enclosing structure.  struct s{int a:8}; should
+ * impose alignment on the enclosing structure.  struct s{int a:8}; should
+ * have the same alignment as 'int', not 'char'.
+ * have the same alignment as 'int', not 'char'.
+ */
+ */
+#undef PCC_BITFIELD_TYPE_MATTERS
+#undef PCC_BITFIELD_TYPE_MATTERS
+#define        PCC_BITFIELD_TYPE_MATTERS       0
+#define        PCC_BITFIELD_TYPE_MATTERS       0
+
+
+/* MAX_FIXED_MODE_SIZE -- An integer expression for the size in bits of the
+/* MAX_FIXED_MODE_SIZE -- An integer expression for the size in bits of the
+ * largest integer machine mode that should actually be used.  All integer
+ * largest integer machine mode that should actually be used.  All integer
+ * machine modes of this size and smaller can be used for structures and unions
+ * machine modes of this size and smaller can be used for structures and unions
+ * with the appropriate sizes.  If this macro is undefined,
+ * with the appropriate sizes.  If this macro is undefined,
+ * GET_MODE_BITSIZE(DImode) is assumed.
+ * GET_MODE_BITSIZE(DImode) is assumed.
+ *
+ *
+ * ZipCPU -- The default looks good enough for us.
+ * ZipCPU -- The default looks good enough for us.
+ */
+ */
+
+
+/* Make strings word-aligned so strcpy from constants will be faster. */
+/* Make strings word-aligned so strcpy from constants will be faster. */
+#define        CONSTANT_ALIGNMENT(EXP, ALIGN)  (((TREE_CODE(EXP)==STRING_CST)  \
+#define        CONSTANT_ALIGNMENT(EXP, ALIGN)  (((TREE_CODE(EXP)==STRING_CST)  \
+       && ((ALIGN) < FASTEST_ALIGNMENT)) ? FASTEST_ALIGNMENT : (ALIGN))
+       && ((ALIGN) < FASTEST_ALIGNMENT)) ? FASTEST_ALIGNMENT : (ALIGN))
+
+
+/* Make arrays of chars word-aligned for the same reasons. */
+/* Make arrays of chars word-aligned for the same reasons. */
+#define        DATA_ALIGNMENT(TYPE, ALIGN)     ((TREE_CODE(TYPE) == ARRAY_TYPE) \
+#define        DATA_ALIGNMENT(TYPE, ALIGN)     ((TREE_CODE(TYPE) == ARRAY_TYPE) \
+       && (TYPE_MODE(TREE_TYPE(TYPE)) == QImode)               \
+       && (TYPE_MODE(TREE_TYPE(TYPE)) == QImode)               \
+       && ((ALIGN < FASTEST_ALIGNMENT) ? FASTEST_ALIGNMENT : (ALIGN)))
+       && ((ALIGN < FASTEST_ALIGNMENT) ? FASTEST_ALIGNMENT : (ALIGN)))
+
+
+/* Generate Code for Profiling
+/* Generate Code for Profiling
+ */
+ */
+#define        FUNCTION_PROFILER(FILE,LABELNO)         (abort(), 0)
+#define        FUNCTION_PROFILER(FILE,LABELNO)         (abort(), 0)
+
+
+
+
+/* A C expression which is nonzero if register number NUM is suitable for use
+/* A C expression which is nonzero if register number NUM is suitable for use
+ * as an index register in operand addresses.
+ * as an index register in operand addresses.
+ */
+ */
+#define        REGNO_OK_FOR_INDEX_P(NUM)       0
+#define        REGNO_OK_FOR_INDEX_P(NUM)       0
+
+
+
+
+/* A C compound statement with a conditional 'goto LABEL;' executed if X
+/* A C compound statement with a conditional 'goto LABEL;' executed if X
+ * (an RTX) is a legitimate memory address on the target machine for a memory
+ * (an RTX) is a legitimate memory address on the target machine for a memory
+ * operand of mode MODE.
+ * operand of mode MODE.
+ */
+ */
+/* 17.03 Controlling the Compilation Driver, 'gcc' */
+/* 17.03 Controlling the Compilation Driver, 'gcc' */
+// DRIVER_SELF_SPECS
+// DRIVER_SELF_SPECS
+// OPTION_DEFAULT_SPECS
+// OPTION_DEFAULT_SPECS
+// CPP_SPEC
+// CPP_SPEC
+// CPLUSPLUS_CPP_SPEC
+// CPLUSPLUS_CPP_SPEC
+// CC1_SPEC
+// CC1_SPEC
+// CC1PLUS_SPEC
+// CC1PLUS_SPEC
+/* ASM_SPEC ... A C string constant that tells the GCC driver program options
+/* ASM_SPEC ... A C string constant that tells the GCC driver program options
+ * to pass to the assembler.  It can also specify how to translate options you
+ * to pass to the assembler.  It can also specify how to translate options you
+ * give to GCC into options for GCC to pass to the assembler.  See the file
+ * give to GCC into options for GCC to pass to the assembler.  See the file
+ * 'sun3.h' for an example of this.
+ * 'sun3.h' for an example of this.
+ *
+ *
+ * Do not define thismacro if it does not need to do anything.
+ * Do not define thismacro if it does not need to do anything.
+ */
+ */
+// #undef      ASM_SPEC
+// #undef      ASM_SPEC
+// ASM_FINAL_SPEC
+// ASM_FINAL_SPEC
+// ASM_NEEDS_DASH_FOR_PIPED_INPUT
+// ASM_NEEDS_DASH_FOR_PIPED_INPUT
+
+
+/* LINK_SPEC ... A C string constant that tells the GCC driver program options
+/* LINK_SPEC ... A C string constant that tells the GCC driver program options
+ * to pass to the linker.  It can also specify how to translate options you give
+ * to pass to the linker.  It can also specify how to translate options you give
+ * to GCC into options for GCC to pass to the linker.
+ * to GCC into options for GCC to pass to the linker.
+ *
+ *
+ * Do not define this macro if it does not need to do anything.
+ * Do not define this macro if it does not need to do anything.
+ */
+ */
+
+
+/* LIB_SPEC ... Another C string constant very much like LINK_SPEC.  The
+/* LIB_SPEC ... Another C string constant very much like LINK_SPEC.  The
+ * difference between the two is that LIB_SPEC is used at the end of the
+ * difference between the two is that LIB_SPEC is used at the end of the
+ * command given to the linker.
+ * command given to the linker.
+ *
+ *
+ * If this macro is not defined, a default is provided that loads the standard
+ * If this macro is not defined, a default is provided that loads the standard
+ * C library from the usual place.  See 'gcc.c'.
+ * C library from the usual place.  See 'gcc.c'.
+ */
+ */
+#undef LIB_SPEC
+#undef LIB_SPEC
+// #define     LIB_SPEC        "%{!g:-lc} %{g:-lg} -lzip"
+// #define     LIB_SPEC        "%{!g:-lc} %{g:-lg} -lzip"
+#define        LIB_SPEC        ""
+#define        LIB_SPEC        ""
+
+
+/* LIBGCC_SPEC ... Another C string constant that tells the GCC driver program
+/* LIBGCC_SPEC ... Another C string constant that tells the GCC driver program
+ * hoow and when to place a reference to 'libgcc.a' into the linker command
+ * hoow and when to place a reference to 'libgcc.a' into the linker command
+ * line.  This constant is placed both before and after the value of LIB_SPEC.
+ * line.  This constant is placed both before and after the value of LIB_SPEC.
+ *
+ *
+ * If this macro is not defined, the GCC driver provides a default that passes
+ * If this macro is not defined, the GCC driver provides a default that passes
+ * the string '-lgcc' to the linker.
+ * the string '-lgcc' to the linker.
+ */
+ */
+#undef LIBGCC_SPEC
+#undef LIBGCC_SPEC
+#define        LIBGCC_SPEC     ""
+#define        LIBGCC_SPEC     ""
+
+
+/* REAL_LIBGCC_SPEC ... By default, if ENABLE_SHARED_LIBGCC is defined, the
+/* REAL_LIBGCC_SPEC ... By default, if ENABLE_SHARED_LIBGCC is defined, the
+ * LIBGCC_SPEC is not directly used by the driver program but is instead
+ * LIBGCC_SPEC is not directly used by the driver program but is instead
+ * modified to refer to different versions of 'libgcc.a' depending on the
+ * modified to refer to different versions of 'libgcc.a' depending on the
+ * values of the command line flags '-static', '-shared', '-static-libgcc',
+ * values of the command line flags '-static', '-shared', '-static-libgcc',
+ * and '-shared-libgcc'.  On targets where these modifications are
+ * and '-shared-libgcc'.  On targets where these modifications are
+ * inappropriate, define REAL_LIBGCC_SPEC instead.  REAL_LIBGCC_SPEC tells the
+ * inappropriate, define REAL_LIBGCC_SPEC instead.  REAL_LIBGCC_SPEC tells the
+ * driver how to place a reference to 'libgcc' on the link command line, but
+ * driver how to place a reference to 'libgcc' on the link command line, but
+ * unlike LIBGCC_SPEC, it is used unmodified.
+ * unlike LIBGCC_SPEC, it is used unmodified.
+ */
+ */
+#define        REAL_LIBGCC_SPEC        ""
+#define        REAL_LIBGCC_SPEC        ""
+
+
+// USE_LD_AS_NEEDED
+// USE_LD_AS_NEEDED
+// LINK_EH_SPEC
+// LINK_EH_SPEC
+
+
+/* STARTFILE_SPEC ... Another C string constant used much like LINK_SPEC.  The
+/* STARTFILE_SPEC ... Another C string constant used much like LINK_SPEC.  The
+ * difference between the two is that STARTFILE_SPEC is used at the very
+ * difference between the two is that STARTFILE_SPEC is used at the very
+ * beginning of the command given to the linker.
+ * beginning of the command given to the linker.
+ *
+ *
+ * If this macro is not defined, a default is provided that loads the standard
+ * If this macro is not defined, a default is provided that loads the standard
+ * C startup file from the usual place.  See 'gcc.c'
+ * C startup file from the usual place.  See 'gcc.c'
+ */
+ */
+#undef STARTFILE_SPEC
+#undef STARTFILE_SPEC
+#define        STARTFILE_SPEC  ""
+#define        STARTFILE_SPEC  ""
+
+
+/* ENDFILE_SPEC ... Another C string constant used much like LINK_SPEC.  The
+/* ENDFILE_SPEC ... Another C string constant used much like LINK_SPEC.  The
+ * difference between the two is that ENDFILE_SPEC is used at the very end
+ * difference between the two is that ENDFILE_SPEC is used at the very end
+ * of the command given to the linker.
+ * of the command given to the linker.
+ *
+ *
+ * Do not define this macro if it does not do anything.
+ * Do not define this macro if it does not do anything.
+ */
+ */
+// #undef      ENDFILE_SPEC
+// #undef      ENDFILE_SPEC
+// #define     ENDFILE_SPEC    ""
+// #define     ENDFILE_SPEC    ""
+
+
+// THREAD_MODEL_SPEC
+// THREAD_MODEL_SPEC
+// SYSROOT_SUFFIX_SPEC
+// SYSROOT_SUFFIX_SPEC
+// SYSROOT_HEADERS_SUFFIX_SPEC
+// SYSROOT_HEADERS_SUFFIX_SPEC
+// EXTRA_SPECS
+// EXTRA_SPECS
+// LINK_LIBGCC_SPECIAL_1
+// LINK_LIBGCC_SPECIAL_1
+// LINK_GCC_C_SEQUENCE_SPEC
+// LINK_GCC_C_SEQUENCE_SPEC
+// LINK_COMMAND_SPEC
+// LINK_COMMAND_SPEC
+// TARGET_ALWAYS_STRIP_DOTDOT
+// TARGET_ALWAYS_STRIP_DOTDOT
+// MULTILIB_DEFAULTS
+// MULTILIB_DEFAULTS
+// RELATIVE_PREFIX_NOT_LINKDIR
+// RELATIVE_PREFIX_NOT_LINKDIR
+// MD_EXEC_PREFIX
+// MD_EXEC_PREFIX
+// STANDARD_STARTFILE_PREFIX
+// STANDARD_STARTFILE_PREFIX
+// STANDARD_STARTFILE_PREFIX_1
+// STANDARD_STARTFILE_PREFIX_1
+// STANDARD_STARTFILE_PREFIX_2
+// STANDARD_STARTFILE_PREFIX_2
+// MD_STARTFILE_PREFIX
+// MD_STARTFILE_PREFIX
+// MD_STARTFILE_PREFIX_1
+// MD_STARTFILE_PREFIX_1
+// INIT_ENVIRONMENT
+// INIT_ENVIRONMENT
+// LOCAL_INCLUDE_DIR
+// LOCAL_INCLUDE_DIR
+#undef LOCAL_INCLUDE_DIR
+#undef LOCAL_INCLUDE_DIR
+
+
+// NATIVE_SYSTEM_HEADER_COMPONENT
+// NATIVE_SYSTEM_HEADER_COMPONENT
+// INCLUDE_DEFAULTS
+// INCLUDE_DEFAULTS
+
+
+/* 17.03 Run-time Target Specification */
+/* 17.03 Run-time Target Specification */
+
+
+/* TARGET_CPU_CPP_BUILTINS() ... This function-like macro expands to a block of
+/* TARGET_CPU_CPP_BUILTINS() ... This function-like macro expands to a block of
+ * code that defines built-in preprocessor macros and assertions for the target
+ * code that defines built-in preprocessor macros and assertions for the target
+ * CPU, using the functions builtin_define, builtin_define_std, and
+ * CPU, using the functions builtin_define, builtin_define_std, and
+ * builtin_assert.  When the front end calls this macro it provides a trailing
+ * builtin_assert.  When the front end calls this macro it provides a trailing
+ * semicolon, and since it has finished command line option proccessing your
+ * semicolon, and since it has finished command line option proccessing your
+ * code can use those results freely.
+ * code can use those results freely.
+ *
+ *
+ * ZipCPU --- We should probably capture in this macro what capabilities the
+ * ZipCPU --- We should probably capture in this macro what capabilities the
+ * command line parameters we've been given indicate that our CPU has.  That
+ * command line parameters we've been given indicate that our CPU has.  That
+ * way, code can be adjusted depending upon the CPU's capabilities.
+ * way, code can be adjusted depending upon the CPU's capabilities.
+ */
+ */
+#define        TARGET_CPU_CPP_BUILTINS()                       \
+#define        TARGET_CPU_CPP_BUILTINS()                       \
+       { builtin_define("__ZIPCPU__");                 \
+       { builtin_define("__ZIPCPU__");                 \
+       if (ZIP_FPU) builtin_define("__ZIPFPU__");      \
+       if (ZIP_FPU) builtin_define("__ZIPFPU__");      \
+       if (ZIP_ATOMIC) builtin_define("__ZIPATOMIC__");        \
+       if (ZIP_ATOMIC) builtin_define("__ZIPATOMIC__");        \
+       }
+       }
+       // If (zip_param_has_fpu)  builtin_define("__ZIPFPU__");
+       // If (zip_param_has_fpu)  builtin_define("__ZIPFPU__");
+       // If (zip_param_has_div)  builtin_define("__ZIPDIV__");
+       // If (zip_param_has_div)  builtin_define("__ZIPDIV__");
+       // If (zip_param_has_mpy)  builtin_define("__ZIPMPY__");
+       // If (zip_param_has_mpy)  builtin_define("__ZIPMPY__");
+       // If (zip_param_has_lock) builtin_define("__ZIPLOCK__");
+       // If (zip_param_has_lock) builtin_define("__ZIPLOCK__");
+       // If (zip_param_supervisor) builtin_define("__ZIPUREGS__");
+       // If (zip_param_supervisor) builtin_define("__ZIPUREGS__");
+       // If (we support int64s) builtin_define("___int64_t_defined");
+       // If (we support int64s) builtin_define("___int64_t_defined");
+
+
+/* TARGET_OS_CPP_BUILTINS() ... Similarly to TARGET_CPU_CPP_BUILTINS but this
+/* TARGET_OS_CPP_BUILTINS() ... Similarly to TARGET_CPU_CPP_BUILTINS but this
+ * macro is optional and is used for the target operating system instead.
+ * macro is optional and is used for the target operating system instead.
+ */
+ */
+
+
+/* Option macros: (we need to define these eventually ... )
+/* Option macros: (we need to define these eventually ... )
+ *
+ *
+ *     TARGET_HANDLE_OPTION
+ *     TARGET_HANDLE_OPTION
+ *     TARGET_HANDLE_C_OPTION
+ *     TARGET_HANDLE_C_OPTION
+ *     TARGET_OBJ_CONSTRUCT_STRING_OBJECT
+ *     TARGET_OBJ_CONSTRUCT_STRING_OBJECT
+ *     TARGET_OBJ_DECLARE_UNRESOLVED_CLASS_REFERENCE
+ *     TARGET_OBJ_DECLARE_UNRESOLVED_CLASS_REFERENCE
+ *     TARGET_OBJ_DECLARE_CLASS_DEFINITION
+ *     TARGET_OBJ_DECLARE_CLASS_DEFINITION
+ *     TARGET_STRING_OBJECT_REF_TYPE_P
+ *     TARGET_STRING_OBJECT_REF_TYPE_P
+ *     TARGET_CHECK_STRING_OBJECT_FORMAT_ARG
+ *     TARGET_CHECK_STRING_OBJECT_FORMAT_ARG
+ *     TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE(VOID)
+ *     TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE(VOID)
+ *     C_COMMON_OVERRIDE_OTPTIONS
+ *     C_COMMON_OVERRIDE_OTPTIONS
+ *     TARGET_OPTION_OPTIMIZATION_TABLE
+ *     TARGET_OPTION_OPTIMIZATION_TABLE
+ *     TARGET_OPTION_INIT_STRUCT
+ *     TARGET_OPTION_INIT_STRUCT
+ *     TARGET_OPTION_DEFAULT_PARAMS
+ *     TARGET_OPTION_DEFAULT_PARAMS
+ */
+ */
+
+
+/* SWITCHABLE_TARGET
+/* SWITCHABLE_TARGET
+ *
+ *
+ * Zip CPU doesn't need this, so it defaults to zero.  No need to change it
+ * Zip CPU doesn't need this, so it defaults to zero.  No need to change it
+ * here.
+ * here.
+ */
+ */
+
+
+/* TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P(VOID) ... Returns true if the
+/* TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P(VOID) ... Returns true if the
+ * target supports IEEE 754 floating-point exceptions and rounding modes, false
+ * target supports IEEE 754 floating-point exceptions and rounding modes, false
+ * otherwise.  This is intended to relate to the float and double types, but not
+ * otherwise.  This is intended to relate to the float and double types, but not
+ * necessarily "long double".  By default, returns true if the adddf3
+ * necessarily "long double".  By default, returns true if the adddf3
+ * instruction pattern is available and false otherwise, on the assumption that
+ * instruction pattern is available and false otherwise, on the assumption that
+ * hardware floating point supports exceptions and rounding modes but software
+ * hardware floating point supports exceptions and rounding modes but software
+ * floating point does not.
+ * floating point does not.
+ *
+ *
+ * ZipCPU floating point is barely going to be functional, I doubt it will
+ * ZipCPU floating point is barely going to be functional, I doubt it will
+ * support all of these bells and whistles when full functionality is even
+ * support all of these bells and whistles when full functionality is even
+ * achieved.  Therefore, we won't support these modes.  However, we can't just
+ * achieved.  Therefore, we won't support these modes.  However, we can't just
+ * set this to zero, so let's come back to this.
+ * set this to zero, so let's come back to this.
+ */
+ */
+// #warning "Wrong answer encoded to date"
+// #warning "Wrong answer encoded to date"
+// #undef      TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P
+// #undef      TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P
+// #define     TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P(X) 0
+// #define     TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P(X) 0
+
+
+/* 17.04 Defining data structures for per-function information */
+/* 17.04 Defining data structures for per-function information */
+
+
+/* INIT_EXPANDERS ... Macro called to initialize any target specific
+/* INIT_EXPANDERS ... Macro called to initialize any target specific
+ * information.  This macro is called once per function, before generation of
+ * information.  This macro is called once per function, before generation of
+ * any RTL has begun.  The intention is to allow the initialization of the
+ * any RTL has begun.  The intention is to allow the initialization of the
+ * function pointer init_machine_status.
+ * function pointer init_machine_status.
+ */
+ */
+// #warning "I may need to define this to handle function return addresses ..."
+// #warning "I may need to define this to handle function return addresses ..."
+
+
+/* 17.05 Storage Layout */
+/* 17.05 Storage Layout */
+
+
+/* Storage Layout */
+/* Storage Layout */
+#define        BITS_BIG_ENDIAN         0        // MSB has highest number
+#define        BITS_BIG_ENDIAN         0        // MSB has highest number
+#define        BYTES_BIG_ENDIAN        1       // 1 if MSB is lowest number
+#define        BYTES_BIG_ENDIAN        1       // 1 if MSB is lowest number
+#define        WORDS_BIG_ENDIAN        1       // 1 if MSW is lowest number
+#define        WORDS_BIG_ENDIAN        1       // 1 if MSW is lowest number
+#define        FLOAT_WORDS_BIG_ENDIAN  1
+#define        FLOAT_WORDS_BIG_ENDIAN  1
+#define        BITS_PER_WORD           32
+#define        BITS_PER_WORD           32
+// #define     MAX_BITS_PER_WORD       // defaults to BITS_PER_WORD
+// #define     MAX_BITS_PER_WORD       // defaults to BITS_PER_WORD
+#define        UNITS_PER_WORD          1       // Storage units in a word, pwr of 2:1-8
+#define        UNITS_PER_WORD          1       // Storage units in a word, pwr of 2:1-8
+#define        MIN_UNITS_PER_WORD      1       // Default is UNITS_PER_WORD
+#define        MIN_UNITS_PER_WORD      1       // Default is UNITS_PER_WORD
+/* POINTER_SIZE ... Width of a pointer in bits.  You must specify a value no
+/* POINTER_SIZE ... Width of a pointer in bits.  You must specify a value no
+ * wider than the width of Pmode.  If it is not equal to the width of Pmode,
+ * wider than the width of Pmode.  If it is not equal to the width of Pmode,
+ * you must define POINTERS_EXTEND_UNSIGNED. If you do not specify a value the
+ * you must define POINTERS_EXTEND_UNSIGNED. If you do not specify a value the
+ * default is BITS_PER_WORD.
+ * default is BITS_PER_WORD.
+ *
+ *
+ * ZipCPU --- All of our pointers are 32-bits, the width of our address bus.
+ * ZipCPU --- All of our pointers are 32-bits, the width of our address bus.
+ */
+ */
+#define        POINTER_SIZE            32      // Ptr width in bits
+#define        POINTER_SIZE            32      // Ptr width in bits
+/* POINTERS_EXTEND_UNSIGNED ... A C expression that determines how pointers
+/* POINTERS_EXTEND_UNSIGNED ... A C expression that determines how pointers
+ * should be extended from ptr_mode to either Pmode or word_mode.  It is greater
+ * should be extended from ptr_mode to either Pmode or word_mode.  It is greater
+ * than zero if pointers should be zero-extended, zero if they should be sign
+ * than zero if pointers should be zero-extended, zero if they should be sign
+ * extended, and negative if some other conversion is needed.  In the last case,
+ * extended, and negative if some other conversion is needed.  In the last case,
+ * the extension is done by the target's ptr_extend instruction.
+ * the extension is done by the target's ptr_extend instruction.
+ *
+ *
+ * You need not define this macro if the ptr_mode, Pmode, and word_mode are all
+ * You need not define this macro if the ptr_mode, Pmode, and word_mode are all
+ * the same width.
+ * the same width.
+ *
+ *
+ * ZipCPU --- While we shouldn't need this, QImode and HImode have the same
+ * ZipCPU --- While we shouldn't need this, QImode and HImode have the same
+ * number of bits as SImode.  Therefore, one might wish to convert between the
+ * number of bits as SImode.  Therefore, one might wish to convert between the
+ * two.  Hence, we specify how we would do that here.
+ * two.  Hence, we specify how we would do that here.
+ */
+ */
+#define        POINTERS_EXTEND_UNSIGNED        0
+#define        POINTERS_EXTEND_UNSIGNED        0
+
+
+/* PROMOTE_MODE(m,unsignedp,type) ... A macro to update m and unsignedp when an
+/* PROMOTE_MODE(m,unsignedp,type) ... A macro to update m and unsignedp when an
+ * object whose type is type and which has he specified mode and signedness is
+ * object whose type is type and which has he specified mode and signedness is
+ * to be stored in a register.  This macro is only called when type is a scalar
+ * to be stored in a register.  This macro is only called when type is a scalar
+ * type.
+ * type.
+ *
+ *
+ * On most RISC machines, which only have operations that operate on a full
+ * On most RISC machines, which only have operations that operate on a full
+ * register, define this macro to set m to word_mode if m is an integer mode
+ * register, define this macro to set m to word_mode if m is an integer mode
+ * narrower than BITS_PER_WORD.  In most cases, only integer modes should be
+ * narrower than BITS_PER_WORD.  In most cases, only integer modes should be
+ * widened because wider precision floating-point operations are usually more
+ * widened because wider precision floating-point operations are usually more
+ * expensive than their narrower counterparts.
+ * expensive than their narrower counterparts.
+ *
+ *
+ * For most machines, the macro definition does not change unsigndep.  However,
+ * For most machines, the macro definition does not change unsigndep.  However,
+ * some machines, have instructions that preferentially handle either signed or
+ * some machines, have instructions that preferentially handle either signed or
+ * unsigned quantities of certain modes.  For example, on the DEC Alpha, 32-bit
+ * unsigned quantities of certain modes.  For example, on the DEC Alpha, 32-bit
+ * loads from memory and 32-bit add instructions sign-extend the result to
+ * loads from memory and 32-bit add instructions sign-extend the result to
+ * 64-bits. On such machines, set unsignedp according to which kind of extension
+ * 64-bits. On such machines, set unsignedp according to which kind of extension
+ * is more efficient.
+ * is more efficient.
+ *
+ *
+ * Do not define this macro if it would never modify m.
+ * Do not define this macro if it would never modify m.
+ *
+ *
+ * ZipCPU --- We need to always (if possible) promote everything to SImode where
+ * ZipCPU --- We need to always (if possible) promote everything to SImode where
+ * we can handle things.  HImode and QImode just don't make sense on this CPU.
+ * we can handle things.  HImode and QImode just don't make sense on this CPU.
+ */
+ */
+#define        PROMOTE_MODE(M,U,T)     if ((GET_MODE_CLASS(M)==MODE_INT)&&(GET_MODE_SIZE(M)<2)) (M)=SImode;
+#define        PROMOTE_MODE(M,U,T)     if ((GET_MODE_CLASS(M)==MODE_INT)&&(GET_MODE_SIZE(M)<2)) (M)=SImode;
+
+
+// TARGET_PROMOTE_FUNCTION_MODE
+// TARGET_PROMOTE_FUNCTION_MODE
+/* PARM_BOUNDARY ... Normal alignment required for function parameters on the
+/* PARM_BOUNDARY ... Normal alignment required for function parameters on the
+ * stack, in bits.  All stack parameters receive at least this much alignment
+ * stack, in bits.  All stack parameters receive at least this much alignment
+ * regardless of data type.  On most machines, this is the same as the size of
+ * regardless of data type.  On most machines, this is the same as the size of
+ * an integer.
+ * an integer.
+ */
+ */
+#define        PARM_BOUNDARY   32
+#define        PARM_BOUNDARY   32
+
+
+/* STACK_BOUNDARY ... Define this macro to the minimum alignment enforced by
+/* STACK_BOUNDARY ... Define this macro to the minimum alignment enforced by
+ * hardware for the stack pointer on this machine.  The definition is a C
+ * hardware for the stack pointer on this machine.  The definition is a C
+ * expression for the desired alignment (measured in bits).  This value is used
+ * expression for the desired alignment (measured in bits).  This value is used
+ * as a default if PREFERRED_STACK_BOUNDARY is not defined.  On most machines,
+ * as a default if PREFERRED_STACK_BOUNDARY is not defined.  On most machines,
+ * this should be the same as PARM_BOUNDARY.
+ * this should be the same as PARM_BOUNDARY.
+ */
+ */
+#define        STACK_BOUNDARY  PARM_BOUNDARY
+#define        STACK_BOUNDARY  PARM_BOUNDARY
+
+
+/* PREFERRED_STACK_BOUNDARY ... Define this ... */
+/* PREFERRED_STACK_BOUNDARY ... Define this ... */
+
+
+/* INCOMING_STACK_BOUNDARY
+/* INCOMING_STACK_BOUNDARY
+ */
+ */
+
+
+/* FUNCTION_BOUNDARY ... Alignment required for a function entry point, in bits.
+/* FUNCTION_BOUNDARY ... Alignment required for a function entry point, in bits.
+ */
+ */
+#define        FUNCTION_BOUNDARY       32
+#define        FUNCTION_BOUNDARY       32
+
+
+/* BIGGEST_ALIGNMENT ... Biggest alignment that any data type can require on
+/* BIGGEST_ALIGNMENT ... Biggest alignment that any data type can require on
+ * this machine, in bits.  Note that this is not the biggest alignment that is
+ * this machine, in bits.  Note that this is not the biggest alignment that is
+ * supported, just the biggest alignment that, when violated, may cause a fault.
+ * supported, just the biggest alignment that, when violated, may cause a fault.
+ */
+ */
+#define BIGGEST_ALIGNMENT      32
+#define BIGGEST_ALIGNMENT      32
+
+
+/* MINIMUM_ATOMIC_ALIGNMENT ... If defined, the smallest alignment, that can be
+/* MINIMUM_ATOMIC_ALIGNMENT ... If defined, the smallest alignment, that can be
+ * given to an object that can be referenced in one operation, without
+ * given to an object that can be referenced in one operation, without
+ * disturbing any nearby object.  Normally, this is BITS_PER_UNIT, but may be
+ * disturbing any nearby object.  Normally, this is BITS_PER_UNIT, but may be
+ * larger on machines that don't have byte or halfword store operations.
+ * larger on machines that don't have byte or halfword store operations.
+ */
+ */
+#define        MINIMUM_ATOMIC_ALIGNMENT        BITS_PER_UNIT
+#define        MINIMUM_ATOMIC_ALIGNMENT        BITS_PER_UNIT
+
+
+/* STRICT_ALIGNMENT ... Set this nonzero if move instructions will actually
+/* STRICT_ALIGNMENT ... Set this nonzero if move instructions will actually
+ * fail to work when given unaligned data.  If instructions will merely go
+ * fail to work when given unaligned data.  If instructions will merely go
+ * slower in that case, define this macro as 0.
+ * slower in that case, define this macro as 0.
+ */
+ */
+#define        STRICT_ALIGNMENT        1
+#define        STRICT_ALIGNMENT        1
+
+
+/* MAX_FIXED_MODE_SIZE ... An integer expression for the size in bits of the
+/* MAX_FIXED_MODE_SIZE ... An integer expression for the size in bits of the
+ * largest integer machine mode that should actually be used.  All integer
+ * largest integer machine mode that should actually be used.  All integer
+ * machine modes of this size or smaller can be used for structures and unions
+ * machine modes of this size or smaller can be used for structures and unions
+ * with the appropriate sizes.  If this macro is undefined,
+ * with the appropriate sizes.  If this macro is undefined,
+ * GET_MODE_BITSIZE(DImode) is assumed.
+ * GET_MODE_BITSIZE(DImode) is assumed.
+ *
+ *
+ * ZipCPU ... Get_MOD_BITSIZE(DImode) will be 64, and this is really not the
+ * ZipCPU ... Get_MOD_BITSIZE(DImode) will be 64, and this is really not the
+ * size on bits of the largest integer machine mode.  However, that's the case
+ * size on bits of the largest integer machine mode.  However, that's the case
+ * with most DI implementations: A long is two words, spliced together.  We'd
+ * with most DI implementations: A long is two words, spliced together.  We'd
+ * like to support that eventually, but we need to get there.  Hence, let's use
+ * like to support that eventually, but we need to get there.  Hence, let's use
+ * compile time flag (ZIP_HAS_DI) that we can enable when we're ready.
+ * compile time flag (ZIP_HAS_DI) that we can enable when we're ready.
+ */
+ */
+#if (ZIP_HAS_DI != 0)
+#if (ZIP_HAS_DI != 0)
+#define        MAX_FIXED_MODE_SIZE     64
+#define        MAX_FIXED_MODE_SIZE     64
+#else
+#else
+#define        MAX_FIXED_MODE_SIZE     32
+#define        MAX_FIXED_MODE_SIZE     32
+#endif
+#endif
+
+
+
+
+/* 17.06 Layout of Source Language Data Types */
+/* 17.06 Layout of Source Language Data Types */
+
+
+#undef CHAR_TYPE_SIZE
+#undef CHAR_TYPE_SIZE
+#undef SHORT_TYPE_SIZE
+#undef SHORT_TYPE_SIZE
+#undef INT_TYPE_SIZE
+#undef INT_TYPE_SIZE
+#undef LONG_TYPE_SIZE
+#undef LONG_TYPE_SIZE
+#undef LONG_LONG_TYPE_SIZE
+#undef LONG_LONG_TYPE_SIZE
+//
+//
+#define        CHAR_TYPE_SIZE  32
+#define        CHAR_TYPE_SIZE  32
+#define        SHORT_TYPE_SIZE 32
+#define        SHORT_TYPE_SIZE 32
+#define        INT_TYPE_SIZE   32
+#define        INT_TYPE_SIZE   32
+#define        LONG_TYPE_SIZE  32
+#define        LONG_TYPE_SIZE  32
+#define        LONG_LONG_TYPE_SIZE     64
+#define        LONG_LONG_TYPE_SIZE     64
+// BOOL_TYPE_SIZE defaults to CHAR_TYPE_SIZE
+// BOOL_TYPE_SIZE defaults to CHAR_TYPE_SIZE
+#undef FLOAT_TYPE_SIZE
+#undef FLOAT_TYPE_SIZE
+#undef DOUBLE_TYPE_SIZE
+#undef DOUBLE_TYPE_SIZE
+#undef LONG_DOUBLE_TYPE_SIZE
+#undef LONG_DOUBLE_TYPE_SIZE
+#define        FLOAT_TYPE_SIZE         32
+#define        FLOAT_TYPE_SIZE         32
+#define        DOUBLE_TYPE_SIZE        FLOAT_TYPE_SIZE // Zip CPU doesn't support dbls
+#define        DOUBLE_TYPE_SIZE        FLOAT_TYPE_SIZE // Zip CPU doesn't support dbls
+#define        LONG_DOUBLE_TYPE_SIZE   64      // This'll need to be done via emulation
+#define        LONG_DOUBLE_TYPE_SIZE   64      // This'll need to be done via emulation
+// SHORT_FRAC_TYPE_SIZE
+// SHORT_FRAC_TYPE_SIZE
+// LONG_FFRACT_TYPE_SIZE
+// LONG_FFRACT_TYPE_SIZE
+// LONG_LONG_FRACT_TIME_SIZE
+// LONG_LONG_FRACT_TIME_SIZE
+#undef SHORT_ACCUM_TYPE_SIZE
+#undef SHORT_ACCUM_TYPE_SIZE
+#undef ACCUM_TYPE_SIZE
+#undef ACCUM_TYPE_SIZE
+#undef LONG_ACCUM_TYPE_SIZE
+#undef LONG_ACCUM_TYPE_SIZE
+#define        SHORT_ACCUM_TYPE_SIZE   SHORT_TYPE_SIZE
+#define        SHORT_ACCUM_TYPE_SIZE   SHORT_TYPE_SIZE
+#define        ACCUM_TYPE_SIZE         INT_TYPE_SIZE
+#define        ACCUM_TYPE_SIZE         INT_TYPE_SIZE
+#define        LONG_ACCUM_TYPE_SIZE    LONG_TYPE_SIZE
+#define        LONG_ACCUM_TYPE_SIZE    LONG_TYPE_SIZE
+
+
+/* LIBGCC2_GNU_PREFIX ... This macro corresponds to the TARGET_GNU_PREFIX target
+/* LIBGCC2_GNU_PREFIX ... This macro corresponds to the TARGET_GNU_PREFIX target
+ * hook and should be defined if that hook is overriden to be true.  It causes
+ * hook and should be defined if that hook is overriden to be true.  It causes
+ * function names in libgcc to be changed to use a __gnu_ prefix for their name
+ * function names in libgcc to be changed to use a __gnu_ prefix for their name
+ * rather than the default __.  A port which uses this macro should also arrange
+ * rather than the default __.  A port which uses this macro should also arrange
+ * to use t-gnu-prefix in the libgcc config.host.
+ * to use t-gnu-prefix in the libgcc config.host.
+ *
+ *
+ * ZipCPU -- I see no reason to define and therefore change this behavior.
+ * ZipCPU -- I see no reason to define and therefore change this behavior.
+ */
+ */
+
+
+/* TARGET_FLT_EVAL_METHOD ... A C expression for the value for FLT_EVAL_METHOD
+/* TARGET_FLT_EVAL_METHOD ... A C expression for the value for FLT_EVAL_METHOD
+ * in float.h,, assuming, if applicable, that the floating-point control word
+ * in float.h,, assuming, if applicable, that the floating-point control word
+ * is in its default state.  If you do not define this macro the value of
+ * is in its default state.  If you do not define this macro the value of
+ * FLT_EVAL_METHOD will be zero.
+ * FLT_EVAL_METHOD will be zero.
+ *
+ *
+ * ZipCPU --- ???
+ * ZipCPU --- ???
+ */
+ */
+
+
+/* WIDEST_HARDWARE_FP_SIZE ... A C expression for the size in bits of the widest
+/* WIDEST_HARDWARE_FP_SIZE ... A C expression for the size in bits of the widest
+ * floating-point format supported by the hardware.  If you define this macro,
+ * floating-point format supported by the hardware.  If you define this macro,
+ * you must specify a value less than or equal to the value of LONG_DOUBLE_...
+ * you must specify a value less than or equal to the value of LONG_DOUBLE_...
+ * If you do not define this macro, the value of LONG_DOUBLE_TYPE_SIZE is the
+ * If you do not define this macro, the value of LONG_DOUBLE_TYPE_SIZE is the
+ * default.
+ * default.
+ *
+ *
+ * ZipCPU supports 32-bit IEEE floats--IF THE SUPPORT IS COMPILED IN!  This
+ * ZipCPU supports 32-bit IEEE floats--IF THE SUPPORT IS COMPILED IN!  This
+ * really needs to be determined, then, based upon a compile time parameter
+ * really needs to be determined, then, based upon a compile time parameter
+ * where the one compiling the code states whether or not the H/W even has
+ * where the one compiling the code states whether or not the H/W even has
+ * floating point support.
+ * floating point support.
+ *
+ *
+ * For now, we'll assume it does--but once we implement GCC parameters, we'll
+ * For now, we'll assume it does--but once we implement GCC parameters, we'll
+ * need to change this.
+ * need to change this.
+ */
+ */
+#undef WIDEST_HARDWARE_FP_SIZE
+#undef WIDEST_HARDWARE_FP_SIZE
+// #warning "Definition needs to change if no FPU present"
+// #warning "Definition needs to change if no FPU present"
+#define        WIDEST_HARDWARE_FP_SIZE FLOAT_TYPE_SIZE
+#define        WIDEST_HARDWARE_FP_SIZE FLOAT_TYPE_SIZE
+
+
+/* DEFAULT_SIGNED_CHAR ... An expression whose value is 1 or 0, according to
+/* DEFAULT_SIGNED_CHAR ... An expression whose value is 1 or 0, according to
+ * whether the type char should be signed or unsigned by default.  The user
+ * whether the type char should be signed or unsigned by default.  The user
+ * can always override this default with the options -fsigned-char and
+ * can always override this default with the options -fsigned-char and
+ * -funsigned-char.
+ * -funsigned-char.
+ *
+ *
+ * ZipCPU--let's go with the default behavior.
+ * ZipCPU--let's go with the default behavior.
+ */
+ */
+#define        DEFAULT_SIGNED_CHAR     1
+#define        DEFAULT_SIGNED_CHAR     1
+
+
+/* TARGET_DEFAULT_SHORT_ENUMS(VOID) ... This target hook should return true if
+/* TARGET_DEFAULT_SHORT_ENUMS(VOID) ... This target hook should return true if
+ * the compiler should give an enum type only as many bytes as it takes to
+ * the compiler should give an enum type only as many bytes as it takes to
+ * represent the range of possible values of that type.  It should return
+ * represent the range of possible values of that type.  It should return
+ * false if all enum types should be allocated like int.
+ * false if all enum types should be allocated like int.
+ *
+ *
+ * The default is to return false.  This is what the ZipCPU needs, so we won't
+ * The default is to return false.  This is what the ZipCPU needs, so we won't
+ * override it.
+ * override it.
+ */
+ */
+
+
+/* SIZE_TYPE ... A C expression for a string describing the name of the data
+/* SIZE_TYPE ... A C expression for a string describing the name of the data
+ * type to use for size values.  The typedef name size_t is defined using the
+ * type to use for size values.  The typedef name size_t is defined using the
+ * contents of the string.
+ * contents of the string.
+ *
+ *
+ * If you don't define this macro, the default is "long unsigned int".  Since
+ * If you don't define this macro, the default is "long unsigned int".  Since
+ * on the ZipCPU this is a 32-bit number, and all ZipCPU values are 32-bits,
+ * on the ZipCPU this is a 32-bit number, and all ZipCPU values are 32-bits,
+ * the default seems perfect for us.
+ * the default seems perfect for us.
+ */
+ */
+#define        SIZE_TYPE       "unsigned int"
+#define        SIZE_TYPE       "unsigned int"
+
+
+/* SIZETYPE ... GCC defines internal types () for expressions dealing with size.
+/* SIZETYPE ... GCC defines internal types () for expressions dealing with size.
+ * This macro is a C expression for a string describing the name of the data
+ * This macro is a C expression for a string describing the name of the data
+ * type from which the precision of sizetype is extracted.  The string has the
+ * type from which the precision of sizetype is extracted.  The string has the
+ * same restrictions as SIZE_TYPE string.  If you don't define this macro, the
+ * same restrictions as SIZE_TYPE string.  If you don't define this macro, the
+ * default is SIZE_TYPE --- which seems good enough for us.
+ * default is SIZE_TYPE --- which seems good enough for us.
+ */
+ */
+
+
+/* PTRDIFF_TYPE ... A C expression for a string describing the name of the data
+/* PTRDIFF_TYPE ... A C expression for a string describing the name of the data
+ * type to use fo rthe result of subtracting two pointers.  The typedef name
+ * type to use fo rthe result of subtracting two pointers.  The typedef name
+ * ptrdiff_t is defined using the contents of the string.  See SIZE_TYPE for
+ * ptrdiff_t is defined using the contents of the string.  See SIZE_TYPE for
+ * more information.
+ * more information.
+ *
+ *
+ * The default is "long int" which for the ZipCPU is 32-bits---still good enough
+ * The default is "long int" which for the ZipCPU is 32-bits---still good enough
+ * for us.
+ * for us.
+ */
+ */
+#define        PTRDIFF_TYPE    "int"
+#define        PTRDIFF_TYPE    "int"
+
+
+/* WCHAR_TYPE ... A C expression for a string describing the name of the data
+/* WCHAR_TYPE ... A C expression for a string describing the name of the data
+ * type to use for wide characters.  The typedef name wchar_t is defined using
+ * type to use for wide characters.  The typedef name wchar_t is defined using
+ * the contents of  the string.  If you don't define this macro, the default is
+ * the contents of  the string.  If you don't define this macro, the default is
+ * 'int'--good enough for ZipCPU.
+ * 'int'--good enough for ZipCPU.
+ */
+ */
+
+
+/* WCHAR_TYPE_SIZE ... A C expression for the size in bits of the data type for
+/* WCHAR_TYPE_SIZE ... A C expression for the size in bits of the data type for
+ * wide characters.  This is used in cpp, which cannot make use of WCHAR_TYPE.
+ * wide characters.  This is used in cpp, which cannot make use of WCHAR_TYPE.
+ */
+ */
+#undef WCHAR_TYPE_SIZE
+#undef WCHAR_TYPE_SIZE
+#define        WCHAR_TYPE_SIZE 32
+#define        WCHAR_TYPE_SIZE 32
+
+
+/* WINT_TYPE ... A C expression for a string describing the name of the data
+/* WINT_TYPE ... A C expression for a string describing the name of the data
+ * type to use for wide characters passed to printf and returned from getwc.
+ * type to use for wide characters passed to printf and returned from getwc.
+ * The typedef name wint_t is defined using the contents of the string.  See
+ * The typedef name wint_t is defined using the contents of the string.  See
+ *
+ *
+ * ZipCPU -- If you don't define this macro, the default is "unsigned int"--also
+ * ZipCPU -- If you don't define this macro, the default is "unsigned int"--also
+ * best for us again.
+ * best for us again.
+ */
+ */
+
+
+/* INTMAX_TYPE ... A C expression for a string describing the name of the
+/* INTMAX_TYPE ... A C expression for a string describing the name of the
+ * data type that can represent any value of any standard or extended signed
+ * data type that can represent any value of any standard or extended signed
+ * integer type.  The typedef name intmax_t is defined using the contents of
+ * integer type.  The typedef name intmax_t is defined using the contents of
+ * the string.
+ * the string.
+ *
+ *
+ * If you don't define this macro, the default is the first of "int", "long int"
+ * If you don't define this macro, the default is the first of "int", "long int"
+ * or "long long int" that has as much precision as "long long int".
+ * or "long long int" that has as much precision as "long long int".
+ */
+ */
+
+
+/* UINTMAX_TYPE ... same as INTMAX_TYPE, but for unsigned
+/* UINTMAX_TYPE ... same as INTMAX_TYPE, but for unsigned
+ */
+ */
+
+
+#undef SIG_ATOMIC_TYPE
+#undef SIG_ATOMIC_TYPE
+#if (ZIP_ATOMIC != 0)
+#if (ZIP_ATOMIC != 0)
+#define        SIG_ATOMIC_TYPE "int"
+#define        SIG_ATOMIC_TYPE "int"
+#else
+#else
+#define        SIG_ATOMIC_TYPE NULL    // We have no atomic types, but registers
+#define        SIG_ATOMIC_TYPE NULL    // We have no atomic types, but registers
+#endif
+#endif
+#undef INT8_TYPE
+#undef INT8_TYPE
+#define        INT8_TYPE               NULL    // We have no 8-bit integer type
+#define        INT8_TYPE               NULL    // We have no 8-bit integer type
+#undef INT16_TYPE
+#undef INT16_TYPE
+#define        INT16_TYPE              NULL
+#define        INT16_TYPE              NULL
+#undef INT32_TYPE
+#undef INT32_TYPE
+#define        INT32_TYPE              "int"
+#define        INT32_TYPE              "int"
+#undef UINT8_TYPE
+#undef UINT8_TYPE
+#define        UINT8_TYPE              NULL
+#define        UINT8_TYPE              NULL
+#undef UINT16_TYPE
+#undef UINT16_TYPE
+#define        UINT16_TYPE             NULL
+#define        UINT16_TYPE             NULL
+#undef UINT32_TYPE
+#undef UINT32_TYPE
+#define        UINT32_TYPE             "unsigned int"
+#define        UINT32_TYPE             "unsigned int"
+#undef INT_LEAST8_TYPE
+#undef INT_LEAST8_TYPE
+#define        INT_LEAST8_TYPE         "int"
+#define        INT_LEAST8_TYPE         "int"
+#undef INT_LEAST16_TYPE
+#undef INT_LEAST16_TYPE
+#define        INT_LEAST16_TYPE        "int"
+#define        INT_LEAST16_TYPE        "int"
+#undef INT_LEAST32_TYPE
+#undef INT_LEAST32_TYPE
+#define        INT_LEAST32_TYPE        "int"
+#define        INT_LEAST32_TYPE        "int"
+#undef UINT_LEAST8_TYPE
+#undef UINT_LEAST8_TYPE
+#define        UINT_LEAST8_TYPE        "unsigned int"
+#define        UINT_LEAST8_TYPE        "unsigned int"
+#undef UINT_LEAST16_TYPE
+#undef UINT_LEAST16_TYPE
+#define        UINT_LEAST16_TYPE       "unsigned int"
+#define        UINT_LEAST16_TYPE       "unsigned int"
+#undef UINT_LEAST32_TYPE
+#undef UINT_LEAST32_TYPE
+#define        UINT_LEAST32_TYPE       "unsigned int"
+#define        UINT_LEAST32_TYPE       "unsigned int"
+#undef INT_FAST8_TYPE
+#undef INT_FAST8_TYPE
+#define        INT_FAST8_TYPE          "int"
+#define        INT_FAST8_TYPE          "int"
+#undef INT_FAST16_TYPE
+#undef INT_FAST16_TYPE
+#define        INT_FAST16_TYPE         "int"
+#define        INT_FAST16_TYPE         "int"
+#undef INT_FAST32_TYPE
+#undef INT_FAST32_TYPE
+#define        INT_FAST32_TYPE         "int"
+#define        INT_FAST32_TYPE         "int"
+#undef UINT_FAST8_TYPE
+#undef UINT_FAST8_TYPE
+#define        UINT_FAST8_TYPE         "unsigned int"
+#define        UINT_FAST8_TYPE         "unsigned int"
+#undef UINT_FAST16_TYPE
+#undef UINT_FAST16_TYPE
+#define        UINT_FAST16_TYPE        "unsigned int"
+#define        UINT_FAST16_TYPE        "unsigned int"
+#undef UINT_FAST32_TYPE
+#undef UINT_FAST32_TYPE
+#define        UINT_FAST32_TYPE        "unsigned int"
+#define        UINT_FAST32_TYPE        "unsigned int"
+#undef INTPTR_TYPE
+#undef INTPTR_TYPE
+#define        INTPTR_TYPE             "unsigned int"
+#define        INTPTR_TYPE             "unsigned int"
+#undef UINTPTR_TYPE
+#undef UINTPTR_TYPE
+#define        UINTPTR_TYPE            "unsigned int"
+#define        UINTPTR_TYPE            "unsigned int"
+
+
+#undef INT64_TYPE
+#undef INT64_TYPE
+#undef UINT64_TYPE
+#undef UINT64_TYPE
+#undef INT_LEAST64_TYPE
+#undef INT_LEAST64_TYPE
+#undef UINT_LEAST64_TYPE
+#undef UINT_LEAST64_TYPE
+#undef INT_FAST64_TYPE
+#undef INT_FAST64_TYPE
+#undef UINT_FAST64_TYPE
+#undef UINT_FAST64_TYPE
+
+
+#if (ZIP_HAS_DI != 0)
+#if (ZIP_HAS_DI != 0)
+#define        INT64_TYPE              "long int"
+#define        INT64_TYPE              "long int"
+#define        UINT64_TYPE             "long unsigned int"
+#define        UINT64_TYPE             "long unsigned int"
+#define        INT_LEAST64_TYPE        "long int"
+#define        INT_LEAST64_TYPE        "long int"
+#define        UINT_LEAST64_TYPE       "long unsigned int"
+#define        UINT_LEAST64_TYPE       "long unsigned int"
+#define        INT_FAST64_TYPE         "long int"
+#define        INT_FAST64_TYPE         "long int"
+#define        UINT_FAST64_TYPE        "long unsigned int"
+#define        UINT_FAST64_TYPE        "long unsigned int"
+#else
+#else
+#define        INT64_TYPE              NULL
+#define        INT64_TYPE              NULL
+#define        UINT64_TYPE             NULL
+#define        UINT64_TYPE             NULL
+#define        INT_LEAST64_TYPE        NULL
+#define        INT_LEAST64_TYPE        NULL
+#define        UINT_LEAST64_TYPE       NULL
+#define        UINT_LEAST64_TYPE       NULL
+#define        INT_FAST64_TYPE         NULL
+#define        INT_FAST64_TYPE         NULL
+#define        UINT_FAST64_TYPE        NULL
+#define        UINT_FAST64_TYPE        NULL
+#endif
+#endif
+
+
+#define        TARGET_PTRMEMFUNC_VBI_LOCATION  ptrmemfunc_vbit_in_pfn
+#define        TARGET_PTRMEMFUNC_VBI_LOCATION  ptrmemfunc_vbit_in_pfn
+
+
+
+
+/* 17.07 Register Usage / Register definitions */
+/* 17.07 Register Usage / Register definitions */
+
+
+/* FIRST_PSEUDO_REGISTER ... Number of hardware registers known to the compiler.
+/* FIRST_PSEUDO_REGISTER ... Number of hardware registers known to the compiler.
+ * They receive numbers 0 through FIRST_PSEUDO_REGISTER-1; thus the first
+ * They receive numbers 0 through FIRST_PSEUDO_REGISTER-1; thus the first
+ * pseudo register's numbrer really is assigned the number
+ * pseudo register's numbrer really is assigned the number
+ * FIRST_PSEUDO_REGISTER.
+ * FIRST_PSEUDO_REGISTER.
+ *
+ *
+ * ZipCPU---There are 16 registers in the ZipCPU, numbered 0-15 with the CC
+ * ZipCPU---There are 16 registers in the ZipCPU, numbered 0-15 with the CC
+ * and PC register being numbered 14 and 15 respectively.  Therefore, the
+ * and PC register being numbered 14 and 15 respectively.  Therefore, the
+ * compiler can take register number 16 and above and do whatever it wants
+ * compiler can take register number 16 and above and do whatever it wants
+ * with it.
+ * with it.
+ */
+ */
+#ifdef DEFINE_USER_REGS
+#ifdef DEFINE_USER_REGS
+#  define      FIRST_PSEUDO_REGISTER   32
+#  define      FIRST_PSEUDO_REGISTER   32
+#else
+#else
+#  ifdef       zip_FP_PSEUDO
+#  ifdef       zip_FP_PSEUDO
+#    define    FIRST_PSEUDO_REGISTER   (zip_FP_PSEUDO+1)
+#    define    FIRST_PSEUDO_REGISTER   (zip_FP_PSEUDO+1)
+#  else
+#  else
+#    define    FIRST_PSEUDO_REGISTER   16
+#    define    FIRST_PSEUDO_REGISTER   16
+#  endif
+#  endif
+#endif
+#endif
+
+
+/* FIXED_REGISTERS ... An initializer that says which registers are used for
+/* FIXED_REGISTERS ... An initializer that says which registers are used for
+ * fixed purposes all throughout the compiled code and are therefore not
+ * fixed purposes all throughout the compiled code and are therefore not
+ * available for general allocation.  These would include the stack pointer, the
+ * available for general allocation.  These would include the stack pointer, the
+ * frame pointer (except on machines where that can be used as a general
+ * frame pointer (except on machines where that can be used as a general
+ * register when no frame pointer is needed), the program counter on machines
+ * register when no frame pointer is needed), the program counter on machines
+ * where that is considered one of the addressable registers, and any other
+ * where that is considered one of the addressable registers, and any other
+ * numbered register with a standard use.
+ * numbered register with a standard use.
+ *
+ *
+ * This information is expressed as a sequence of numbers, separated by commas,
+ * This information is expressed as a sequence of numbers, separated by commas,
+ * and surrounded by braces.  The nth number is 1 if register n is fixed, 0
+ * and surrounded by braces.  The nth number is 1 if register n is fixed, 0
+ * otherwise.
+ * otherwise.
+ *
+ *
+ * For the Zip CPU, we have three fixed registers that are not available for
+ * For the Zip CPU, we have three fixed registers that are not available for
+ * general allocation:
+ * general allocation:
+ *
+ *
+ *     SP      The stack pointer
+ *     SP      The stack pointer
+ *     CC      The condition codes and CPU state register
+ *     CC      The condition codes and CPU state register
+ *     PC      The program counter
+ *     PC      The program counter
+ *
+ *
+ * Other registers, such as FP (the frame pointer) or GBL (the global offset
+ * Other registers, such as FP (the frame pointer) or GBL (the global offset
+ * table pointer) are registers that we hope will not be so fixed.
+ * table pointer) are registers that we hope will not be so fixed.
+ */
+ */
+#ifdef zip_FP_PSEUDO
+#ifdef zip_FP_PSEUDO
+#  define      FIXED_REGISTERS         { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1 }
+#  define      FIXED_REGISTERS         { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1 }
+#else
+#else
+#  define      FIXED_REGISTERS         { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1 }
+#  define      FIXED_REGISTERS         { 0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1 }
+#endif
+#endif
+
+
+/* CALL_USED_REGISTERS ... like FIXED_REGISTERS but has 1 for each register
+/* CALL_USED_REGISTERS ... like FIXED_REGISTERS but has 1 for each register
+ * that is clobbered (in general) by function calls as well as for fixed
+ * that is clobbered (in general) by function calls as well as for fixed
+ * registers.  This macro therefore identifies the registers that are not
+ * registers.  This macro therefore identifies the registers that are not
+ * available for general allocation of values that must live across function
+ * available for general allocation of values that must live across function
+ * calls.
+ * calls.
+ *
+ *
+ * If a register has 0 in CALL_USED_REGISTERS, the compiler automatically saves
+ * If a register has 0 in CALL_USED_REGISTERS, the compiler automatically saves
+ * it on function entry and restores it on function exit, if the register is
+ * it on function entry and restores it on function exit, if the register is
+ * used within the function.
+ * used within the function.
+ *
+ *
+ * On the Zip CPU, we must save R0 (the return address), and (let's pick) any
+ * On the Zip CPU, we must save R0 (the return address), and (let's pick) any
+ * register above R5.
+ * register above R5.
+ */
+ */
+#ifdef zip_FP_PSEUDO
+#ifdef zip_FP_PSEUDO
+#  define      CALL_USED_REGISTERS     { 0,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1 }
+#  define      CALL_USED_REGISTERS     { 0,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1,1 }
+#else
+#else
+#  define      CALL_USED_REGISTERS     { 0,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1 }
+#  define      CALL_USED_REGISTERS     { 0,1,1,1,1,0,0,0,0,0,0,0,0,1,1,1 }
+#endif
+#endif
+
+
+/* CALL_REALLY_USED_REGISTERS ...  optional macro that, if not defined, defaults
+/* CALL_REALLY_USED_REGISTERS ...  optional macro that, if not defined, defaults
+ * to the value of CALL_USED_REGISTERS.
+ * to the value of CALL_USED_REGISTERS.
+ */
+ */
+
+
+/* HARD_REGNO_CALL_PART_CLOBBERED(REGNO,MODE) ... A C expression that is nonzero
+/* HARD_REGNO_CALL_PART_CLOBBERED(REGNO,MODE) ... A C expression that is nonzero
+ * if it is not permissible to store a value of mode MODE in hard register REGNO
+ * if it is not permissible to store a value of mode MODE in hard register REGNO
+ * across a call without some part of it being clobbbered.  For most machines,
+ * across a call without some part of it being clobbbered.  For most machines,
+ * this macro need not be defined.  It is only required for machines that do
+ * this macro need not be defined.  It is only required for machines that do
+ * not preserve the entire contents of a register across a call.
+ * not preserve the entire contents of a register across a call.
+ *
+ *
+ * In the Zip CPU, we clobber R0 with our return address during a call, so let's
+ * In the Zip CPU, we clobber R0 with our return address during a call, so let's
+ * make sure this gets included here.
+ * make sure this gets included here.
+ */
+ */
+#define        HARD_REGNO_CALL_PART_CLOBBERED(REGNO,MODE)      (REGNO==0)
+#define        HARD_REGNO_CALL_PART_CLOBBERED(REGNO,MODE)      (REGNO==0)
+
+
+/* TARGET_CONDITIONAL_REGISTER_USAGE(VOID) ... This hook may conditionally
+/* TARGET_CONDITIONAL_REGISTER_USAGE(VOID) ... This hook may conditionally
+ * modify five variables fixed_regs, call_used_regs, global_regs, reg_names, and
+ * modify five variables fixed_regs, call_used_regs, global_regs, reg_names, and
+ * reg_class_contents, to take into account any dependence of these register
+ * reg_class_contents, to take into account any dependence of these register
+ * sets on target flags.  The first three of these are of type char[]
+ * sets on target flags.  The first three of these are of type char[]
+ * (interpreted as Boolean vectors).  global_regs is a const char *[] and
+ * (interpreted as Boolean vectors).  global_regs is a const char *[] and
+ * reg_class_contents is a HARD_REG_SET.  Before the macro is called,
+ * reg_class_contents is a HARD_REG_SET.  Before the macro is called,
+ * fixed_regs, call_used_regs, reg_class_contents, and reg_names have been
+ * fixed_regs, call_used_regs, reg_class_contents, and reg_names have been
+ * initialized from FIXED_REGISTERS, CALL_USED_REGISTERS, REG_CLASS_CONTENTS,
+ * initialized from FIXED_REGISTERS, CALL_USED_REGISTERS, REG_CLASS_CONTENTS,
+ * and REGISTER_NAMES, respectively.  global_regs has been cleared, and any
+ * and REGISTER_NAMES, respectively.  global_regs has been cleared, and any
+ * -ffixed-reg, -fcall-used-reg, and -fcall-saved-reg command options have been
+ * -ffixed-reg, -fcall-used-reg, and -fcall-saved-reg command options have been
+ * applied.
+ * applied.
+ *
+ *
+ * ZipCPU -- I may need to return and define this depending upon how FP and
+ * ZipCPU -- I may need to return and define this depending upon how FP and
+ * GBL register allocation go.  But for now, we'll leave this at its default
+ * GBL register allocation go.  But for now, we'll leave this at its default
+ * value.
+ * value.
+ */
+ */
+// #warning "Revisit me after FP and GBL allocation"
+// #warning "Revisit me after FP and GBL allocation"
+
+
+/* INCOMING_REGNO(out) ... Define this macro if the target machine has register
+/* INCOMING_REGNO(out) ... Define this macro if the target machine has register
+ * windows. ...
+ * windows. ...
+ *
+ *
+ * Zip CPU has no register windows.
+ * Zip CPU has no register windows.
+ */
+ */
+
+
+/* OUTGOING_REGNO ... same thing.
+/* OUTGOING_REGNO ... same thing.
+ */
+ */
+
+
+/* LOCAL_REGNO ... same thing.
+/* LOCAL_REGNO ... same thing.
+ */
+ */
+
+
+/* PC_REGNUM ... If the program counter has a register number, define this as
+/* PC_REGNUM ... If the program counter has a register number, define this as
+ * that register number.  Otherwise do not define it.
+ * that register number.  Otherwise do not define it.
+ */
+ */
+#define        PC_REGNUM       zip_PC
+#define        PC_REGNUM       zip_PC
+
+
+
+
+/* REG_ALLOC_ORDER ... If defined, an initializer for a vector of integers,
+/* REG_ALLOC_ORDER ... If defined, an initializer for a vector of integers,
+ * containing the number of hard registers in the order in which GCC should
+ * containing the number of hard registers in the order in which GCC should
+ * prefer to use them (from most preferred to least.
+ * prefer to use them (from most preferred to least.
+ *
+ *
+ * If this macro is not defined, registers are used lowest numbered first (all
+ * If this macro is not defined, registers are used lowest numbered first (all
+ * else being equal).
+ * else being equal).
+ *
+ *
+ * Since the default is the ZipCPU desired case, we won't define this here.
+ * Since the default is the ZipCPU desired case, we won't define this here.
+ */
+ */
+
+
+/* ADJUST_REG_ALLOC_ORDER ... on most machines it is not necessary to define
+/* ADJUST_REG_ALLOC_ORDER ... on most machines it is not necessary to define
+ * this macro, so we won't either.
+ * this macro, so we won't either.
+ */
+ */
+
+
+/* HONOR_REG_ALLOC_ORDER ...
+/* HONOR_REG_ALLOC_ORDER ...
+ */
+ */
+
+
+/* HONOR_REG_ALLOC_ORDER ... on most machines it is not necessary to define
+/* HONOR_REG_ALLOC_ORDER ... on most machines it is not necessary to define
+ * this macro, so we won't either.
+ * this macro, so we won't either.
+ */
+ */
+
+
+/* HARD_REGNO_NREGS(REGNO, MODE) ... A C expression for the number of
+/* HARD_REGNO_NREGS(REGNO, MODE) ... A C expression for the number of
+ * consecutive hard registers, starting at register number REGNO, required to
+ * consecutive hard registers, starting at register number REGNO, required to
+ * hold a value of mode MODE.
+ * hold a value of mode MODE.
+ *
+ *
+ * On a machine where all registers are exactly one word, a suitable definition
+ * On a machine where all registers are exactly one word, a suitable definition
+ * is given of ((GET_MODE_SIZE(MODE)+UNITS_PER_WORD-1)/UNITS_PER_WORD.
+ * is given of ((GET_MODE_SIZE(MODE)+UNITS_PER_WORD-1)/UNITS_PER_WORD.
+ *
+ *
+ * On ZipCPU, we might do
+ * On ZipCPU, we might do
+ *     ((((MODE)==DImode)||((MODE)==DFmode))?2:1)
+ *     ((((MODE)==DImode)||((MODE)==DFmode))?2:1)
+ * but I think the default (above) code should work as well.  Hence, let's stick
+ * but I think the default (above) code should work as well.  Hence, let's stick
+ * with the default, lest someone try to create larger modes (TImode, OImode,
+ * with the default, lest someone try to create larger modes (TImode, OImode,
+ * XImode) and expect us to follow them properly some how.
+ * XImode) and expect us to follow them properly some how.
+ *
+ *
+ * Okay, now in hind sight, we know that the default doesn't work for our
+ * Okay, now in hind sight, we know that the default doesn't work for our
+ * architecture, since GET_MODE_SIZE(SImode)=4, not 1.  Thus, let's rearrange
+ * architecture, since GET_MODE_SIZE(SImode)=4, not 1.  Thus, let's rearrange
+ * this expression to work in bits rather than in bytes and we'll know more
+ * this expression to work in bits rather than in bytes and we'll know more
+ * of what we are doing.
+ * of what we are doing.
+ */
+ */
+#undef HARD_REGNO_NREGS
+#undef HARD_REGNO_NREGS
+#define        HARD_REGNO_NREGS(REGNO, MODE)   ((GET_MODE_SIZE(MODE)+UNITS_PER_WORD-1)\
+#define        HARD_REGNO_NREGS(REGNO, MODE)   ((GET_MODE_SIZE(MODE)+UNITS_PER_WORD-1)\
+               / (UNITS_PER_WORD))
+               / (UNITS_PER_WORD))
+
+
+/* HARD_REGNO_NREGS_HAS_PADDING(REGNO,MODE) ... A C expression that is nonzero
+/* HARD_REGNO_NREGS_HAS_PADDING(REGNO,MODE) ... A C expression that is nonzero
+ * if a value of mode MODE, stored in memory, ends with padding that causes it
+ * if a value of mode MODE, stored in memory, ends with padding that causes it
+ * to take up more space than in registers starting at register number REGNO
+ * to take up more space than in registers starting at register number REGNO
+ * (as determined by multiplying GCC's notion of the size of the register when
+ * (as determined by multiplying GCC's notion of the size of the register when
+ * containing this mode by the number of registers returned by HARD_REGNO_NREGS)
+ * containing this mode by the number of registers returned by HARD_REGNO_NREGS)
+ * By default this is zero.
+ * By default this is zero.
+ *
+ *
+ * Zip CPU --- The default looks good enough to me.
+ * Zip CPU --- The default looks good enough to me.
+ */
+ */
+
+
+/* HARD_REGNO_NREGS_WITH_PADDING(REGNO, MODE)
+/* HARD_REGNO_NREGS_WITH_PADDING(REGNO, MODE)
+ *
+ *
+ * ZipCPU ---
+ * ZipCPU ---
+ */
+ */
+
+
+/* REGMODE_NATURAL_SIZE(MODE) -- Define this macro if the natural size of
+/* REGMODE_NATURAL_SIZE(MODE) -- Define this macro if the natural size of
+ * registers that hold values of mode mode is not the word size.  It is a C
+ * registers that hold values of mode mode is not the word size.  It is a C
+ * expression that should give the natural size in bytes for the specified mode.
+ * expression that should give the natural size in bytes for the specified mode.
+ * It is used by the register allocator to try to optimize its results.
+ * It is used by the register allocator to try to optimize its results.
+ *
+ *
+ * ZipCPU ---
+ * ZipCPU ---
+ */
+ */
+// #define     REGMODE_NATURAL_SIZE(MODE)      (((MODE)==DImode)?2:1)
+// #define     REGMODE_NATURAL_SIZE(MODE)      (((MODE)==DImode)?2:1)
+
+
+/* HARD_REGNO_MODE_OK ... A C expression that is nonzero if it is permissible
+/* HARD_REGNO_MODE_OK ... A C expression that is nonzero if it is permissible
+ * to store a value of mode MODE in a hard register number REGNO (or in several
+ * to store a value of mode MODE in a hard register number REGNO (or in several
+ * registers starting with that one).  For a machine where all registers are
+ * registers starting with that one).  For a machine where all registers are
+ * equivalent, a suitable definition is '1'.  You need not include code to check
+ * equivalent, a suitable definition is '1'.  You need not include code to check
+ * for the numbers of fixed registers, because the allocation mechanism
+ * for the numbers of fixed registers, because the allocation mechanism
+ * considered them to be always occupied.
+ * considered them to be always occupied.
+ *
+ *
+ * ZipCPU --- As long as you are already avoiding the fixed registers, the
+ * ZipCPU --- As long as you are already avoiding the fixed registers, the
+ * suitable default definition mentioned above should be sufficient.
+ * suitable default definition mentioned above should be sufficient.
+ */
+ */
+#undef HARD_REGNO_MODE_OK
+#undef HARD_REGNO_MODE_OK
+#define        HARD_REGNO_MODE_OK(R,M) (R<zip_CC)
+#define        HARD_REGNO_MODE_OK(R,M) (R<zip_CC)
+
+
+/* HARD_REGNO_RENAME_OK(FROM,TO) ... A C expression that is nonzero if it is
+/* HARD_REGNO_RENAME_OK(FROM,TO) ... A C expression that is nonzero if it is
+ * okay to rename a hard register FROM to another hard register TO.  One common
+ * okay to rename a hard register FROM to another hard register TO.  One common
+ * use of this macro is to prevernt renaming of a register to another register
+ * use of this macro is to prevernt renaming of a register to another register
+ * that is not saved by a prologue in an interrupt handler.  The default is
+ * that is not saved by a prologue in an interrupt handler.  The default is
+ * always nonzero.
+ * always nonzero.
+ *
+ *
+ * ZipCPU --- The default looks good enough to us.
+ * ZipCPU --- The default looks good enough to us.
+ */
+ */
+#undef HARD_REGNO_RENAME_OK
+#undef HARD_REGNO_RENAME_OK
+#define        HARD_REGNO_RENAME_OK(FROM,TO)   ((is_ZIP_GENERAL_REG(FROM))&&(is_ZIP_GENERAL_REG(TO)))
+#define        HARD_REGNO_RENAME_OK(FROM,TO)   ((is_ZIP_GENERAL_REG(FROM))&&(is_ZIP_GENERAL_REG(TO)))
+
+
+
+
+/* MODES_TIABLE_P(M1, M2) ... A C expression that is nonzero if a value of mode
+/* MODES_TIABLE_P(M1, M2) ... A C expression that is nonzero if a value of mode
+ * M1 is accessible in mode M2 without copying.
+ * M1 is accessible in mode M2 without copying.
+ *
+ *
+ * ZipCPU --- well, that's true for us (although we support scant few modes) ...
+ * ZipCPU --- well, that's true for us (although we support scant few modes) ...
+ * so lets' set to one.
+ * so lets' set to one.
+ */
+ */
+#define        MODES_TIEABLE_P(M1,M2)  1
+#define        MODES_TIEABLE_P(M1,M2)  1
+
+
+/* TARGET_HARD_REGNO_SCRATCH_OK(REGNO)
+/* TARGET_HARD_REGNO_SCRATCH_OK(REGNO)
+ * This target hook should return true if it is OK to use a hard register
+ * This target hook should return true if it is OK to use a hard register
+ * REGNO has a scratch register in peephole2.  One common use of this macro is
+ * REGNO has a scratch register in peephole2.  One common use of this macro is
+ * to prevent using of a register that is not saved by a prologue in an
+ * to prevent using of a register that is not saved by a prologue in an
+ * interrupt handler.  The default version of this hook always returns true.
+ * interrupt handler.  The default version of this hook always returns true.
+ *
+ *
+ * ZipCPU --- the default works for us as well.  If you are in an interrupt
+ * ZipCPU --- the default works for us as well.  If you are in an interrupt
+ * context, you have an entirely new set of registers (the supervisor set), so
+ * context, you have an entirely new set of registers (the supervisor set), so
+ * this is a non-issue.
+ * this is a non-issue.
+ */
+ */
+
+
+/* AVOID_CCMODE_COPIES ... define this macro if the compiler should avoid
+/* AVOID_CCMODE_COPIES ... define this macro if the compiler should avoid
+ * copies to/from CCmode register(s).  You should only define this macro if
+ * copies to/from CCmode register(s).  You should only define this macro if