mirror of git://gcc.gnu.org/git/gcc.git
parent
b315f09425
commit
a05c0ddfb2
|
|
@ -1,3 +1,10 @@
|
||||||
|
2013-03-22 Ian Bolton <ian.bolton@arm.com>
|
||||||
|
|
||||||
|
* config/aarch64/aarch64.c (aarch64_print_operand): New
|
||||||
|
format specifier for printing a constant in hex.
|
||||||
|
* config/aarch64/aarch64.md (insv_imm<mode>): Use the X
|
||||||
|
format specifier for printing second operand.
|
||||||
|
|
||||||
2013-03-22 Richard Biener <rguenther@suse.de>
|
2013-03-22 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
* tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
|
* tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
|
||||||
|
|
|
||||||
|
|
@ -3364,6 +3364,16 @@ aarch64_print_operand (FILE *f, rtx x, char code)
|
||||||
asm_fprintf (f, "v%d", REGNO (x) - V0_REGNUM + (code - 'S'));
|
asm_fprintf (f, "v%d", REGNO (x) - V0_REGNUM + (code - 'S'));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'X':
|
||||||
|
/* Print integer constant in hex. */
|
||||||
|
if (GET_CODE (x) != CONST_INT)
|
||||||
|
{
|
||||||
|
output_operand_lossage ("invalid operand for '%%%c'", code);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
asm_fprintf (f, "0x%x", UINTVAL (x));
|
||||||
|
break;
|
||||||
|
|
||||||
case 'w':
|
case 'w':
|
||||||
case 'x':
|
case 'x':
|
||||||
/* Print a general register name or the zero register (32-bit or
|
/* Print a general register name or the zero register (32-bit or
|
||||||
|
|
|
||||||
|
|
@ -844,8 +844,8 @@
|
||||||
(match_operand:GPI 2 "const_int_operand" "n"))]
|
(match_operand:GPI 2 "const_int_operand" "n"))]
|
||||||
"INTVAL (operands[1]) < GET_MODE_BITSIZE (<MODE>mode)
|
"INTVAL (operands[1]) < GET_MODE_BITSIZE (<MODE>mode)
|
||||||
&& INTVAL (operands[1]) % 16 == 0
|
&& INTVAL (operands[1]) % 16 == 0
|
||||||
&& INTVAL (operands[2]) <= 0xffff"
|
&& UINTVAL (operands[2]) <= 0xffff"
|
||||||
"movk\\t%<w>0, %2, lsl %1"
|
"movk\\t%<w>0, %X2, lsl %1"
|
||||||
[(set_attr "v8type" "movk")
|
[(set_attr "v8type" "movk")
|
||||||
(set_attr "mode" "<MODE>")]
|
(set_attr "mode" "<MODE>")]
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,7 @@
|
||||||
|
2013-03-22 Ian Bolton <ian.bolton@arm.com>
|
||||||
|
|
||||||
|
* gcc.target/aarch64/movk.c: New test.
|
||||||
|
|
||||||
2013-03-21 Marc Glisse <marc.glisse@inria.fr>
|
2013-03-21 Marc Glisse <marc.glisse@inria.fr>
|
||||||
|
|
||||||
* g++.dg/ext/vector21.C: New testcase.
|
* g++.dg/ext/vector21.C: New testcase.
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
/* { dg-do run } */
|
||||||
|
/* { dg-options "-O2 --save-temps -fno-inline" } */
|
||||||
|
|
||||||
|
extern void abort (void);
|
||||||
|
|
||||||
|
long long int
|
||||||
|
dummy_number_generator ()
|
||||||
|
{
|
||||||
|
/* { dg-final { scan-assembler "movk\tx\[0-9\]+, 0xefff, lsl 16" } } */
|
||||||
|
/* { dg-final { scan-assembler "movk\tx\[0-9\]+, 0xc4cc, lsl 32" } } */
|
||||||
|
/* { dg-final { scan-assembler "movk\tx\[0-9\]+, 0xfffe, lsl 48" } } */
|
||||||
|
return -346565474575675;
|
||||||
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
main (void)
|
||||||
|
{
|
||||||
|
|
||||||
|
long long int num = dummy_number_generator ();
|
||||||
|
if (num > 0)
|
||||||
|
abort ();
|
||||||
|
|
||||||
|
/* { dg-final { scan-assembler "movk\tx\[0-9\]+, 0x4667, lsl 16" } } */
|
||||||
|
/* { dg-final { scan-assembler "movk\tx\[0-9\]+, 0x7a3d, lsl 32" } } */
|
||||||
|
if (num / 69313094915135 != -5)
|
||||||
|
abort ();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* { dg-final { cleanup-saved-temps } } */
|
||||||
Loading…
Reference in New Issue