builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to reflect size of memory regions being compared.
* builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to reflect size of memory regions being compared. From-SVN: r88142
This commit is contained in:
parent
931e6c29a7
commit
6cbaec9e89
@ -1,3 +1,8 @@
|
||||
2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* builtins.c (expand_builtin_memcmp): Adjust MEM_SIZE to
|
||||
reflect size of memory regions being compared.
|
||||
|
||||
2004-09-26 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* builtins.c (get_memory_rtx): Set mem attributes for non-ADDR_EXPR
|
||||
|
@ -3540,6 +3540,14 @@ expand_builtin_memcmp (tree exp ATTRIBUTE_UNUSED, tree arglist, rtx target,
|
||||
arg1_rtx = get_memory_rtx (arg1);
|
||||
arg2_rtx = get_memory_rtx (arg2);
|
||||
arg3_rtx = expand_expr (len, NULL_RTX, VOIDmode, 0);
|
||||
|
||||
/* Set MEM_SIZE as appropriate. */
|
||||
if (GET_CODE (arg3_rtx) == CONST_INT)
|
||||
{
|
||||
set_mem_size (arg1_rtx, arg3_rtx);
|
||||
set_mem_size (arg2_rtx, arg3_rtx);
|
||||
}
|
||||
|
||||
#ifdef HAVE_cmpmemsi
|
||||
if (HAVE_cmpmemsi)
|
||||
insn = gen_cmpmemsi (result, arg1_rtx, arg2_rtx, arg3_rtx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user