From 7a589027a771e00646c36bc09dde723c527a26bd Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Mon, 16 May 2011 01:38:41 -0700 Subject: [PATCH] [sim,xcc] change cond. mov inst format, add implementation --- riscv/insns/fmovn.h | 2 ++ riscv/insns/fmovz.h | 2 ++ riscv/insns/movn.h | 2 ++ riscv/insns/movz.h | 2 ++ 4 files changed, 8 insertions(+) diff --git a/riscv/insns/fmovn.h b/riscv/insns/fmovn.h index e69de29..394b56c 100644 --- a/riscv/insns/fmovn.h +++ b/riscv/insns/fmovn.h @@ -0,0 +1,2 @@ +require_vector; +if (RS1 & 0x1) FRD = FRS2; diff --git a/riscv/insns/fmovz.h b/riscv/insns/fmovz.h index e69de29..7862216 100644 --- a/riscv/insns/fmovz.h +++ b/riscv/insns/fmovz.h @@ -0,0 +1,2 @@ +require_vector; +if (~RS1 & 0x1) FRD = FRS2; diff --git a/riscv/insns/movn.h b/riscv/insns/movn.h index e69de29..402d6d3 100644 --- a/riscv/insns/movn.h +++ b/riscv/insns/movn.h @@ -0,0 +1,2 @@ +require_vector; +if (RS1 & 0x1) RD = RS2; diff --git a/riscv/insns/movz.h b/riscv/insns/movz.h index e69de29..74cf8a9 100644 --- a/riscv/insns/movz.h +++ b/riscv/insns/movz.h @@ -0,0 +1,2 @@ +require_vector; +if (~RS1 & 0x1) RD = RS2; -- 2.30.2