From: Carl Love Date: Tue, 6 Oct 2020 17:05:03 +0000 (-0500) Subject: Test LSB by Byte operation tests X-Git-Tag: VALGRIND_3_17_0~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e2fee61a090f8239c74e8e0fd6da44a8aaf2dc5;p=thirdparty%2Fvalgrind.git Test LSB by Byte operation tests --- diff --git a/none/tests/ppc64/test_isa_3_1_Misc.c b/none/tests/ppc64/test_isa_3_1_Misc.c index 54db7e21be..78ca1534ae 100644 --- a/none/tests/ppc64/test_isa_3_1_Misc.c +++ b/none/tests/ppc64/test_isa_3_1_Misc.c @@ -59,10 +59,16 @@ static void test_vcmpuq (void) { __asm__ __volatile__ ("vcmpuq 3, %0, %1" :: "v" (vra), "v" (vrb) ); GET_CR(current_cr); SET_CR_ZERO; } +static void test_xvtlsbb (void) { + SET_CR_ZERO; + __asm__ __volatile__ ("xvtlsbb 3, %x0" :: "wa" (vec_xb) ); + GET_CR(current_cr); SET_CR_ZERO; +} static test_list_t testgroup_generic[] = { { &test_vcmpsq, "vcmpsq", "BF,VRA,VRB"}, /* bcs */ { &test_vcmpuq, "vcmpuq", "BF,VRA,VRB"}, /* bcs */ + { &test_xvtlsbb, "xvtlsbb", "BF,XB"}, /* bcs */ { NULL, NULL }, }; diff --git a/none/tests/ppc64/test_isa_3_1_Misc.stdout.exp b/none/tests/ppc64/test_isa_3_1_Misc.stdout.exp index 47b396aba5..71ab382edf 100644 --- a/none/tests/ppc64/test_isa_3_1_Misc.stdout.exp +++ b/none/tests/ppc64/test_isa_3_1_Misc.stdout.exp @@ -338,4 +338,18 @@ vcmpuq 8000000000000000,7f800000ff800000 ffff000180000001,0000000000000000 => [0 vcmpuq 8000000000000000,7f800000ff800000 0000000000000000,8000000000000000 => [00080000] vcmpuq 8000000000000000,7f800000ff800000 8000000000000000,7f800000ff800000 => [00020000] -All done. Tested 2 different instruction groups +xvtlsbb 7e800000fe800000,fe8000007e800000 => [00020000] +xvtlsbb ff8101017f810101,ff7fffff7f7fffff => [00080000] +xvtlsbb ff7ffffe7f7ffffe,0080000e8080000e => [00000000] +xvtlsbb 0080000e8080000e,0080045e0080067e => [00020000] +xvtlsbb 0181055f0181077f,0101111f8101232f => [00080000] +xvtlsbb 0000111e8000222e,7ff0000000000000 => [00000000] +xvtlsbb 7ef0000000000000,fef0000000000000 => [00020000] +xvtlsbb fff1010101010101,2309410101010101 => [00080000] +xvtlsbb 2208400000000000,0000000000000009 => [00000000] +xvtlsbb 0000000000000008,fefe000080000000 => [00020000] +xvtlsbb ffff010181010101,0101010101010101 => [00080000] +xvtlsbb 0000000000000000,8000000000000000 => [00020000] +xvtlsbb 8000000000000000,7e800000fe800000 => [00020000] + +All done. Tested 3 different instruction groups