]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Test LSB by Byte operation tests
authorCarl Love <cel@us.ibm.com>
Tue, 6 Oct 2020 17:05:03 +0000 (12:05 -0500)
committerCarl Love <cel@us.ibm.com>
Tue, 10 Nov 2020 01:03:20 +0000 (19:03 -0600)
none/tests/ppc64/test_isa_3_1_Misc.c
none/tests/ppc64/test_isa_3_1_Misc.stdout.exp

index 54db7e21bee8440faab3a47ab82c1ed7208bfdd0..78ca1534ae4fb48ffcad481c65c32e68d8d804ae 100644 (file)
@@ -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 },
 };
 
index 47b396aba5b35d9d189c4d651081992837d12904..71ab382edf5672116203ab23b086f936edc0b846 100644 (file)
@@ -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