From 45a20ab721a513710138340faff3d59a31c3e01e Mon Sep 17 00:00:00 2001 From: forsyth Date: Mon, 3 Jun 2013 21:01:14 +0000 Subject: sync compilers with Plan 9 remove 1[acl] 2[acl] --- utils/8c/machcap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/8c/machcap.c') 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; -- cgit v1.2.3