diff -Nrcpad gcc-14-20250620/LAST_UPDATED gcc-14-20250627/LAST_UPDATED
*** gcc-14-20250620/LAST_UPDATED	Fri Jun 20 22:33:10 2025
--- gcc-14-20250627/LAST_UPDATED	Fri Jun 27 22:34:55 2025
***************
*** 1 ****
! Obtained from git: releases/gcc-14 revision 638e90e5e8000b6b6b320b02229310c63c441b9f
--- 1 ----
! Obtained from git: releases/gcc-14 revision 570b63276f6434df59c52da36b1581eb8b516762
diff -Nrcpad gcc-14-20250620/MD5SUMS gcc-14-20250627/MD5SUMS
*** gcc-14-20250620/MD5SUMS	Fri Jun 20 22:33:14 2025
--- gcc-14-20250627/MD5SUMS	Fri Jun 27 22:35:03 2025
***************
*** 1,5 ****
  # This file contains the MD5 checksums of the files in the
! # gcc-14-20250620.tar.xz tarball.
  #
  # Besides verifying that all files in the tarball were correctly expanded,
  # it also can be used to determine if any files have changed since the
--- 1,5 ----
  # This file contains the MD5 checksums of the files in the
! # gcc-14-20250627.tar.xz tarball.
  #
  # Besides verifying that all files in the tarball were correctly expanded,
  # it also can be used to determine if any files have changed since the
*************** fc9280b02bc68e4fb1ef8d51ccc25061  Change
*** 23,29 ****
  fd4ecdf5d672efe2b0e409aca9cf9446  ChangeLog.jit
  09538b708302f1735f6fa05b622ecf5e  ChangeLog.tree-ssa
  24ab760126489e69436a43185dc3d202  INSTALL/README
! 7c0b6bd66824f91fc311cadc4d76092c  LAST_UPDATED
  1671040823f8eb8436a06fdd18065e02  MAINTAINERS
  304c3887135aefa27c21292ec585b0a3  Makefile.def
  8dd93fbf2e32bcbd2faba10e3b8ba2b0  Makefile.in
--- 23,29 ----
  fd4ecdf5d672efe2b0e409aca9cf9446  ChangeLog.jit
  09538b708302f1735f6fa05b622ecf5e  ChangeLog.tree-ssa
  24ab760126489e69436a43185dc3d202  INSTALL/README
! df00f21b8d67c8453fecb1856e47eeb9  LAST_UPDATED
  1671040823f8eb8436a06fdd18065e02  MAINTAINERS
  304c3887135aefa27c21292ec585b0a3  Makefile.def
  8dd93fbf2e32bcbd2faba10e3b8ba2b0  Makefile.in
*************** bc7394806417778d77541ba1ec0e4a70  gcc/BA
*** 505,511 ****
  a916467b91076e631dd8edb7424769c7  gcc/COPYING.LIB
  d32239bcb673463ab874e80d47fae504  gcc/COPYING3
  6a6a8e020838b23406c81b19c1d46df6  gcc/COPYING3.LIB
! b6a070b8d726a08724c331da1ab8997d  gcc/ChangeLog
  a3b63c675afa7a655cc2bfa8a907af79  gcc/ChangeLog-1997
  d9a88529352a010253c2e8fb1ed6023b  gcc/ChangeLog-1998
  240f08f81cb4699e8b49347db38233db  gcc/ChangeLog-1999
--- 505,511 ----
  a916467b91076e631dd8edb7424769c7  gcc/COPYING.LIB
  d32239bcb673463ab874e80d47fae504  gcc/COPYING3
  6a6a8e020838b23406c81b19c1d46df6  gcc/COPYING3.LIB
! de2c9fd84800e6415ed7c8cc68b2e7c0  gcc/ChangeLog
  a3b63c675afa7a655cc2bfa8a907af79  gcc/ChangeLog-1997
  d9a88529352a010253c2e8fb1ed6023b  gcc/ChangeLog-1998
  240f08f81cb4699e8b49347db38233db  gcc/ChangeLog-1999
*************** fb3fadb88e1d2b3b640cfaaa5ff11780  gcc/Ch
*** 541,547 ****
  3eb07e0b2e542409bf73d359f7f65609  gcc/ChangeLog.ptr
  e13638e26743ba41e6011b76cc00d9a9  gcc/ChangeLog.tree-ssa
  739ab47f6425bcea1d05e4fc0542de54  gcc/ChangeLog.tuples
