Skip to content

Commit

Permalink
Rewrite mov.data test to include check for truncation (#244)
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <alan.jowett@microsoft.com>
Co-authored-by: Alan Jowett <alan.jowett@microsoft.com>
  • Loading branch information
Alan-Jowett and Alan Jowett committed May 8, 2024
1 parent cab932f commit 7c2ef8b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions tests/mov.data
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Copyright (c) Big Switch Networks, Inc
# SPDX-License-Identifier: Apache-2.0
# Copyright (c) Alan Jowett
# SPDX-License-Identifier: MIT
-- asm
mov32 %r1, 1
mov32 %r1, 2
mov32 %r0, %r1
mov32 %r0, %r0
jne %r0, 2, exit
lddw %r2, 0xFFFFFF00000002
mov32 %r0, %r2
jne %r0, 2, exit
mov32 %r0, 1
exit
-- result
0x1

0 comments on commit 7c2ef8b

Please sign in to comment.