Skip to content

Commit

Permalink
Add a test with a larger constant to cover adr+ldr path
Browse files Browse the repository at this point in the history
All other tests happen to fit into fmov.
  • Loading branch information
zeux committed Mar 12, 2024
1 parent f666594 commit 5d722d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/conformance/vector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 5d722d9

Please sign in to comment.