Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Oct 30, 2024
1 parent 087156b commit 0167dd0
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions test-data/shift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1110,11 +1110,12 @@ test-case: check that unsigned right shift by 0 is idempotent - svalue out of ra

pre:
- r0.type=number
- r0.svalue=-8863041185711652825
- r0.uvalue=9583702887997898791
# This is 0x8000000000000000, which is out of range for a signed 64-bit number.
- r0.svalue=-9223372036854775808
- r0.uvalue=9223372036854775808
- r1.type=number
- r1.svalue=-8863041185711652825
- r1.uvalue=9583702887997898791
- r1.svalue=-9223372036854775808
- r1.uvalue=9223372036854775808

code:
<start>: |
Expand All @@ -1128,10 +1129,11 @@ code:
post:
- r0.type=number
- r0.uvalue=9583702887997898791
- r0.uvalue=9223372036854775808
# Note: The svalue gets havoced by the shift, so we can't check it.
- r1.type=number
- r1.svalue=-8863041185711652825
- r1.uvalue=9583702887997898791
- r1.svalue=-9223372036854775808
- r1.uvalue=9223372036854775808
- r0.uvalue=r1.uvalue
- r2.type=number
- r2.svalue=[0, 1]
Expand All @@ -1143,6 +1145,7 @@ test-case: check that unsigned right shift by 0 is idempotent - valid svalue

pre:
- r0.type=number
# This is 0x7fffffffffffffff, which is in range for a signed 64-bit number.
- r0.svalue=9223372036854775807
- r0.uvalue=9223372036854775807
- r1.type=number
Expand Down

0 comments on commit 0167dd0

Please sign in to comment.