Skip to content

Commit

Permalink
zuc: ppc64x, check r1 r2
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun authored Oct 3, 2024
1 parent c8a9036 commit a193c5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zuc/core_ppc64x_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ func Test_genKeywordAsm_case1(t *testing.T) {
if z1 != 0x27bede74 {
t.Errorf("expected=%x, result=%x\n", 0x27bede74, z1)
}
if s.r1 != 0xc7ee7f13 {
t.Errorf("expected=%x, result=%x\n", 0xc7ee7f13, s.r1)
}
if s.r2 != 0xc0fa817 {
t.Errorf("expected=%x, result=%x\n", 0xc0fa817, s.r2)
}
z2 := genKeywordAsm(s)
if z2 != 0x018082da {
t.Errorf("expected=%x, result=%x\n", 0x018082da, z2)
Expand Down

0 comments on commit a193c5d

Please sign in to comment.