]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-optimization/99856 - fix testcase
authorRichard Biener <rguenther@suse.de>
Fri, 4 Oct 2024 09:46:52 +0000 (11:46 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 4 Oct 2024 09:48:27 +0000 (11:48 +0200)
When making the testcase use aligned accesses I botched up the
copy&paste.  Fixed.

PR tree-optimization/99856
* gcc.dg/vect/pr99856.c: Fix copy&paste errors.

gcc/testsuite/gcc.dg/vect/pr99856.c

index e5d2a45be57f7b3eadf0860a23d93090c8ab048b..1ff20c7bc564255c548a24ce0ac706cdc4cd1371 100644 (file)
@@ -17,8 +17,8 @@ opSourceOver_premul(uint8_t* restrict Rrgba,
                     const uint8_t* restrict Drgba, int len)
 {
   Rrgba = __builtin_assume_aligned (Rrgba, __BIGGEST_ALIGNMENT__);
-  Srgba = __builtin_assume_aligned (Rrgba, __BIGGEST_ALIGNMENT__);
-  Drgba = __builtin_assume_aligned (Rrgba, __BIGGEST_ALIGNMENT__);
+  Srgba = __builtin_assume_aligned (Srgba, __BIGGEST_ALIGNMENT__);
+  Drgba = __builtin_assume_aligned (Drgba, __BIGGEST_ALIGNMENT__);
   int i = 0;
   for (; i < len*4; i += 4)
     {