Re: [PATCH 1/2, i386] cmpstrnsi needs string length

2020-05-17 Thread H.J. Lu via Gcc-patches
On Thu, Nov 3, 2016 at 12:51 AM Uros Bizjak wrote: > > Hello! > > > This patch adds a test to the cmpstrnsi pattern in i386.md so that it > > will bail out (FAIL) if neither of the strings is a constant string. It > > can only work as a proper strncmp if the length is not longer than both > > of

Re: [PATCH 1/2, i386] cmpstrnsi needs string length

2016-11-04 Thread Aaron Sawdey
ChangeLog for this patch: 2016-11-03  Aaron Sawdey   * config/i386/i386.md (cmpstrnsi): New test to bail out if neither string input is a string constant. --  Aaron Sawdey, Ph.D. acsaw...@linux.vnet.ibm.com 050-2/C113 (507) 253-7520 home:

Re: [PATCH 1/2, i386] cmpstrnsi needs string length

2016-11-03 Thread Uros Bizjak
Hello! > This patch adds a test to the cmpstrnsi pattern in i386.md so that it > will bail out (FAIL) if neither of the strings is a constant string. It > can only work as a proper strncmp if the length is not longer than both > of the strings. This change is required if expand_builtin_strncmp is

[PATCH 1/2, i386] cmpstrnsi needs string length

2016-11-01 Thread Aaron Sawdey
This patch adds a test to the cmpstrnsi pattern in i386.md so that it will bail out (FAIL) if neither of the strings is a constant string. It can only work as a proper strncmp if the length is not longer than both of the strings. This change is required if expand_builtin_strncmp is going to try