RE: [PATCH] x86: Adjust gcc.target/i386/pr92080-12.c
"Liu, Hongtao" <[email protected]>
| Newsgroups | gmane.comp.gcc.patches |
|---|---|
| Message-ID | <DS4PPF240F42FB798F5AC6D10376CBCD7BBE5A32@DS4PPF240F42FB7.namprd11.prod.outlook.com> |
> -----Original Message----- > From: H.J. Lu <[email protected]> > Sent: Friday, August 21, 2026 12:44 PM > To: GCC Patches <[email protected]>; Uros Bizjak > <[email protected]>; Liu, Hongtao <[email protected]> > Subject: [PATCH] x86: Adjust gcc.target/i386/pr92080-12.c > > After > > commit 62993cc9d2200ef7a05f317cdef3262996c0ac10 > Author: Eikansh Gupta <[email protected]> > Date: Thu Jul 23 17:04:17 2026 +0530 > > tree-optimization: Handle variable trip count XOR in final value replacement > [PR112104] > > --- > extern signed char a; > signed char > func (int i, int j) > { > signed char c = 0; > while (i != 0) > { > a ^= j; > ++c; > ++i; > } > return c; > } > --- > > is optimized to: > > testl %edi, %edi > je .L3 > movl %edi, %eax > andl $1, %edi > negl %edi > negl %eax > andl %esi, %edi > xorb %dil, a(%rip) > ret > .L3: > xorl %eax, %eax > ret > > add check-function-bodies to gcc.target/i386/pr92080-12.c to check for > optimized codegen. Ok. > > PR tree-optimization/112104 > * gcc.target/i386/pr92080-12.c: Remove scan-assembler-times and add > check-function-bodies to check for optimized codegen. > > -- > H.J.