Skip to content

Commit 2a0110b

Browse files
author
sewardj
committed
Enable test cases for PMULL 1q,1d,1d and PMULL2 1q,2d,2d. n-i-bz.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15915 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 parent 176a9e7 commit 2a0110b

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

none/tests/arm64/fp_and_simd.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3104,8 +3104,8 @@ GEN_BINARY_TEST(pmul, 8b, 8b, 8b)
31043104

31053105
GEN_BINARY_TEST(pmull, 8h, 8b, 8b)
31063106
GEN_BINARY_TEST(pmull2, 8h, 16b, 16b)
3107-
//GEN_BINARY_TEST(pmull, 1q, 1d, 1d)
3108-
//GEN_BINARY_TEST(pmull, 1q, 2d, 2d)
3107+
GEN_BINARY_TEST(pmull, 1q, 1d, 1d)
3108+
GEN_BINARY_TEST(pmull2, 1q, 2d, 2d)
31093109

31103110
GEN_UNARY_TEST(rbit, 16b, 16b)
31113111
GEN_UNARY_TEST(rbit, 8b, 8b)
@@ -5791,11 +5791,10 @@ int main ( void )
57915791
if (1) test_pmul_16b_16b_16b(TyB);
57925792
if (1) test_pmul_8b_8b_8b(TyB);
57935793

5794-
// pmull{2} 8h_8b_8b,8h_16b_16b,1q_1d_1d,1q_2d_2d
5794+
// pmull{2} 8h_8b_8b,8h_16b_16b
5795+
// pmull{2} 1q_1d_1d,1q_2d_2d is in the crypto section below
57955796
if (1) test_pmull_8h_8b_8b(TyB);
57965797
if (1) test_pmull2_8h_16b_16b(TyB);
5797-
//if (0) test_pmull_1q_1d_1d(TyD);
5798-
//if (0) test_pmull_1q_2d_2d(TyD);
57995798

58005799
// rbit 16b,8b
58015800
// rev16 16b,8b
@@ -7412,7 +7411,11 @@ int main ( void )
74127411
if (1) DO50( test_sha256su0_4s_4s(TyNONE) );
74137412
if (1) DO50( test_sha256su1_4s_4s_4s(TyNONE) );
74147413

7415-
return 0;
7414+
// pmull{2} 1q_1d_1d,1q_2d_2d
7415+
if (1) test_pmull_1q_1d_1d(TyD);
7416+
if (1) test_pmull2_1q_2d_2d(TyD);
7417+
7418+
return 0;
74167419
}
74177420

74187421

none/tests/arm64/fp_and_simd.stdout.exp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29507,3 +29507,5 @@ sha256su1 v29.4s, v28.4s, v27.4s 0baf46374a31c31e9df304501f95581e 1d37b659946
2950729507
sha256su1 v29.4s, v28.4s, v27.4s eda7a9269a60e51084bf647b799a97f3 26cbe2af584fd72af3af1a0396bba5eb 45f0d4e0f3356206ee5c8e05444d7dd2 0d51d4db6f296e394e0c92188ac91c9a 26cbe2af584fd72af3af1a0396bba5eb 45f0d4e0f3356206ee5c8e05444d7dd2 fpsr=00000000
2950829508
sha256su1 v29.4s, v28.4s, v27.4s d35c419b47ed0f14b582787d24a48b1d cb4b6a89aee886e87d166c48ce1576d3 a1775cd45b4897e4ab0310a252c10b40 e58afd6aeeca7085aa4398a7fad36c4d cb4b6a89aee886e87d166c48ce1576d3 a1775cd45b4897e4ab0310a252c10b40 fpsr=00000000
2950929509
sha256su1 v29.4s, v28.4s, v27.4s c462740a142b655fb54f224a658ad94e 0f49b15b5a81270bacf4bb9612d6a622 b22a4a3fd02904c46211750661ad7ef1 1086338cba86b6677c44ef17b54e8d34 0f49b15b5a81270bacf4bb9612d6a622 b22a4a3fd02904c46211750661ad7ef1 fpsr=00000000
29510+
pmull v9.1q, v7.1d, v8.1d c24da4e7c56e0c25073948d77e1d233a f75a1d9a216edfc7045febe1a4d5d98a 001d7606b697893ced1721a29aea08a4 fpsr=00000000
29511+
pmull2 v9.1q, v7.2d, v8.2d cb8acfd884207d2a8de4b3b5e64f7f43 bd6c634aafa1f3630c23d386c401bb44 759bae09ccbf866ea596eb35c23576be fpsr=00000000

0 commit comments

Comments
 (0)