diff -Nrcpad gcc-13-20260101/LAST_UPDATED gcc-13-20260115/LAST_UPDATED
*** gcc-13-20260101/LAST_UPDATED	Thu Jan  1 22:32:21 2026
--- gcc-13-20260115/LAST_UPDATED	Thu Jan 15 22:32:19 2026
***************
*** 1 ****
! Obtained from git: releases/gcc-13 revision f52d527d9ade264d1a0435f309e9604cd83d2089
--- 1 ----
! Obtained from git: releases/gcc-13 revision 74d2113178601433f73cd3b4bdb0e67d652154e7
diff -Nrcpad gcc-13-20260101/MD5SUMS gcc-13-20260115/MD5SUMS
*** gcc-13-20260101/MD5SUMS	Thu Jan  1 22:32:25 2026
--- gcc-13-20260115/MD5SUMS	Thu Jan 15 22:32:23 2026
***************
*** 1,5 ****
  # This file contains the MD5 checksums of the files in the
! # gcc-13-20260101.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-13-20260115.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
*************** d32239bcb673463ab874e80d47fae504  COPYIN
*** 21,27 ****
  fd4ecdf5d672efe2b0e409aca9cf9446  ChangeLog.jit
  09538b708302f1735f6fa05b622ecf5e  ChangeLog.tree-ssa
  24ab760126489e69436a43185dc3d202  INSTALL/README
! 8376688b2252b789240b6cc6dcc9d237  LAST_UPDATED
  81b3330d422f3ce1ef8b720dfae35068  MAINTAINERS
  2b61ddbd876fa839639a7ca551773426  Makefile.def
  5d2d6a74f897f8158d37f5f2ec6877ce  Makefile.in
--- 21,27 ----
  fd4ecdf5d672efe2b0e409aca9cf9446  ChangeLog.jit
  09538b708302f1735f6fa05b622ecf5e  ChangeLog.tree-ssa
  24ab760126489e69436a43185dc3d202  INSTALL/README
! b5daaf604781b8f8bfe450095d1f6e50  LAST_UPDATED
  81b3330d422f3ce1ef8b720dfae35068  MAINTAINERS
  2b61ddbd876fa839639a7ca551773426  Makefile.def
  5d2d6a74f897f8158d37f5f2ec6877ce  Makefile.in
*************** a22e70b3f29292d0e628450f4bb11e62  fixinc
*** 475,481 ****
  a916467b91076e631dd8edb7424769c7  gcc/COPYING.LIB
  d32239bcb673463ab874e80d47fae504  gcc/COPYING3
  6a6a8e020838b23406c81b19c1d46df6  gcc/COPYING3.LIB
! 2560f6bf3553aadf99ab81c2f9742968  gcc/ChangeLog
  a3b63c675afa7a655cc2bfa8a907af79  gcc/ChangeLog-1997
  d9a88529352a010253c2e8fb1ed6023b  gcc/ChangeLog-1998
  240f08f81cb4699e8b49347db38233db  gcc/ChangeLog-1999
--- 475,481 ----
  a916467b91076e631dd8edb7424769c7  gcc/COPYING.LIB
  d32239bcb673463ab874e80d47fae504  gcc/COPYING3
  6a6a8e020838b23406c81b19c1d46df6  gcc/COPYING3.LIB
! 19fb8437aafe86558e4831e2d41ae37b  gcc/ChangeLog
  a3b63c675afa7a655cc2bfa8a907af79  gcc/ChangeLog-1997
  d9a88529352a010253c2e8fb1ed6023b  gcc/ChangeLog-1998
  240f08f81cb4699e8b49347db38233db  gcc/ChangeLog-1999
*************** fb3fadb88e1d2b3b640cfaaa5ff11780  gcc/Ch
*** 510,516 ****
  3eb07e0b2e542409bf73d359f7f65609  gcc/ChangeLog.ptr
  e13638e26743ba41e6011b76cc00d9a9  gcc/ChangeLog.tree-ssa
  739ab47f6425bcea1d05e4fc0542de54  gcc/ChangeLog.tuples
! bf9c4c6bf6255b82f836e22bcf3e5bee  gcc/DATESTAMP
  d41d8cd98f00b204e9800998ecf8427e  gcc/DEV-PHASE
  eb92e1ff5e982ca07e173e0eb286d243  gcc/FSFChangeLog
  30e1e33411566388b3164558482dc5e6  gcc/FSFChangeLog.10
--- 510,516 ----
  3eb07e0b2e542409bf73d359f7f65609  gcc/ChangeLog.ptr
  e13638e26743ba41e6011b76cc00d9a9  gcc/ChangeLog.tree-ssa
  739ab47f6425bcea1d05e4fc0542de54  gcc/ChangeLog.tuples
