aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2020-05-17 06:52:02 -0700
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:03:35 -0300
commit4f443b8ebfc7c4a44167c332c070ef949a3f1bb3 (patch)
treed6907932dcbf32fa9fcb2482407e5772de17c574 /gcc/tree-inline.c
parent5e6acd69873e5baf6dbcd12294603df8a44608a5 (diff)
downloadgcc-4f443b8ebfc7c4a44167c332c070ef949a3f1bb3.zip
gcc-4f443b8ebfc7c4a44167c332c070ef949a3f1bb3.tar.gz
gcc-4f443b8ebfc7c4a44167c332c070ef949a3f1bb3.tar.bz2
x86: Add gcc.target/i386/strncmp-1.c
Add a strncmp test for the cmpstrn pattern with neither of the strings is a constant string. We can expand the cmpstrn pattern to "repz cmpsb" only if one of the strings is a constant so that expand_builtin_strncmp() can write the length argument to be the minimum of the const string length and the actual length argument. Otherwise, "repz cmpsb" may pass the 0 byte. * gcc.target/i386/strncmp-1.c: New test.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions