From b33ae46806c5931b82ab75650940369dedb50fb5 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 28 Dec 2020 09:26:07 -0500 Subject: [PATCH] pan/bi: Add bi_not alias of bi_neg For bitwise ops, we define .neg to mean .not to keep the IR manageable ("complement" more generally), but it's convenient to have specialized names. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/panfrost/bifrost/compiler.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/panfrost/bifrost/compiler.h b/src/panfrost/bifrost/compiler.h index c356004281a..a3430c150a8 100644 --- a/src/panfrost/bifrost/compiler.h +++ b/src/panfrost/bifrost/compiler.h @@ -520,6 +520,9 @@ bi_neg(bi_index idx) return idx; } +/* For bitwise instructions */ +#define bi_not(x) bi_neg(x) + static inline bi_index bi_imm_u8(uint8_t imm) {