! 9a858dc7f623465d9424366d98e205bc  gcc/DATESTAMP
  d41d8cd98f00b204e9800998ecf8427e  gcc/DEV-PHASE
  eb92e1ff5e982ca07e173e0eb286d243  gcc/FSFChangeLog
  30e1e33411566388b3164558482dc5e6  gcc/FSFChangeLog.10
--- 541,547 ----
  3eb07e0b2e542409bf73d359f7f65609  gcc/ChangeLog.ptr
  e13638e26743ba41e6011b76cc00d9a9  gcc/ChangeLog.tree-ssa
  739ab47f6425bcea1d05e4fc0542de54  gcc/ChangeLog.tuples
! 01a102f10676af11b934be4b4814dd46  gcc/DATESTAMP
  d41d8cd98f00b204e9800998ecf8427e  gcc/DEV-PHASE
  eb92e1ff5e982ca07e173e0eb286d243  gcc/FSFChangeLog
  30e1e33411566388b3164558482dc5e6  gcc/FSFChangeLog.10
*************** fccc6d65638a2ce66ebc6b06766912c2  gcc/co
*** 4064,4070 ****
  89067df9b8c57e29603ffaca8dcc692b  gcc/config/i386/i386-rust.cc
  4f7ab8c57b3148a31d24838528313ef2  gcc/config/i386/i386-rust.h
  3c0ce201253936cd590e6ebe94b5e2fd  gcc/config/i386/i386.cc
! 7f4ed5a47861156413fe67f244f01a33  gcc/config/i386/i386.h
  85951c0188bf68d8d09c05f13999a98b  gcc/config/i386/i386.md
  85b5302c87709e4b2325868fe370b441  gcc/config/i386/i386.opt
  fb32c950c45e643174eb7c58d7f4218f  gcc/config/i386/i386.opt.urls
--- 4064,4070 ----
  89067df9b8c57e29603ffaca8dcc692b  gcc/config/i386/i386-rust.cc
  4f7ab8c57b3148a31d24838528313ef2  gcc/config/i386/i386-rust.h
  3c0ce201253936cd590e6ebe94b5e2fd  gcc/config/i386/i386.cc
! 84933ced281ed6b480d35f31fa9d5d18  gcc/config/i386/i386.h
  85951c0188bf68d8d09c05f13999a98b  gcc/config/i386/i386.md
  85b5302c87709e4b2325868fe370b441  gcc/config/i386/i386.opt
  fb32c950c45e643174eb7c58d7f4218f  gcc/config/i386/i386.opt.urls
*************** e9b8122841fbfbbc30fee8ed6613c399  gcc/do
*** 5793,5799 ****
  aa4d93313f9b7a5aec5b09041fd796a0  gcc/doc/install.texi
  2ef5aff8fc8a7cedf6236f86835e2608  gcc/doc/install.texi2html
  26c53e1edece23eebf72e40881f20e46  gcc/doc/interface.texi
! e89b8aad38e5d384f3f15b45de16bf53  gcc/doc/invoke.texi
  4eb965d8ead78f1e3757415ae4d7872f  gcc/doc/languages.texi
  d2687b47a74c0bb7a227308dc1e7ba84  gcc/doc/libgcc.texi
  1e7dce602334edeb2ec545b9da6e4206  gcc/doc/loop.texi
--- 5793,5799 ----
  aa4d93313f9b7a5aec5b09041fd796a0  gcc/doc/install.texi
  2ef5aff8fc8a7cedf6236f86835e2608  gcc/doc/install.texi2html
  26c53e1edece23eebf72e40881f20e46  gcc/doc/interface.texi
! 14517a863e196b284d6ec51e70d0f04b  gcc/doc/invoke.texi
  4eb965d8ead78f1e3757415ae4d7872f  gcc/doc/languages.texi
  d2687b47a74c0bb7a227308dc1e7ba84  gcc/doc/libgcc.texi
  1e7dce602334edeb2ec545b9da6e4206  gcc/doc/loop.texi
*************** c234572876f75890cc99027aed682b90  gcc/gi
*** 6057,6063 ****
  422023fc20fa277895b77d52f2183524  gcc/gimple-builder.h
  1ece622a98fd5bd127baa4493d2fb983  gcc/gimple-expr.cc
  0f70f2b47fe0c3ba8e84cdc0d8635964  gcc/gimple-expr.h
