Skip to content

Commit

Permalink
Check for truncation in LE operations (#253)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <alanjo@microsoft.com>
  • Loading branch information
Alan-Jowett committed May 25, 2024
1 parent 47977d4 commit b8d35fc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/le16-high.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) Microsoft Corporation
# SPDX-License-Identifier: MIT
-- asm
ldxdw %r0, [%r1]
le16 %r0
exit
-- mem
22 11 00 FF EE DD CC BB AA
-- result
0x1122
10 changes: 10 additions & 0 deletions tests/le32-high.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) Microsoft Corporation
# SPDX-License-Identifier: MIT
-- asm
ldxw %r0, [%r1]
le32 %r0
exit
-- mem
44 33 22 11 00 FF EE DD
-- result
0x11223344

0 comments on commit b8d35fc

Please sign in to comment.