__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 },
};
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