! 6c6ed63be1d13a2e29f2994f8c5b44c0  gcc/gimple-fold.cc
  0d56f593f441abaac17b0e32d153edde  gcc/gimple-fold.h
  2c9bf44778a0d4078822e0867f454d35  gcc/gimple-harden-conditionals.cc
  c7112787b043c022d8874ce63d5b7a10  gcc/gimple-harden-control-flow.cc
--- 6057,6063 ----
  422023fc20fa277895b77d52f2183524  gcc/gimple-builder.h
  1ece622a98fd5bd127baa4493d2fb983  gcc/gimple-expr.cc
  0f70f2b47fe0c3ba8e84cdc0d8635964  gcc/gimple-expr.h
! 2a700df921835720f3e560c1fe77aeeb  gcc/gimple-fold.cc
  0d56f593f441abaac17b0e32d153edde  gcc/gimple-fold.h
  2c9bf44778a0d4078822e0867f454d35  gcc/gimple-harden-conditionals.cc
  c7112787b043c022d8874ce63d5b7a10  gcc/gimple-harden-control-flow.cc
*************** e8a9eb01b9451a357155e7152df1c669  gcc/ta
*** 8060,8066 ****
  a05663c52c607143c607d3ecf1391979  gcc/targhooks.cc
  51d240e574a3f9ecec346d64a04ac634  gcc/targhooks.h
  f39fcaa8197187283ccfed40107b426d  gcc/testsuite/.gitattributes
! 6983f2d39f1eae8171c754151dca9d79  gcc/testsuite/ChangeLog
  862f04afbd87da2cc6bc432c3f28430f  gcc/testsuite/ChangeLog-1993-2007
  029a5d8dacd25eb5d4711452ac448e5b  gcc/testsuite/ChangeLog-2008
  13ac28c41d51b66b4ec40dba6bd50f39  gcc/testsuite/ChangeLog-2009
--- 8060,8066 ----
  a05663c52c607143c607d3ecf1391979  gcc/targhooks.cc
  51d240e574a3f9ecec346d64a04ac634  gcc/targhooks.h
  f39fcaa8197187283ccfed40107b426d  gcc/testsuite/.gitattributes
! b9f96527f945a713efcb2fa3094c56b4  gcc/testsuite/ChangeLog
  862f04afbd87da2cc6bc432c3f28430f  gcc/testsuite/ChangeLog-1993-2007
  029a5d8dacd25eb5d4711452ac448e5b  gcc/testsuite/ChangeLog-2008
  13ac28c41d51b66b4ec40dba6bd50f39  gcc/testsuite/ChangeLog-2009
*************** fd304d08c4ca43544588bd14358a9c0a  gcc/te
*** 105489,105494 ****
--- 105489,105495 ----
  6c87692ce5565e68f354b3b1cb842c39  gcc/testsuite/gnat.dg/sso18.adb
  ff784f7bca69d0717e740273960b0387  gcc/testsuite/gnat.dg/sso2.adb
  ccf43eb5df39869bb23ff9110d3b93cb  gcc/testsuite/gnat.dg/sso2.ads
+ 2ba1a49876e7f91ccde7f7d0288debb0  gcc/testsuite/gnat.dg/sso20.adb
  6fe64945c0d0238672cdece04341c316  gcc/testsuite/gnat.dg/sso3.adb
  cce4578d630a50acb2e3a4f2535af90b  gcc/testsuite/gnat.dg/sso4.adb
  6547028813699cf5a1bebf9380db3b22  gcc/testsuite/gnat.dg/sso5.adb
*************** a5f34e36dee1bef8e82d05d782b00345  gcc/tr
*** 110339,110345 ****
  de3b298cc003003bf8914ebfcdf63f2b  gcc/tree-ssa-propagate.h
  eaa57a5dab2e797feeaaf1676a886185  gcc/tree-ssa-reassoc.cc
  ea6d5ea2f3442b7c3f3a8b3356e827ca  gcc/tree-ssa-reassoc.h
