diff -Nrcpad gcc-13-20260722/LAST_UPDATED gcc-13-20260729/LAST_UPDATED
*** gcc-13-20260722/LAST_UPDATED	Wed Jul 22 22:32:23 2026
--- gcc-13-20260729/LAST_UPDATED	Wed Jul 29 22:32:22 2026
***************
*** 1 ****
! Obtained from git: releases/gcc-13 revision 911129c4c59a1d0603683d1dfc1756a3ded90d5c
--- 1 ----
! Obtained from git: releases/gcc-13 revision 8fbd9f91287681569f27a892816bec3a46f112ee
diff -Nrcpad gcc-13-20260722/MD5SUMS gcc-13-20260729/MD5SUMS
*** gcc-13-20260722/MD5SUMS	Wed Jul 22 22:32:28 2026
--- gcc-13-20260729/MD5SUMS	Wed Jul 29 22:32:26 2026
***************
*** 1,5 ****
  # This file contains the MD5 checksums of the files in the
! # gcc-13-20260722.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-20260729.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
! 6c6e17dfe7774dfdb9aa421447eaf2dd  LAST_UPDATED
  81b3330d422f3ce1ef8b720dfae35068  MAINTAINERS
  2b61ddbd876fa839639a7ca551773426  Makefile.def
  5d2d6a74f897f8158d37f5f2ec6877ce  Makefile.in
--- 21,27 ----
  fd4ecdf5d672efe2b0e409aca9cf9446  ChangeLog.jit
  09538b708302f1735f6fa05b622ecf5e  ChangeLog.tree-ssa
  24ab760126489e69436a43185dc3d202  INSTALL/README
! 55648b9cc497c5f573d125c826d3f12d  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
! c7c1e80a1d7ca2d71fcc2c19ebc04e1e  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
! ca4289e82806a68a07914d76a0bf6800  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
! 653cd0fea9c6d3b96a7ce0f6ab6ffde7  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
! e918659cec0ab2b524f1fdd4bda65f19  gcc/DATESTAMP
  d41d8cd98f00b204e9800998ecf8427e  gcc/DEV-PHASE
  eb92e1ff5e982ca07e173e0eb286d243  gcc/FSFChangeLog
  30e1e33411566388b3164558482dc5e6  gcc/FSFChangeLog.10
*************** f71c2e5572561a74ea464ac5e46b48e9  gcc/co
*** 3975,3984 ****
  9ac8a2404b744a4725303bcaa6eb18ee  gcc/config/i386/slm.md
  78848cd4caaf8dc8240bd6c097488abe  gcc/config/i386/smmintrin.h
  f636ec0022d2efe9257b23fc816e2b32  gcc/config/i386/sol2.h
! 4e90d4f26a310e78eeaaf61ebf92e4b4  gcc/config/i386/sse.md
  d5e445dfcfe76b4409b1d6a2115663fc  gcc/config/i386/ssemath.h
  0547e7c6a1807f6096d1ef483c6f9c13  gcc/config/i386/stringop.def
! 5e04bf034cc99782faa1edf2d7d26383  gcc/config/i386/subst.md
  945c6888d50080573fad6f6c8969b67f  gcc/config/i386/sym-mingw32.cc
  5927dc15e6d5c74d087d26beb013139d  gcc/config/i386/sync.md
  2d4c630f2726c23bf8ece1af1e9f5655  gcc/config/i386/sysv4.h
--- 3975,3984 ----
  9ac8a2404b744a4725303bcaa6eb18ee  gcc/config/i386/slm.md
  78848cd4caaf8dc8240bd6c097488abe  gcc/config/i386/smmintrin.h
  f636ec0022d2efe9257b23fc816e2b32  gcc/config/i386/sol2.h
! 0a5ffa249bca0faea4c362ae50498e00  gcc/config/i386/sse.md
  d5e445dfcfe76b4409b1d6a2115663fc  gcc/config/i386/ssemath.h
  0547e7c6a1807f6096d1ef483c6f9c13  gcc/config/i386/stringop.def
