summaryrefslogtreecommitdiff
path: root/utils/8c/machcap.c
diff options
context:
space:
mode:
authorforsyth <forsyth@lavoro.terzarima.net>2013-06-03 21:01:14 +0000
committerforsyth <forsyth@lavoro.terzarima.net>2013-06-03 21:01:14 +0000
commit45a20ab721a513710138340faff3d59a31c3e01e (patch)
treeeea29d2684c51cc73725b8992a2125bede48e118 /utils/8c/machcap.c
parentcd8e99851af33e52bcdf8faf34f9d4e62fa0cbaf (diff)
sync compilers with Plan 9
remove 1[acl] 2[acl]
Diffstat (limited to 'utils/8c/machcap.c')
-rw-r--r--utils/8c/machcap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/8c/machcap.c b/utils/8c/machcap.c
index 3a8831a7..1734e9c3 100644
--- a/utils/8c/machcap.c
+++ b/utils/8c/machcap.c
@@ -3,6 +3,7 @@
int
machcap(Node *n)
{
+// return 0;
if(n == Z)
return 1; /* test */
@@ -15,6 +16,8 @@ machcap(Node *n)
if(typechl[n->type->etype])
return 1;
if(typev[n->type->etype]) {
+// if(typev[n->type->etype] && n->right->op == OCONST) {
+// if(hi64v(n->right) == 0)
return 1;
}
break;
@@ -50,6 +53,7 @@ machcap(Node *n)
case OANDAND:
case OOROR:
case ONOT:
+ case ODOT:
return 1;
case OASADD:
@@ -80,6 +84,7 @@ machcap(Node *n)
case OHS:
case OLO:
case OLS:
+//print("%O\n", n->op);
return 1;
}
return 0;