! 009fec0008b91d8425ac246d68e9e62e  gcc/tree-ssa-sccvn.cc
  545f646c7c717bb603b5eb8e283f414d  gcc/tree-ssa-sccvn.h
  46d17810ce8ff6e8a1eebf89645eb941  gcc/tree-ssa-scopedtables.cc
  1da39bc41633a7721b894ea76af3f6ca  gcc/tree-ssa-scopedtables.h
--- 110340,110346 ----
  de3b298cc003003bf8914ebfcdf63f2b  gcc/tree-ssa-propagate.h
  eaa57a5dab2e797feeaaf1676a886185  gcc/tree-ssa-reassoc.cc
  ea6d5ea2f3442b7c3f3a8b3356e827ca  gcc/tree-ssa-reassoc.h
! ec3c346eb30676d123ae907bb9075bd0  gcc/tree-ssa-sccvn.cc
  545f646c7c717bb603b5eb8e283f414d  gcc/tree-ssa-sccvn.h
  46d17810ce8ff6e8a1eebf89645eb941  gcc/tree-ssa-scopedtables.cc
  1da39bc41633a7721b894ea76af3f6ca  gcc/tree-ssa-scopedtables.h
diff -Nrcpad gcc-14-20250620/gcc/ChangeLog gcc-14-20250627/gcc/ChangeLog
*** gcc-14-20250620/gcc/ChangeLog	Fri Jun 20 22:32:15 2025
--- gcc-14-20250627/gcc/ChangeLog	Fri Jun 27 22:32:21 2025
***************
*** 1,3 ****
--- 1,20 ----
+ 2025-06-25  Haochen Jiang  <haochen.jiang@intel.com>
+ 
+ 	* config/i386/i386.h (PTA_ALDERLAKE): Use PTA_GOLDMONT_PLUS
+ 	as base to remove PTA_CLDEMOTE.
+ 	(PTA_SIERRAFOREST): Add PTA_CLDEMOTE since PTA_ALDERLAKE
+ 	does not include that anymore.
+ 	* doc/invoke.texi: Update texi file.
+ 
+ 2025-06-20  Richard Biener  <rguenther@suse.de>
+ 
+ 	Backported from master:
+ 	2024-09-11  Richard Biener  <rguenther@suse.de>
+ 
+ 	PR tree-optimization/116674
+ 	* tree-vect-stmts.cc (vectorizable_simd_clone_call): Support
+ 	re-analysis.
+ 
  2025-06-19  Jakub Jelinek  <jakub@redhat.com>
  
  	Backported from master:
diff -Nrcpad gcc-14-20250620/gcc/DATESTAMP gcc-14-20250627/gcc/DATESTAMP
*** gcc-14-20250620/gcc/DATESTAMP	Fri Jun 20 22:32:16 2025
--- gcc-14-20250627/gcc/DATESTAMP	Fri Jun 27 22:32:22 2025
***************
*** 1 ****
! 20250620
--- 1 ----
! 20250627
diff -Nrcpad gcc-14-20250620/gcc/config/i386/i386.h gcc-14-20250627/gcc/config/i386/i386.h
*** gcc-14-20250620/gcc/config/i386/i386.h	Fri Jun 20 22:32:18 2025
--- gcc-14-20250627/gcc/config/i386/i386.h	Fri Jun 27 22:32:22 2025
*************** constexpr wide_int_bitmask PTA_GOLDMONT_
*** 2415,2426 ****
    | PTA_SGX | PTA_PTWRITE;
  constexpr wide_int_bitmask PTA_TREMONT = PTA_GOLDMONT_PLUS | PTA_CLWB
    | PTA_GFNI | PTA_MOVDIRI | PTA_MOVDIR64B | PTA_CLDEMOTE | PTA_WAITPKG;
! constexpr wide_int_bitmask PTA_ALDERLAKE = PTA_TREMONT | PTA_ADX | PTA_AVX
    | PTA_AVX2 | PTA_BMI | PTA_BMI2 | PTA_F16C | PTA_FMA | PTA_LZCNT
    | PTA_PCONFIG | PTA_PKU | PTA_VAES | PTA_VPCLMULQDQ | PTA_SERIALIZE
    | PTA_HRESET | PTA_KL | PTA_WIDEKL | PTA_AVXVNNI;