! 7f1f93f5d11321776da8577466be14e3  gcc/config/i386/subst.md
  945c6888d50080573fad6f6c8969b67f  gcc/config/i386/sym-mingw32.cc
  5927dc15e6d5c74d087d26beb013139d  gcc/config/i386/sync.md
  2d4c630f2726c23bf8ece1af1e9f5655  gcc/config/i386/sysv4.h
*************** b829ed0032c899e107be2db349c913f3  gcc/ta
*** 7637,7643 ****
  811da275a2b9d3186a6decf96c01b0ed  gcc/targhooks.cc
  edb193a32070c4a7626fb75382def9b9  gcc/targhooks.h
  f39fcaa8197187283ccfed40107b426d  gcc/testsuite/.gitattributes
! affad90f4580d639caaae77b864be112  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
! 451bb1ebd3ba7f349cb6eb7f84b9b6f8  gcc/testsuite/ChangeLog
  862f04afbd87da2cc6bc432c3f28430f  gcc/testsuite/ChangeLog-1993-2007
  029a5d8dacd25eb5d4711452ac448e5b  gcc/testsuite/ChangeLog-2008
  13ac28c41d51b66b4ec40dba6bd50f39  gcc/testsuite/ChangeLog-2009
*************** d4ebe08b4cb963582547d8bb5712e712  gcc/te
*** 70412,70417 ****
--- 70412,70418 ----
  dc0ac30205a49a37f80c833e996ed4d2  gcc/testsuite/gcc.target/i386/pr123121.c
  f99f88a6e994ad6e55e065e41bc58f8f  gcc/testsuite/gcc.target/i386/pr12329.c
  0871390dda9d3f14f2d642eb1d5aa640  gcc/testsuite/gcc.target/i386/pr124056.c
+ daa1cb0a89547fecac9f64b4325b1f0c  gcc/testsuite/gcc.target/i386/pr126429-1.c
  8951a1fa31f2d45ef9eacfff6a733f77  gcc/testsuite/gcc.target/i386/pr13366.c
  9a752a4b3b77930d91d3c8b0c8897b90  gcc/testsuite/gcc.target/i386/pr13685.c
  31ead0ee84b382ba03e3561931bc6e40  gcc/testsuite/gcc.target/i386/pr14289-1.c
diff -Nrcpad gcc-13-20260722/gcc/ChangeLog gcc-13-20260729/gcc/ChangeLog
*** gcc-13-20260722/gcc/ChangeLog	Wed Jul 22 22:32:06 2026
--- gcc-13-20260729/gcc/ChangeLog	Wed Jul 29 22:32:05 2026
***************
*** 1,3 ****
--- 1,18 ----
+ 2026-07-28  Haochen Jiang  <haochen.jiang@intel.com>
+ 
+ 	Backported from master:
+ 	2026-07-28  Haochen Jiang  <haochen.jiang@intel.com>
+ 
+ 	PR target/126429
+ 	* config/i386/sse.md (avx512fmaskhalfmode): Removed.
+ 	(avx512f_dpbf16ps_<mode>_maskz): Use avx512fmaskmode instead of
+ 	avx512fmaskhalfmode.
+ 	(avx512f_dpbf16ps_<mode>_mask): Ditto.
+ 	(avx512f_dpbf16ps_<mode><maskz_half_name>): Rename to ...
+ 	(avx512f_dpbf16ps_<mode><sd_maskz_name>): ... this. Use
+ 	corresponding sd_mask_op4.
+ 	* config/i386/subst.md (maskz_half): Remove not used pattern.
+ 
  2026-07-09  Martin Jambor  <mjambor@suse.cz>
  
  	Backported from master:
diff -Nrcpad gcc-13-20260722/gcc/DATESTAMP gcc-13-20260729/gcc/DATESTAMP
*** gcc-13-20260722/gcc/DATESTAMP	Wed Jul 22 22:32:06 2026
--- gcc-13-20260729/gcc/DATESTAMP	Wed Jul 29 22:32:05 2026
***************
*** 1 ****
! 20260722
--- 1 ----
! 20260729
diff -Nrcpad gcc-13-20260722/gcc/config/i386/sse.md gcc-13-20260729/gcc/config/i386/sse.md
*** gcc-13-20260722/gcc/config/i386/sse.md	Wed Jul 22 22:32:07 2026
--- gcc-13-20260729/gcc/config/i386/sse.md	Wed Jul 29 22:32:06 2026
***************
*** 987,1003 ****
     (V16SF "hi") (V8SF  "qi") (V4SF  "qi")
     (V8DF  "qi") (V4DF  "qi") (V2DF  "qi")])
  
