aboutsummaryrefslogtreecommitdiff
path: root/testes/db.lua
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-08-28 09:58:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-08-28 09:58:03 -0300
commit46b84580d6d7890f4ba813f312e52514fffc38a7 (patch)
tree764855657253d0b7d2a83c810d5f3bd3493c5ed1 /testes/db.lua
parentdf13f259487459f3a28d31d76c890aa6c2d061e0 (diff)
downloadlua-46b84580d6d7890f4ba813f312e52514fffc38a7.tar.gz
lua-46b84580d6d7890f4ba813f312e52514fffc38a7.tar.bz2
lua-46b84580d6d7890f4ba813f312e52514fffc38a7.zip
Use of 'MMBIN' opcodes extended to shift operators
Plus, this commit removes useless 'tm' parameters in 'op_*' macros.
Diffstat (limited to '')
-rw-r--r--testes/db.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/testes/db.lua b/testes/db.lua
index c43243a6..074a6d0b 100644
--- a/testes/db.lua
+++ b/testes/db.lua
@@ -806,8 +806,7 @@ assert(a+3 == "add" and 3-a == "sub" and a*3 == "mul" and
806 -a == "unm" and #a == "len" and a&3 == "band") 806 -a == "unm" and #a == "len" and a&3 == "band")
807assert(a + 30000 == "add" and a - 3.0 == "sub" and a * 3.0 == "mul" and 807assert(a + 30000 == "add" and a - 3.0 == "sub" and a * 3.0 == "mul" and
808 -a == "unm" and #a == "len" and a & 3 == "band") 808 -a == "unm" and #a == "len" and a & 3 == "band")
809assert(a|3 == "bor" and 3~a == "bxor" and a<<3 == "shift" and 809assert(a|3 == "bor" and 3~a == "bxor" and a<<3 == "shl" and a>>1 == "shr")
810 a>>1 == "shift")
811assert (a==b and a.op == "eq") 810assert (a==b and a.op == "eq")
812assert (a>=b and a.op == "order") 811assert (a>=b and a.op == "order")
813assert (a>b and a.op == "order") 812assert (a>b and a.op == "order")