! 7461c6f74d5f0dde36ec6a213c4b039a  gcc/DATESTAMP
  d41d8cd98f00b204e9800998ecf8427e  gcc/DEV-PHASE
  eb92e1ff5e982ca07e173e0eb286d243  gcc/FSFChangeLog
  30e1e33411566388b3164558482dc5e6  gcc/FSFChangeLog.10
*************** c30c322635ac78dc841b9ec4efbb7c71  gcc/gi
*** 5760,5766 ****
  9a9d95793deb7de9860fc0d1215b3390  gcc/gimple-fold.h
  7cf98e471595ea406079ac821d418500  gcc/gimple-harden-conditionals.cc
  ab5c0e8e80c5a594037aa3a03ad791c9  gcc/gimple-if-to-switch.cc
! af0a5d375973bf0c61c83fe07c8953f2  gcc/gimple-isel.cc
  01b268628675b950255b0100e37fe075  gcc/gimple-iterator.cc
  348a424f3832c9ef4a35f364e4b74bf7  gcc/gimple-iterator.h
  9cb5accb4acfb52a12c188eb63da85aa  gcc/gimple-laddress.cc
--- 5760,5766 ----
  9a9d95793deb7de9860fc0d1215b3390  gcc/gimple-fold.h
  7cf98e471595ea406079ac821d418500  gcc/gimple-harden-conditionals.cc
  ab5c0e8e80c5a594037aa3a03ad791c9  gcc/gimple-if-to-switch.cc
! 3043bab505b899c8bc8accbc9bc12979  gcc/gimple-isel.cc
  01b268628675b950255b0100e37fe075  gcc/gimple-iterator.cc
  348a424f3832c9ef4a35f364e4b74bf7  gcc/gimple-iterator.h
  9cb5accb4acfb52a12c188eb63da85aa  gcc/gimple-laddress.cc
*************** b829ed0032c899e107be2db349c913f3  gcc/ta
*** 7637,7643 ****
  811da275a2b9d3186a6decf96c01b0ed  gcc/targhooks.cc
  edb193a32070c4a7626fb75382def9b9  gcc/targhooks.h
  f39fcaa8197187283ccfed40107b426d  gcc/testsuite/.gitattributes
! 17eddfdad7e43353dd2f83fc4678ff76  gcc/testsuite/ChangeLog
  862f04afbd87da2cc6bc432c3f28430f  gcc/testsuite/ChangeLog-1993-2007
  029a5d8dacd25eb5d4711452ac448e5b  gcc/testsuite/ChangeLog-2008
  13ac28c41d51b66b4ec40dba6bd50f39  gcc/testsuite/ChangeLog-2009
--- 7637,7643 ----
  811da275a2b9d3186a6decf96c01b0ed  gcc/targhooks.cc
  edb193a32070c4a7626fb75382def9b9  gcc/targhooks.h
  f39fcaa8197187283ccfed40107b426d  gcc/testsuite/.gitattributes
! 82d8dfb8111da5214c07321214564d2b  gcc/testsuite/ChangeLog
  862f04afbd87da2cc6bc432c3f28430f  gcc/testsuite/ChangeLog-1993-2007
  029a5d8dacd25eb5d4711452ac448e5b  gcc/testsuite/ChangeLog-2008
  13ac28c41d51b66b4ec40dba6bd50f39  gcc/testsuite/ChangeLog-2009
*************** a3d075dd1b96232581aa40c9e02294e1  gcc/te
*** 44581,44586 ****
--- 44581,44588 ----
  23b8c99f9e2dfda91a95f1195ab38bfd  gcc/testsuite/gcc.dg/pr119183.c
  5b4015cb994569a43c505c35b96cda44  gcc/testsuite/gcc.dg/pr119204.c
  9444444b4f048eadd4b6a2d7592f5fca  gcc/testsuite/gcc.dg/pr120480.c
+ 3675df2622072bf0e5cccbf94e93a50f  gcc/testsuite/gcc.dg/pr122126_vextr.c
+ b975ebfa27ac446e553bacbb75421590  gcc/testsuite/gcc.dg/pr122126_vset.c
  bc5ddfbbc46f4e0cce1629d1b58d3090  gcc/testsuite/gcc.dg/pr12603.c
  72a2fca76cb69617ae36bab93c7ec0d7  gcc/testsuite/gcc.dg/pr12625-1.c
  6f0ef61e5a12db5f11da839b2988c5e1  gcc/testsuite/gcc.dg/pr13519-1.c
