[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 02/10] target/mips: Fix block-comment-related issues
From: |
Aleksandar Markovic |
Subject: |
[Qemu-devel] [PULL 02/10] target/mips: Fix block-comment-related issues in msa_helper.c |
Date: |
Fri, 7 Jun 2019 12:05:36 +0200 |
From: Aleksandar Markovic <address@hidden>
Fix block-comment-related issues reported by checkpatch for file
msa_helper.c.
Signed-off-by: Aleksandar Markovic <address@hidden>
Reviewed-by: Aleksandar Rikalo <address@hidden>
Message-Id: <address@hidden>
---
target/mips/msa_helper.c | 42 +++++++++++++++++++++++++++---------------
1 file changed, 27 insertions(+), 15 deletions(-)
diff --git a/target/mips/msa_helper.c b/target/mips/msa_helper.c
index eacb5a4..851450c 100644
--- a/target/mips/msa_helper.c
+++ b/target/mips/msa_helper.c
@@ -1975,8 +1975,10 @@ static inline int update_msacsr(CPUMIPSState *env, int
action, int denormal)
c &= ~FP_UNDERFLOW;
}
- /* Reciprocal operations set only Inexact when valid and not
- divide by zero */
+ /*
+ * Reciprocal operations set only Inexact when valid and not
+ * divide by zero
+ */
if ((action & RECIPROCAL_INEXACT) &&
(c & (FP_INVALID | FP_DIV0)) == 0) {
c = FP_INEXACT;
@@ -1985,15 +1987,19 @@ static inline int update_msacsr(CPUMIPSState *env, int
action, int denormal)
cause = c & enable; /* all current enabled exceptions */
if (cause == 0) {
- /* No enabled exception, update the MSACSR Cause
- with all current exceptions */
+ /*
+ * No enabled exception, update the MSACSR Cause
+ * with all current exceptions
+ */
SET_FP_CAUSE(env->active_tc.msacsr,
(GET_FP_CAUSE(env->active_tc.msacsr) | c));
} else {
/* Current exceptions are enabled */
if ((env->active_tc.msacsr & MSACSR_NX_MASK) == 0) {
- /* Exception(s) will trap, update MSACSR Cause
- with all enabled exceptions */
+ /*
+ * Exception(s) will trap, update MSACSR Cause
+ * with all enabled exceptions
+ */
SET_FP_CAUSE(env->active_tc.msacsr,
(GET_FP_CAUSE(env->active_tc.msacsr) | c));
}
@@ -3059,9 +3065,11 @@ void helper_msa_fexdo_df(CPUMIPSState *env, uint32_t df,
uint32_t wd,
switch (df) {
case DF_WORD:
for (i = 0; i < DF_ELEMENTS(DF_WORD); i++) {
- /* Half precision floats come in two formats: standard
- IEEE and "ARM" format. The latter gains extra exponent
- range by omitting the NaN/Inf encodings. */
+ /*
+ * Half precision floats come in two formats: standard
+ * IEEE and "ARM" format. The latter gains extra exponent
+ * range by omitting the NaN/Inf encodings.
+ */
flag ieee = 1;
MSA_FLOAT_BINOP(Lh(pwx, i), from_float32, pws->w[i], ieee, 16);
@@ -3617,9 +3625,11 @@ void helper_msa_fexupl_df(CPUMIPSState *env, uint32_t
df, uint32_t wd,
switch (df) {
case DF_WORD:
for (i = 0; i < DF_ELEMENTS(DF_WORD); i++) {
- /* Half precision floats come in two formats: standard
- IEEE and "ARM" format. The latter gains extra exponent
- range by omitting the NaN/Inf encodings. */
+ /*
+ * Half precision floats come in two formats: standard
+ * IEEE and "ARM" format. The latter gains extra exponent
+ * range by omitting the NaN/Inf encodings.
+ */
flag ieee = 1;
MSA_FLOAT_BINOP(pwx->w[i], from_float16, Lh(pws, i), ieee, 32);
@@ -3651,9 +3661,11 @@ void helper_msa_fexupr_df(CPUMIPSState *env, uint32_t
df, uint32_t wd,
switch (df) {
case DF_WORD:
for (i = 0; i < DF_ELEMENTS(DF_WORD); i++) {
- /* Half precision floats come in two formats: standard
- IEEE and "ARM" format. The latter gains extra exponent
- range by omitting the NaN/Inf encodings. */
+ /*
+ * Half precision floats come in two formats: standard
+ * IEEE and "ARM" format. The latter gains extra exponent
+ * range by omitting the NaN/Inf encodings.
+ */
flag ieee = 1;
MSA_FLOAT_BINOP(pwx->w[i], from_float16, Rh(pws, i), ieee, 32);
--
2.7.4
- [Qemu-devel] [PULL 00/10] MIPS Queue for June 7th, 2019, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 10/10] tests/tcg: target/mips: Add README for MSA tests, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 05/10] tests/tcg: target/mips: Amend and rearrange MSA wrappers, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 04/10] target/mips: Unroll loops in helpers for MSA logic instructions, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 07/10] tests/tcg: target/mips: Move four tests to a better location, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 02/10] target/mips: Fix block-comment-related issues in msa_helper.c,
Aleksandar Markovic <=
- [Qemu-devel] [PULL 01/10] target/mips: Fix space-related format issues in msa_helper.c, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 03/10] target/mips: Outline places for future MSA helpers, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 09/10] tests/tcg: target/mips: Add tests for MSA FP max/min instructions, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 06/10] tests/tcg: target/mips: Add tests for MSA shift instructions, Aleksandar Markovic, 2019/06/07
- [Qemu-devel] [PULL 08/10] tests/tcg: target/mips: Add utility function reset_msa_registers(), Aleksandar Markovic, 2019/06/07
- Re: [Qemu-devel] [PULL 00/10] MIPS Queue for June 7th, 2019, Peter Maydell, 2019/06/07