Fix the assertions in cls-24byte (#652)
authorHood Chatham <hood@mit.edu>
Mon, 28 Jun 2021 14:24:19 +0000 (07:24 -0700)
committerGitHub <noreply@github.com>
Mon, 28 Jun 2021 14:24:19 +0000 (10:24 -0400)
* Fix the assertions in cls-24byte

* Update print statement too

testsuite/libffi.closures/cls_24byte.c

index 1d82f6e4a45bbc8878fb9eec6a63f91c429fb55c..78796da92dd92d8f7320cdee1e1914cecd3ce27a 100644 (file)
@@ -31,7 +31,7 @@ cls_struct_24byte cls_struct_24byte_fn(struct cls_struct_24byte b0,
         b0.a, b0.b, b0.c, b0.d,
         b1.a, b1.b, b1.c, b1.d,
         b2.a, b2.b, b2.c, b2.d,
-        b3.a, b3.b, b3.c, b2.d,
+        b3.a, b3.b, b3.c, b3.d,
         result.a, result.b, result.c, result.d);
 
   return result;
@@ -94,7 +94,7 @@ int main (void)
   args_dbl[4] = NULL;
 
   ffi_call(&cif, FFI_FN(cls_struct_24byte_fn), &res_dbl, args_dbl);
-  /* { dg-output "9 2 6 5 1 2 3 7 4 5 7 9 8 6 1 9: 22 15 17 25" } */
+  /* { dg-output "9 2 6 5 1 2 3 7 4 5 7 9 8 6 1 4: 22 15 17 25" } */
   printf("res: %g %g %d %g\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d);
   /* { dg-output "\nres: 22 15 17 25" } */
 
@@ -105,7 +105,7 @@ int main (void)
                                   cls_struct_24byte,
                                   cls_struct_24byte))
             (code))(e_dbl, f_dbl, g_dbl, h_dbl);
-  /* { dg-output "\n9 2 6 5 1 2 3 7 4 5 7 9 8 6 1 9: 22 15 17 25" } */
+  /* { dg-output "\n9 2 6 5 1 2 3 7 4 5 7 9 8 6 1 4: 22 15 17 25" } */
   printf("res: %g %g %d %g\n", res_dbl.a, res_dbl.b, res_dbl.c, res_dbl.d);
   /* { dg-output "\nres: 22 15 17 25" } */