zuc: ppc64x, check r1 r2

This commit is contained in:
Sun Yimin 2024-10-03 13:45:17 +08:00 committed by GitHub
parent c8a9036abf
commit a193c5dec0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)