! constexpr wide_int_bitmask PTA_SIERRAFOREST = PTA_ALDERLAKE | PTA_AVXIFMA
!   | PTA_AVXVNNIINT8 | PTA_AVXNECONVERT | PTA_CMPCCXADD | PTA_ENQCMD | PTA_UINTR;
  constexpr wide_int_bitmask PTA_GRANITERAPIDS = PTA_SAPPHIRERAPIDS | PTA_AMX_FP16
    | PTA_PREFETCHI;
  constexpr wide_int_bitmask PTA_GRANITERAPIDS_D = PTA_GRANITERAPIDS
--- 2415,2428 ----
    | PTA_SGX | PTA_PTWRITE;
  constexpr wide_int_bitmask PTA_TREMONT = PTA_GOLDMONT_PLUS | PTA_CLWB
    | PTA_GFNI | PTA_MOVDIRI | PTA_MOVDIR64B | PTA_CLDEMOTE | PTA_WAITPKG;
! constexpr wide_int_bitmask PTA_ALDERLAKE = PTA_GOLDMONT_PLUS | PTA_CLWB
!   | PTA_GFNI | PTA_MOVDIRI | PTA_MOVDIR64B | PTA_WAITPKG | PTA_ADX | PTA_AVX
    | PTA_AVX2 | PTA_BMI | PTA_BMI2 | PTA_F16C | PTA_FMA | PTA_LZCNT
    | PTA_PCONFIG | PTA_PKU | PTA_VAES | PTA_VPCLMULQDQ | PTA_SERIALIZE
    | PTA_HRESET | PTA_KL | PTA_WIDEKL | PTA_AVXVNNI;
! constexpr wide_int_bitmask PTA_SIERRAFOREST = PTA_ALDERLAKE | PTA_CLDEMOTE
!   | PTA_AVXIFMA | PTA_AVXVNNIINT8 | PTA_AVXNECONVERT | PTA_CMPCCXADD
!   | PTA_ENQCMD | PTA_UINTR;
  constexpr wide_int_bitmask PTA_GRANITERAPIDS = PTA_SAPPHIRERAPIDS | PTA_AMX_FP16
    | PTA_PREFETCHI;
  constexpr wide_int_bitmask PTA_GRANITERAPIDS_D = PTA_GRANITERAPIDS
diff -Nrcpad gcc-14-20250620/gcc/doc/invoke.texi gcc-14-20250627/gcc/doc/invoke.texi
*** gcc-14-20250620/gcc/doc/invoke.texi	Fri Jun 20 22:32:19 2025
--- gcc-14-20250627/gcc/doc/invoke.texi	Fri Jun 27 22:32:23 2025
*************** VPCLMULQDQ, AVX512BITALG, RDPID and AVX5
*** 34514,34550 ****
  Intel Alder Lake/Raptor Lake/Meteor Lake/Gracemont CPU with 64-bit extensions,
  MOVBE, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW,
  PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX,
! GFNI-SSE, CLWB, MOVDIRI, MOVDIR64B, CLDEMOTE, WAITPKG, ADCX, AVX, AVX2, BMI,
! BMI2, F16C, FMA, LZCNT, PCONFIG, PKU, VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL,
! WIDEKL and AVX-VNNI instruction set support.
  
  @item arrowlake
  Intel Arrow Lake CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3,
  SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC,
  XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, GFNI-SSE, CLWB, MOVDIRI,
! MOVDIR64B, CLDEMOTE, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C, FMA, LZCNT,
! PCONFIG, PKU, VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL, WIDEKL, AVX-VNNI,
! UINTR, AVXIFMA, AVXVNNIINT8, AVXNECONVERT and CMPCCXADD instruction set
! support.
  
  @item arrowlake-s
  @itemx lunarlake
  Intel Arrow Lake S/Lunar Lake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND,
  XSAVE, XSAVEC, XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, GFNI-SSE, CLWB,
! MOVDIRI, MOVDIR64B, CLDEMOTE, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C, FMA,
! LZCNT, PCONFIG, PKU, VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL, WIDEKL, AVX-VNNI,
! UINTR, AVXIFMA, AVXVNNIINT8, AVXNECONVERT, CMPCCXADD, AVXVNNIINT16, SHA512,
! SM3 and SM4 instruction set support.
  
  @item pantherlake
  Intel Panther Lake CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3,
  SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC,
  XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, GFNI-SSE, CLWB, MOVDIRI,
