Commit bdf58480 by James Greenhalgh Committed by James Greenhalgh

[AArch64] Add register constraints to add<mode>3_pluslong

gcc/

2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>

	* config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
	constraints.

gcc/testsuite/

2015-12-04  James Greenhalgh  <james.greenhalgh@arm.com>

	* gcc.c-torture/compile/20151204.c: New.

From-SVN: r231304
parent 2331aa00
2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
* config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
constraints.
2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/68349
......@@ -1615,9 +1615,9 @@
(define_insn_and_split "*add<mode>3_pluslong"
[(set
(match_operand:GPI 0 "register_operand" "")
(plus:GPI (match_operand:GPI 1 "register_operand" "")
(match_operand:GPI 2 "aarch64_pluslong_operand" "")))]
(match_operand:GPI 0 "register_operand" "=r")
(plus:GPI (match_operand:GPI 1 "register_operand" "r")
(match_operand:GPI 2 "aarch64_pluslong_immediate" "i")))]
"!aarch64_plus_operand (operands[2], VOIDmode)
&& !aarch64_move_imm (INTVAL (operands[2]), <MODE>mode)"
"#"
......
2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
* gcc.c-torture/compile/20151204.c: New.
2015-12-04 Nathan Sidwell <nathan@acm.org>
* gcc.dg/vla-24.c: Requires alloca.
......
typedef __SIZE_TYPE__ size_t;
int strcmp (const char*, const char*);
void *memchr (const void *, int, size_t);
char* strncpy (char *, const char *, size_t);
int
main (int argc, char** argv)
{
char target[32753] = "A";
char buffer[32753];
char *x;
x = buffer;
if (strcmp (target, "A")
|| memchr (target, 'A', 0) != ((void *) 0))
if (strncpy (x, "", 4) != x);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment