builtins-7-p9-runnable.c: Change first argument to vui_arg.
authorCarl Love <cel@us.ibm.com>
Wed, 6 Jun 2018 21:46:26 +0000 (21:46 +0000)
committerCarl Love <carll@gcc.gnu.org>
Wed, 6 Jun 2018 21:46:26 +0000 (21:46 +0000)
gcc/testsuite/ChangeLog:

2018-06-06  Carl Love  <cel@us.ibm.com>
* gcc.target/powerpc/builtins-7-p9-runnable.c: Change first
argument to vui_arg.

From-SVN: r261249

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/builtins-7-p9-runnable.c

index 41b78f28a285795ead0f21075441b879420d0978..f359ed9f3ee3759bfcfe2d428c8323c61e050729 100644 (file)
@@ -3,6 +3,10 @@
        PR fortran/85641
        * gfortran.dg/realloc_on_assign_30.f90: New test.
 
+2018-06-06  Carl Love  <cel@us.ibm.com>
+       * gcc.target/powerpc/builtins-7-p9-runnable.c: Change first
+       argument to vui_arg.
+
 2018-06-06  Carl Love  <cel@us.ibm.com>
 
        * gcc.target/powerpc/builtins-3.c: Move tests requiring -mvsx
index 137b46b052ae4e7ecfa12a353186001a56d897bb..f2773444f5280b92150dfd32ea23fe129c0f8a3a 100644 (file)
@@ -82,6 +82,7 @@ vext (vector unsigned char *vc)
 int main()
 {
    vector signed int vsi_arg;
+   vector unsigned int vui_arg;
    vector unsigned char vec_uc_arg, vec_uc_result, vec_uc_expected;
    vector unsigned long long vec_ull_result, vec_ull_expected;
    unsigned long long ull_result, ull_expected;
@@ -113,10 +114,12 @@ int main()
 
    /* insert into char 4 location */
    vec_uc_expected = (vector unsigned char){1, 2, 3, 4,
-                                           0xC, 0, 0, 0,
+                                           2, 0, 0, 0,
                                            9, 10, 11, 12,
                                            13, 14, 15, 16};
-   vec_uc_result = vec_insert4b (vsi_arg, vec_uc_arg, 4);
+   vui_arg = (vector unsigned int){0x4, 0x3, 0x2, 0x1};
+
+   vec_uc_result = vec_insert4b (vui_arg, vec_uc_arg, 4);
 
    if (result_wrong_uc(vec_uc_expected, vec_uc_result))
      {