summary refs log tree commit diff stats
path: root/compiler/jsgen.nim
diff options
context:
space:
mode:
authorandri lim <jangko128@gmail.com>2018-08-07 23:41:30 +0700
committerAndreas Rumpf <rumpf_a@web.de>2018-08-07 18:41:30 +0200
commit4d5cce9882d554ada9cf737d63e40880d88ba170 (patch)
tree7c71118c55f00ff6542e047a751b2ad7af6cb71d /compiler/jsgen.nim
parent9b9cfa7306d696961cc6fd590ca72c08f66bdcb3 (diff)
downloadNim-4d5cce9882d554ada9cf737d63e40880d88ba170.tar.gz
fixes #6255, add `system.ashr` arithmetic right shift (#8547)
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r--compiler/jsgen.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index ef54841ae..63100a68d 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -379,6 +379,7 @@ const # magic checked op; magic unchecked op; checked op; unchecked op
     ["", "", "($1 / $2)", "($1 / $2)"], # DivF64
     ["", "", "", ""], # ShrI
     ["", "", "($1 << $2)", "($1 << $2)"], # ShlI
+    ["", "", "($1 >> $2)", "($1 >> $2)"], # AshrI
     ["", "", "($1 & $2)", "($1 & $2)"], # BitandI
     ["", "", "($1 | $2)", "($1 | $2)"], # BitorI
     ["", "", "($1 ^ $2)", "($1 ^ $2)"], # BitxorI