! MOVDIR64B, CLDEMOTE, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C, FMA, LZCNT,
! PCONFIG, PKU, VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL, WIDEKL, AVX-VNNI,
! UINTR, AVXIFMA, AVXVNNIINT8, AVXNECONVERT, CMPCCXADD, AVXVNNIINT16, SHA512,
! SM3, SM4 and PREFETCHI instruction set support.
  
  @item sapphirerapids
  @itemx emeraldrapids
--- 34514,34549 ----
  Intel Alder Lake/Raptor Lake/Meteor Lake/Gracemont CPU with 64-bit extensions,
  MOVBE, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW,
  PCLMUL, RDRND, XSAVE, XSAVEC, XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX,
! GFNI-SSE, CLWB, MOVDIRI, MOVDIR64B, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C,
! FMA, LZCNT, PCONFIG, PKU, VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL, WIDEKL and
! AVX-VNNI instruction set support.
  
  @item arrowlake
  Intel Arrow Lake CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3,
  SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC,
  XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, GFNI-SSE, CLWB, MOVDIRI,
! MOVDIR64B, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C, FMA, LZCNT, PCONFIG, PKU,
! VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL, WIDEKL, AVX-VNNI, UINTR, AVXIFMA,
! AVXVNNIINT8, AVXNECONVERT and CMPCCXADD instruction set support.
  
  @item arrowlake-s
  @itemx lunarlake
  Intel Arrow Lake S/Lunar Lake CPU with 64-bit extensions, MOVBE, MMX, SSE,
  SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND,
  XSAVE, XSAVEC, XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, GFNI-SSE, CLWB,
! MOVDIRI, MOVDIR64B, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C, FMA, LZCNT,
! PCONFIG, PKU, VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL, WIDEKL, AVX-VNNI, UINTR,
! AVXIFMA, AVXVNNIINT8, AVXNECONVERT, CMPCCXADD, AVXVNNIINT16, SHA512, SM3 and
! SM4 instruction set support.
  
  @item pantherlake
  Intel Panther Lake CPU with 64-bit extensions, MOVBE, MMX, SSE, SSE2, SSE3,
  SSSE3, SSE4.1, SSE4.2, POPCNT, AES, PREFETCHW, PCLMUL, RDRND, XSAVE, XSAVEC,
  XSAVES, XSAVEOPT, FSGSBASE, PTWRITE, RDPID, SGX, GFNI-SSE, CLWB, MOVDIRI,
! MOVDIR64B, WAITPKG, ADCX, AVX, AVX2, BMI, BMI2, F16C, FMA, LZCNT, PCONFIG, PKU,
! VAES, VPCLMULQDQ, SERIALIZE, HRESET, KL, WIDEKL, AVX-VNNI, UINTR, AVXIFMA,
! AVXVNNIINT8, AVXNECONVERT, CMPCCXADD, AVXVNNIINT16, SHA512, SM3, SM4 and
! PREFETCHI instruction set support.
  
  @item sapphirerapids
  @itemx emeraldrapids