diff -Nrcpad gcc-13-20260101/gcc/ChangeLog gcc-13-20260115/gcc/ChangeLog
*** gcc-13-20260101/gcc/ChangeLog	Thu Jan  1 22:32:06 2026
--- gcc-13-20260115/gcc/ChangeLog	Thu Jan 15 22:32:06 2026
***************
*** 1,3 ****
--- 1,8 ----
+ 2026-01-06  Avinash Jayakar  <avinashd@linux.ibm.com>
+ 
+ 	PR tree-optimization/122126
+ 	* gimple-isel.cc (gimple_expand_vec_set_extract_expr): Add bound check.
+ 
  2025-12-01  Avinash Jayakar  <avinashd@linux.ibm.com>
  
  	Revert:
diff -Nrcpad gcc-13-20260101/gcc/DATESTAMP gcc-13-20260115/gcc/DATESTAMP
*** gcc-13-20260101/gcc/DATESTAMP	Thu Jan  1 22:32:06 2026
--- gcc-13-20260115/gcc/DATESTAMP	Thu Jan 15 22:32:06 2026
***************
*** 1 ****
! 20260101
--- 1 ----
! 20260115
diff -Nrcpad gcc-13-20260101/gcc/gimple-isel.cc gcc-13-20260115/gcc/gimple-isel.cc
*** gcc-13-20260101/gcc/gimple-isel.cc	Thu Jan  1 22:32:07 2026
--- gcc-13-20260115/gcc/gimple-isel.cc	Thu Jan 15 22:32:07 2026
*************** gimple_expand_vec_set_expr (struct funct
*** 76,81 ****
--- 76,90 ----
      {
        tree pos = TREE_OPERAND (lhs, 1);
        tree view_op0 = TREE_OPERAND (op0, 0);
+ 
+       // if index is a constant, then check the bounds
+       poly_uint64 idx_poly;
+       if (poly_int_tree_p (pos, &idx_poly))
+ 	{
+ 	  poly_uint64 nelts = TYPE_VECTOR_SUBPARTS (TREE_TYPE (view_op0));
+ 	  if (known_gt (idx_poly, nelts))
+ 	    return false;
+ 	}
        machine_mode outermode = TYPE_MODE (TREE_TYPE (view_op0));
        if ((auto_var_in_fn_p (view_op0, fun->decl)
  	   || (VAR_P (view_op0) && DECL_HARD_REGISTER (view_op0)))
diff -Nrcpad gcc-13-20260101/gcc/testsuite/ChangeLog gcc-13-20260115/gcc/testsuite/ChangeLog
*** gcc-13-20260101/gcc/testsuite/ChangeLog	Thu Jan  1 22:32:08 2026
--- gcc-13-20260115/gcc/testsuite/ChangeLog	Thu Jan 15 22:32:08 2026
***************
*** 1,3 ****
--- 1,9 ----
+ 2026-01-06  Avinash Jayakar  <avinashd@linux.ibm.com>
+ 
+ 	PR tree-optimization/122126
+ 	* gcc.dg/pr122126_vextr.c: New test.
+ 	* gcc.dg/pr122126_vset.c: New test.
+ 
  2025-12-01  Avinash Jayakar  <avinashd@linux.ibm.com>
  
  	Revert:
diff -Nrcpad gcc-13-20260101/gcc/testsuite/gcc.dg/pr122126_vextr.c gcc-13-20260115/gcc/testsuite/gcc.dg/pr122126_vextr.c
*** gcc-13-20260101/gcc/testsuite/gcc.dg/pr122126_vextr.c	Thu Jan  1 00:00:00 1970
--- gcc-13-20260115/gcc/testsuite/gcc.dg/pr122126_vextr.c	Thu Jan 15 22:32:10 2026
***************
*** 0 ****
--- 1,9 ----
+ /* { dg-do compile } */
+ /* { dg-options "-O2" } */
+ /* { dg-additional-options "-mavx2" { target avx2 } } */
+ 
+ #define vect16 __attribute__((vector_size(16)))
+ void ub_set() {
+   volatile vect16 unsigned BS_VAR_0;
+   unsigned a = BS_VAR_0[12];
+ }
diff -Nrcpad gcc-13-20260101/gcc/testsuite/gcc.dg/pr122126_vset.c gcc-13-20260115/gcc/testsuite/gcc.dg/pr122126_vset.c
*** gcc-13-20260101/gcc/testsuite/gcc.dg/pr122126_vset.c	Thu Jan  1 00:00:00 1970
--- gcc-13-20260115/gcc/testsuite/gcc.dg/pr122126_vset.c	Thu Jan 15 22:32:10 2026
***************
*** 0 ****
--- 1,9 ----
+ /* { dg-do compile } */
+ /* { dg-options "-O2" } */
+ /* { dg-additional-options "-mavx2" { target avx2 } } */
+ 
+ #define vect16 __attribute__((vector_size(16)))
+ void ub_set() {
+   volatile vect16 unsigned BS_VAR_0;
+   BS_VAR_0[12] = 4;
+ }
