From 8fbcbf76e2e1dfbfcbb685f8f2fedf8fd91cc5e4 Mon Sep 17 00:00:00 2001 From: "Jin,Zhonghui" Date: Thu, 1 Jun 2023 23:03:18 +0800 Subject: [PATCH] [Backport] 8264109: Add vectorized implementation for VectorMask.andNot() Summary: 8264109: Add vectorized implementation for VectorMask.andNot() Test Plan: ci jtreg Reviewed-by: JoshuaZhuwj Issue: https://github.com/dragonwell-project/dragonwell11/issues/601 --- .../share/classes/jdk/incubator/vector/AbstractMask.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/AbstractMask.java b/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/AbstractMask.java index 9bfcc22d0e6..f7b75f199f1 100644 --- a/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/AbstractMask.java +++ b/src/jdk.incubator.vector/share/classes/jdk/incubator/vector/AbstractMask.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2021, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -152,8 +152,7 @@ public VectorMask eq(VectorMask m) { @Override public VectorMask andNot(VectorMask m) { - // FIXME: Generate good code here. - return bOp(m, (i, a, b) -> a && !b); + return and(m.not()); } /*package-private*/