aboutsummaryrefslogtreecommitdiff
path: root/gas/config/loongarch-parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'gas/config/loongarch-parse.y')
-rw-r--r--gas/config/loongarch-parse.y3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/loongarch-parse.y b/gas/config/loongarch-parse.y
index ac35dee..97055fe 100644
--- a/gas/config/loongarch-parse.y
+++ b/gas/config/loongarch-parse.y
@@ -225,6 +225,9 @@ emit_bin (int op)
opr1 = opr1 << opr2;
break;
case RIGHT_OP:
+ if (opr1 < 0)
+ as_warn(_("Right shift of negative numbers may be changed "
+ "from arithmetic right shift to logical right shift!"));
/* Algorithm right shift. */
opr1 = (offsetT)opr1 >> (offsetT)opr2;
break;