From cf95c228c3ba12d7cf723c2747c367dbdfb994ce Mon Sep 17 00:00:00 2001 From: Brice Dobry Date: Wed, 28 Jul 2021 11:51:40 -0400 Subject: [PATCH] Allow vector type arithmetic in verification --- src/mapleall/maple_ir/src/mir_nodes.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mapleall/maple_ir/src/mir_nodes.cpp b/src/mapleall/maple_ir/src/mir_nodes.cpp index e22c63debb..9bf2358138 100644 --- a/src/mapleall/maple_ir/src/mir_nodes.cpp +++ b/src/mapleall/maple_ir/src/mir_nodes.cpp @@ -1364,6 +1364,11 @@ bool ArithResTypeVerify(PrimType pTyp) { default: break; } + + // Arithmetic operations on all vector types are allowed + PrimitiveType PT(pTyp); + if (PT.IsVector()) return true; + return false; } -- Gitee