Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test to be backend agnostic by removing allocation specific co… #3869

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions testdata/p4_14_samples/saturated-bmv2.stf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Test saturating arithmetic
# Entries
add t 0 data.op:0x01 sat_plus()
add t 1 data.op:0x02 sat_minus()
add t 2 data.op:0x03 sat_add_to()
add t 3 data.op:0x04 sat_subtract_from()
add t data.op:0x01 sat_plus()
add t data.op:0x02 sat_minus()
add t data.op:0x03 sat_add_to()
add t data.op:0x04 sat_subtract_from()

# unsigned: 1 + 1 = 2
packet 0 01 01 01 00 0000 0000 0000
Expand All @@ -17,7 +17,7 @@ expect 0 02 02 01 01 0000 0000 0000
packet 0 01 fe 02 00 0000 0000 0000
expect 0 01 fe 02 ff 0000 0000 0000

# # unsigned: 8 - 10 = 0
# unsigned: 8 - 10 = 0
packet 0 02 08 0a aa 0000 0000 0000
expect 0 02 08 0a 00 0000 0000 0000

Expand Down