diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-28 09:58:03 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-28 09:58:03 -0300 |
| commit | 46b84580d6d7890f4ba813f312e52514fffc38a7 (patch) | |
| tree | 764855657253d0b7d2a83c810d5f3bd3493c5ed1 /testes/db.lua | |
| parent | df13f259487459f3a28d31d76c890aa6c2d061e0 (diff) | |
| download | lua-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 'testes/db.lua')
| -rw-r--r-- | testes/db.lua | 3 |
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") |
| 807 | assert(a + 30000 == "add" and a - 3.0 == "sub" and a * 3.0 == "mul" and | 807 | assert(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") |
| 809 | assert(a|3 == "bor" and 3~a == "bxor" and a<<3 == "shift" and | 809 | assert(a|3 == "bor" and 3~a == "bxor" and a<<3 == "shl" and a>>1 == "shr") |
| 810 | a>>1 == "shift") | ||
| 811 | assert (a==b and a.op == "eq") | 810 | assert (a==b and a.op == "eq") |
| 812 | assert (a>=b and a.op == "order") | 811 | assert (a>=b and a.op == "order") |
| 813 | assert (a>b and a.op == "order") | 812 | assert (a>b and a.op == "order") |
