summary refs log tree commit diff stats
path: root/compiler/vmgen.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/vmgen.nim
parent9b9cfa7306d696961cc6fd590ca72c08f66bdcb3 (diff)
downloadNim-4d5cce9882d554ada9cf737d63e40880d88ba170.tar.gz
fixes #6255, add `system.ashr` arithmetic right shift (#8547)
Diffstat (limited to 'compiler/vmgen.nim')
-rw-r--r--compiler/vmgen.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 965c75485..a36f559ca 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -939,6 +939,7 @@ proc genMagic(c: PCtx; n: PNode; dest: var TDest; m: TMagic) =
     c.freeTemp(tmp2)
 
   of mShlI: genBinaryABCnarrowU(c, n, dest, opcShlInt)
+  of mAshrI: genBinaryABCnarrow(c, n, dest, opcAshrInt)
   of mBitandI: genBinaryABCnarrowU(c, n, dest, opcBitandInt)
   of mBitorI: genBinaryABCnarrowU(c, n, dest, opcBitorInt)
   of mBitxorI: genBinaryABCnarrowU(c, n, dest, opcBitxorInt)