-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for sign extension extensions (#182)
As defined in https://www.ietf.org/archive/id/draft-ietf-bpf-isa-00.html#section-3.1 Fixes #152 Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
- Loading branch information
Showing
12 changed files
with
100 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
movsx1632 %r0, 0x89abcdef | ||
exit | ||
-- result | ||
0xffffcdef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
lddw %r1, 0x0123456789abcdef | ||
movsx1632 %r0, %r1 | ||
exit | ||
-- result | ||
0xffffcdef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
movsx1664 %r0, 0x89abcdef | ||
exit | ||
-- result | ||
0xffffffffffffcdef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
lddw %r1, 0x0123456789abcdef | ||
movsx1664 %r0, %r1 | ||
exit | ||
-- result | ||
0xffffffffffffcdef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
movsx3264 %r0, 0x89abcdef | ||
exit | ||
-- result | ||
0xffffffff89abcdef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
lddw %r1, 0x0123456789abcdef | ||
movsx3264 %r0, %r1 | ||
exit | ||
-- result | ||
0xffffffff89abcdef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
movsx832 %r0, 0x89abcdef | ||
exit | ||
-- result | ||
0xffffffef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
lddw %r1, 0x0123456789abcdef | ||
movsx832 %r0, %r1 | ||
exit | ||
-- result | ||
0xffffffef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
movsx864 %r0, 0x89abcdef | ||
exit | ||
-- result | ||
0xffffffffffffffef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) Big Switch Networks, Inc | ||
# SPDX-License-Identifier: Apache-2.0 | ||
-- asm | ||
lddw %r1, 0x0123456789abcdef | ||
movsx864 %r0, %r1 | ||
exit | ||
-- result | ||
0xffffffffffffffef |