- ;; Mapping of vector modes to corresponding mask half size
- (define_mode_attr avx512fmaskhalfmode
-   [(V64QI "SI") (V32QI "HI") (V16QI "QI")
-    (V32HI "HI") (V16HI "QI") (V8HI  "QI") (V4HI "QI")
-    (V16SI "QI") (V8SI  "QI") (V4SI  "QI")
-    (V8DI  "QI") (V4DI  "QI") (V2DI  "QI")
-    (V32HF "HI") (V16HF "QI") (V8HF  "QI")
-    (V32BF "HI") (V16BF "QI") (V8BF  "QI")
-    (V16SF "QI") (V8SF  "QI") (V4SF  "QI")
-    (V8DF  "QI") (V4DF  "QI") (V2DF  "QI")])
- 
  ;; Mapping of vector float modes to an integer mode of the same size
  (define_mode_attr sseintvecmode
    [(V32HF "V32HI") (V32BF "V32HI") (V16SF "V16SI") (V8DF  "V8DI")
--- 987,992 ----
***************
*** 29231,29237 ****
     (match_operand:VF1_AVX512VL 1 "register_operand")
     (match_operand:<sf_bf16> 2 "register_operand")
     (match_operand:<sf_bf16> 3 "register_operand")
!    (match_operand:<avx512fmaskhalfmode> 4 "register_operand")]
    "TARGET_AVX512BF16"
  {
    emit_insn (gen_avx512f_dpbf16ps_<mode>_maskz_1(operands[0], operands[1],
--- 29220,29226 ----
     (match_operand:VF1_AVX512VL 1 "register_operand")
     (match_operand:<sf_bf16> 2 "register_operand")
     (match_operand:<sf_bf16> 3 "register_operand")
!    (match_operand:<avx512fmaskmode> 4 "register_operand")]
    "TARGET_AVX512BF16"
  {
    emit_insn (gen_avx512f_dpbf16ps_<mode>_maskz_1(operands[0], operands[1],
***************
*** 29239,29245 ****
    DONE;
  })
  
! (define_insn "avx512f_dpbf16ps_<mode><maskz_half_name>"
    [(set (match_operand:VF1_AVX512VL 0 "register_operand" "=v")
  	(unspec:VF1_AVX512VL
  	  [(match_operand:VF1_AVX512VL 1 "register_operand" "0")
--- 29228,29234 ----
    DONE;
  })
  
! (define_insn "avx512f_dpbf16ps_<mode><sd_maskz_name>"
    [(set (match_operand:VF1_AVX512VL 0 "register_operand" "=v")
  	(unspec:VF1_AVX512VL
  	  [(match_operand:VF1_AVX512VL 1 "register_operand" "0")
***************
*** 29247,29253 ****
  	   (match_operand:<sf_bf16> 3 "nonimmediate_operand" "vm")]
          UNSPEC_VDPBF16PS))]
    "TARGET_AVX512BF16"
!   "vdpbf16ps\t{%3, %2, %0<maskz_half_operand4>|%0<maskz_half_operand4>, %2, %3}")
  
  (define_insn "avx512f_dpbf16ps_<mode>_mask"
    [(set (match_operand:VF1_AVX512VL 0 "register_operand" "=v")
--- 29236,29242 ----
  	   (match_operand:<sf_bf16> 3 "nonimmediate_operand" "vm")]
          UNSPEC_VDPBF16PS))]
    "TARGET_AVX512BF16"
!   "vdpbf16ps\t{%3, %2, %0<sd_mask_op4>|%0<sd_mask_op4>, %2, %3}")
  
  (define_insn "avx512f_dpbf16ps_<mode>_mask"
    [(set (match_operand:VF1_AVX512VL 0 "register_operand" "=v")
***************
*** 29258,29264 ****
  	     (match_operand:<sf_bf16> 3 "nonimmediate_operand" "vm")]
               UNSPEC_VDPBF16PS)
            (match_dup 1)
!           (match_operand:<avx512fmaskhalfmode> 4 "register_operand" "Yk")))]
    "TARGET_AVX512BF16"
    "vdpbf16ps\t{%3, %2, %0%{%4%}|%0%{%4%}, %2, %3}")
  
--- 29247,29253 ----
  	     (match_operand:<sf_bf16> 3 "nonimmediate_operand" "vm")]
               UNSPEC_VDPBF16PS)
            (match_dup 1)
