mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-04 10:50:54 +01:00
Add a test with a larger constant to cover adr+ldr path
All other tests happen to fit into fmov.
This commit is contained in:
parent
f666594fb6
commit
5d722d9e14
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ assert(8 * vector(8, 16, 24) == vector(64, 128, 192));
|
|||
assert(vector(1, 2, 4) * '8' == vector(8, 16, 32));
|
||||
assert('8' * vector(8, 16, 24) == vector(64, 128, 192));
|
||||
|
||||
assert(vector(1, 2, 4) * 100 == vector(100, 200, 400))
|
||||
assert(100 * vector(1, 2, 4) == vector(100, 200, 400))
|
||||
|
||||
if vector_size == 4 then
|
||||
assert(vector(1, 2, 4, 8) / vector(8, 16, 24, 32) == vector(1/8, 2/16, 4/24, 8/32));
|
||||
assert(8 / vector(8, 16, 24, 32) == vector(1, 1/2, 1/3, 1/4));
|
||||
|
|
Loading…
Add table
Reference in a new issue