diff -Nrcpad gcc-14-20250620/gcc/gimple-fold.cc gcc-14-20250627/gcc/gimple-fold.cc
*** gcc-14-20250620/gcc/gimple-fold.cc	Fri Jun 20 22:32:19 2025
--- gcc-14-20250627/gcc/gimple-fold.cc	Fri Jun 27 22:32:23 2025
*************** fold_const_aggregate_ref_1 (tree t, tree
*** 8444,8462 ****
        base = get_ref_base_and_extent (t, &offset, &size, &max_size, &reverse);
        ctor = get_base_constructor (base, &offset, valueize);
  
        /* Empty constructor.  Always fold to 0.  */
        if (ctor == error_mark_node)
  	return build_zero_cst (TREE_TYPE (t));
!       /* We do not know precise address.  */
        if (!known_size_p (max_size) || maybe_ne (max_size, size))
  	return NULL_TREE;
-       /* We cannot determine ctor.  */
-       if (!ctor)
- 	return NULL_TREE;
- 
        /* Out of bound array access.  Value is undefined, but don't fold.  */
        if (maybe_lt (offset, 0))
  	return NULL_TREE;
  
        tem = fold_ctor_reference (TREE_TYPE (t), ctor, offset, size, base);
        if (tem)
--- 8444,8464 ----
        base = get_ref_base_and_extent (t, &offset, &size, &max_size, &reverse);
        ctor = get_base_constructor (base, &offset, valueize);
  
+       /* We cannot determine ctor.  */
+       if (!ctor)
+ 	return NULL_TREE;
        /* Empty constructor.  Always fold to 0.  */
        if (ctor == error_mark_node)
  	return build_zero_cst (TREE_TYPE (t));
!       /* We do not know precise access.  */
        if (!known_size_p (max_size) || maybe_ne (max_size, size))
  	return NULL_TREE;
        /* Out of bound array access.  Value is undefined, but don't fold.  */
        if (maybe_lt (offset, 0))
  	return NULL_TREE;
+       /* Access with reverse storage order.  */
+       if (reverse)
+ 	return NULL_TREE;
  
        tem = fold_ctor_reference (TREE_TYPE (t), ctor, offset, size, base);
        if (tem)
*************** fold_const_aggregate_ref_1 (tree t, tree
*** 8476,8482 ****
  	      && offset.is_constant (&coffset)
  	      && (coffset % BITS_PER_UNIT != 0
  		  || csize % BITS_PER_UNIT != 0)
- 	      && !reverse
  	      && BYTES_BIG_ENDIAN == WORDS_BIG_ENDIAN)
  	    {
  	      poly_int64 bitoffset;
--- 8478,8483 ----
diff -Nrcpad gcc-14-20250620/gcc/testsuite/ChangeLog gcc-14-20250627/gcc/testsuite/ChangeLog
*** gcc-14-20250620/gcc/testsuite/ChangeLog	Fri Jun 20 22:32:20 2025
--- gcc-14-20250627/gcc/testsuite/ChangeLog	Fri Jun 27 22:32:24 2025
***************
*** 1,3 ****
--- 1,11 ----
+ 2025-06-20  Richard Biener  <rguenther@suse.de>
+ 
+ 	Backported from master:
+ 	2024-09-11  Richard Biener  <rguenther@suse.de>
+ 
+ 	PR tree-optimization/116674
+ 	* g++.dg/vect/pr116674.cc: New testcase.
+ 
  2025-06-19  Jakub Jelinek  <jakub@redhat.com>
  
  	Backported from master:
diff -Nrcpad gcc-14-20250620/gcc/testsuite/gnat.dg/sso20.adb gcc-14-20250627/gcc/testsuite/gnat.dg/sso20.adb
*** gcc-14-20250620/gcc/testsuite/gnat.dg/sso20.adb	Thu Jan  1 00:00:00 1970
--- gcc-14-20250627/gcc/testsuite/gnat.dg/sso20.adb	Fri Jun 27 22:33:29 2025
***************
*** 0 ****
--- 1,29 ----
+ --  { dg-do run }
+ --  { dg-options "-O" }
+ 
+ with Ada.Unchecked_Conversion;
+ with Interfaces;  use Interfaces;
+ with System;      use System;
+ 
+ procedure SSO20 is
+ 
+   type Bytes_Ref is array (1 .. 4) of Unsigned_8
+     with Convention => Ada_Pass_By_Reference;
+ 
+   type U32_BE is record
+     Value : Unsigned_32;
+   end record
+     with
+       Pack,
+       Bit_Order            => High_Order_First,
+       Scalar_Storage_Order => High_Order_First;
+ 
+   function Conv is new Ada.Unchecked_Conversion (Bytes_Ref, U32_BE);
+ 
+   function Value (B : Bytes_Ref) return Unsigned_32 is (Conv (B).Value);
+ 
+ begin
+   if Value ((16#11#, 16#22#, 16#33#, 16#44#)) /= 16#11223344# then
+      raise Program_Error;
+   end if;
+ end;
diff -Nrcpad gcc-14-20250620/gcc/tree-ssa-sccvn.cc gcc-14-20250627/gcc/tree-ssa-sccvn.cc
*** gcc-14-20250620/gcc/tree-ssa-sccvn.cc	Fri Jun 20 22:32:36 2025
--- gcc-14-20250627/gcc/tree-ssa-sccvn.cc	Fri Jun 27 22:33:40 2025
*************** fully_constant_vn_reference_p (vn_refere
*** 1592,1597 ****
--- 1592,1599 ----
  	      ++i;
  	      break;
  	    }
+ 	  if (operands[i].reverse)
+ 	    return NULL_TREE;
  	  if (known_eq (operands[i].off, -1))
  	    return NULL_TREE;
  	  off += operands[i].off;