!           (match_operand:<avx512fmaskmode> 4 "register_operand" "Yk")))]
    "TARGET_AVX512BF16"
    "vdpbf16ps\t{%3, %2, %0%{%4%}|%0%{%4%}, %2, %3}")
  
diff -Nrcpad gcc-13-20260722/gcc/config/i386/subst.md gcc-13-20260729/gcc/config/i386/subst.md
*** gcc-13-20260722/gcc/config/i386/subst.md	Wed Jul 22 22:32:07 2026
--- gcc-13-20260729/gcc/config/i386/subst.md	Wed Jul 29 22:32:06 2026
***************
*** 471,486 ****
  		(const_int 1))
  	     (match_operand:SI 3 "const48_operand")]
  		UNSPEC_EMBEDDED_ROUNDING))])
- 
- (define_subst_attr "maskz_half_name" "maskz_half" "" "_maskz_1")
- (define_subst_attr "maskz_half_operand4" "maskz_half" "" "%{%5%}%N4")
- 
- (define_subst "maskz_half"
-   [(set (match_operand:SUBST_V 0)
-         (match_operand:SUBST_V 1))]
-   ""
-   [(set (match_dup 0)
-         (vec_merge:SUBST_V
- 	  (match_dup 1)
- 	  (match_operand:SUBST_V 2 "const0_operand")
- 	  (match_operand:<avx512fmaskhalfmode> 3 "register_operand" "Yk")))])
--- 471,473 ----
diff -Nrcpad gcc-13-20260722/gcc/testsuite/ChangeLog gcc-13-20260729/gcc/testsuite/ChangeLog
*** gcc-13-20260722/gcc/testsuite/ChangeLog	Wed Jul 22 22:32:10 2026
--- gcc-13-20260729/gcc/testsuite/ChangeLog	Wed Jul 29 22:32:09 2026
***************
*** 1,3 ****
--- 1,11 ----
+ 2026-07-28  Haochen Jiang  <haochen.jiang@intel.com>
+ 
+ 	Backported from master:
+ 	2026-07-28  Haochen Jiang  <haochen.jiang@intel.com>
+ 
+ 	PR target/126429
+ 	* gcc.target/i386/pr126429-1.c: New test.
+ 
  2026-07-20  Mikael Morin  <mikael@gcc.gnu.org>
  
  	Backported from master:
diff -Nrcpad gcc-13-20260722/gcc/testsuite/gcc.target/i386/pr126429-1.c gcc-13-20260729/gcc/testsuite/gcc.target/i386/pr126429-1.c
*** gcc-13-20260722/gcc/testsuite/gcc.target/i386/pr126429-1.c	Thu Jan  1 00:00:00 1970
--- gcc-13-20260729/gcc/testsuite/gcc.target/i386/pr126429-1.c	Wed Jul 29 22:32:13 2026
***************
*** 0 ****
--- 1,15 ----
+ /* { dg-do compile } */
+ /* { dg-options "-O2 -mavx512bf16 -mavx512dq" } */
+ /* { dg-final { scan-assembler-not "kmovb" } } */
+ 
+ #include <immintrin.h>
+ 
+ __m512 dp16ps_mask (__m512 src, __mmask16 k, __m512bh a, __m512bh b)
+ {
+   return _mm512_mask_dpbf16_ps (src, k, a, b);
+ }
+ 
+ __m512 dp16ps_maskz (__mmask16 k, __m512 src, __m512bh a, __m512bh b)
+ {
+   return _mm512_maskz_dpbf16_ps (k, src, a, b);
+ }
