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

From: <git_AT_suckless.org>
Date: Wed, 17 Aug 2016 14:29:50 +0200 (CEST)

commit 4ae110b13a59d434253ce9d39aa231e0a01fee8d
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Wed Aug 17 14:23:41 2016 +0200
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Wed Aug 17 14:29:26 2016 +0200

    [cc2-qbe] Add support for OPTR
    
    Take the content of a pointer.

diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c
index 287017a..3617e77 100644
--- a/cc2/arch/qbe/cgen.c
+++ b/cc2/arch/qbe/cgen.c
_AT_@ -504,6 +504,8 @@ rhs(Node *np, Node *ret)
                 return ternary(np, ret);
         case OCOMMA:
                 return rhs(np, ret);
+ case OPTR:
+ return load(rhs(l, &aux1), ret);
         default:
                 abort();
         }
Received on Wed Aug 17 2016 - 14:29:50 CEST

This archive was generated by hypermail 2.3.0 : Wed Aug 17 2016 - 14:37:00 CEST