1/*
2 * RISC-V translation routines for the XVentanaCondOps extension.
3 *
4 * Copyright (c) 2021-2023 VRULL GmbH.
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License,
8 * version 2 or later, as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13 * more details.
14 *
15 * You should have received a copy of the GNU General Public License along with
16 * this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18
19static bool trans_vt_maskc(DisasContext *ctx, arg_r *a)
20{
21    return gen_logic(ctx, a, gen_czero_eqz);
22}
23
24static bool trans_vt_maskcn(DisasContext *ctx, arg_r *a)
25{
26    return gen_logic(ctx, a, gen_czero_nez);
27}
28