[hackers] [scc/qbe] [cc2-qbe] Add support for OADDR || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Wed, 17 Aug 2016 16:07:19 +0200 (CEST)

commit 8e6a3dc26f0f1ee374f29cccb901722f31070776
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Aug 17 15:53:51 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Aug 17 15:53:51 2016 +0200

    [cc2-qbe] Add support for OADDR
    
    In this case we only have to call to lhs() because
    we do not want to load the result of the operation.

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 522e2ed..681e09b 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -507,6 +507,8 @@ rhs(Node *np, Node *ret)
                 return rhs(np, ret);
         case OPTR:
                 return load(rhs(l, &aux1), ret);
+ case OADDR:
+ return lhs(l, ret);
         default:
                 abort();
         }
Received on Wed Aug 17 2016 - 16:07:19 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 17 2016 - 16:12:20 CEST