Commit 2d05dfad authored by jakub's avatar jakub
Browse files

PR target/52006

	* config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
	arm_general_register_operand predicate for operand 2 instead of
	register_operand.

	* gcc.target/arm/pr52006.c: New test.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183661 138bc75d-0d04-0410-961f-82ee72b054a4
parent ca677a70
2012-01-28 Jakub Jelinek <jakub@redhat.com>
PR target/52006
* config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
arm_general_register_operand predicate for operand 2 instead of
register_operand.
2012-01-27 Ian Lance Taylor <iant@google.com>
PR go/47656
......
;;- Machine description for ARM for GNU compiler
;; Copyright 1991, 1993, 1994, 1995, 1996, 1996, 1997, 1998, 1999, 2000,
;; 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
;; 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
;; Free Software Foundation, Inc.
;; Contributed by Pieter `Tiggr' Schoenmakers (rcpieter@win.tue.nl)
;; and Martin Simmons (@harleqn.co.uk).
......@@ -5719,7 +5719,8 @@
(const_int 8)
(match_operand 1 "" "")]
UNSPEC_PIC_BASE))
(set (match_operand:SI 2 "register_operand" "") (mem:SI (match_dup 0)))]
(set (match_operand:SI 2 "arm_general_register_operand" "")
(mem:SI (match_dup 0)))]
"TARGET_ARM && peep2_reg_dead_p (2, operands[0])"
[(set (match_dup 2)
(mem:SI (unspec:SI [(match_dup 3)
......
2012-01-28 Jakub Jelinek <jakub@redhat.com>
PR target/52006
* gcc.target/arm/pr52006.c: New test.
2012-01-27 Aldy Hernandez <aldyh@redhat.com>
PR testsuite/52011
......
/* PR target/52006 */
/* { dg-do compile } */
/* { dg-options "-march=armv7-a -mfloat-abi=hard -O2 -fPIC" } */
unsigned long a;
static int b;
void
foo (void)
{
asm volatile ("" : "=r" (b));
}
void
bar (float f)
{
if (f < b / 100.0)
a = 1;
}
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