aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/nds32/nds32-md-auxiliary.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/nds32/nds32-md-auxiliary.c')
-rw-r--r--gcc/config/nds32/nds32-md-auxiliary.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/config/nds32/nds32-md-auxiliary.c b/gcc/config/nds32/nds32-md-auxiliary.c
index a9f930f..055a582 100644
--- a/gcc/config/nds32/nds32-md-auxiliary.c
+++ b/gcc/config/nds32/nds32-md-auxiliary.c
@@ -3304,12 +3304,12 @@ nds32_split_ashiftdi3 (rtx dst, rtx src, rtx shiftamount)
ext_start = gen_reg_rtx (SImode);
/*
- # In fact, we want to check shift amonut is great than or equal 32,
- # but in some corner case, the shift amount might be very large value,
- # however we've defined SHIFT_COUNT_TRUNCATED, so GCC think we've
- # handle that correctly without any truncate.
- # so check the the condition of (shiftamount & 32) is most
- # safe way to do.
+ # In fact, we want to check shift amount is greater than or equal to
+ # 32, but in some corner case, the shift amount might be very large
+ # value, however we've defined SHIFT_COUNT_TRUNCATED, so GCC thinks
+ # we've handled that correctly without any truncate.
+ # So checking the condition of (shiftamount & 32) is the safest
+ # way to do it.
if (shiftamount & 32)
dst_low_part = 0
dst_high_part = src_low_part << shiftamount & 0x1f