+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
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,