Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
ppe42-gcc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
OpenPOWER Firmware
ppe42-gcc
Commits
9869efd8
Commit
9869efd8
authored
Apr 24, 2015
by
Doug Gilbert
Committed by
Patrick Williams
Aug 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
64 bit load/store
parent
fed58818
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
43 additions
and
19 deletions
+43
-19
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.c
+25
-1
gcc/config/rs6000/rs6000.h
gcc/config/rs6000/rs6000.h
+7
-7
gcc/config/rs6000/rs6000.md
gcc/config/rs6000/rs6000.md
+11
-11
No files found.
gcc/config/rs6000/rs6000.c
View file @
9869efd8
...
...
@@ -20501,6 +20501,30 @@ rs6000_split_multireg_move (rtx dst, rtx src)
/* The number of registers that will be moved. */
int nregs;
// if ppe42 then use 64bit load/store
{
rtx reg_op = NULL;
rtx mem_op = NULL;
if( MEM_P (src) && REG_P (dst) )
{
mem_op = src;
reg_op = dst;
}
else if( REG_P (src) && MEM_P (dst) )
{
mem_op = dst;
reg_op = src;
}
if(reg_op && mem_op &&
(GET_MODE (dst) == DImode && GET_MODE (src) == DImode))
{
// TODO check for alignment on memory
emit_insn (gen_rtx_SET (DImode, dst, src));
return;
}
}
reg = REG_P (dst) ? REGNO (dst) : REGNO (src);
mode = GET_MODE (dst);
nregs = hard_regno_nregs[reg][mode];
...
...
@@ -31622,7 +31646,7 @@ static struct rs6000_opt_mask const rs6000_builtin_mask_names[] =
struct rs6000_opt_var {
const char *name; /* option name */
size_t global_offset; /* offset of the option in global_options. */
size_t target_offset; /* offset of the option in target optio
sn
. */
size_t target_offset; /* offset of the option in target optio
ns
. */
};
static struct rs6000_opt_var const rs6000_opt_vars[] =
...
...
gcc/config/rs6000/rs6000.h
View file @
9869efd8
...
...
@@ -886,7 +886,7 @@ enum data_align { align_abi, align_opt, align_both };
/* Nonzero if move instructions will actually fail to work
when given unaligned data. */
#define STRICT_ALIGNMENT
0
#define STRICT_ALIGNMENT
1
/* Define this macro to be the value 1 if unaligned accesses have a cost
many times greater than aligned accesses, for example if they are
...
...
@@ -1029,8 +1029,8 @@ enum data_align { align_abi, align_opt, align_both };
of `CALL_USED_REGISTERS'. */
#define CALL_REALLY_USED_REGISTERS \
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, FIXED_R13, 1, 1
, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
, 0, 0, 0, 0, \
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
0, 0, FIXED_R13, 0, 0
, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
, 0, 0, 0, 0, \
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, \
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, \
1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, \
...
...
@@ -1112,9 +1112,9 @@ enum data_align { align_abi, align_opt, align_both };
68, \
MAYBE_R2_AVAILABLE \
9, 10, 8, 7, 6, 5, 4, \
3,
EARLY_R12
0, \
3, 0, \
31, 30, 29, 28, \
13,
LATE_R12
\
13, \
66, 65, \
73, 1, MAYBE_R2_FIXED 67, 76, \
/* AltiVec registers. */
\
...
...
@@ -1407,9 +1407,9 @@ enum reg_class
/* NO_REGS. */
\
{ 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 }, \
/* BASE_REGS. */
\
{ 0xf
fffff
fe, 0x00000000, 0x00000008, 0x00020000, 0x00000000 }, \
{ 0xf
00027
fe, 0x00000000, 0x00000008, 0x00020000, 0x00000000 }, \
/* GENERAL_REGS. */
\
{ 0xf
fffff
ff, 0x00000000, 0x00000008, 0x00020000, 0x00000000 }, \
{ 0xf
00027
ff, 0x00000000, 0x00000008, 0x00020000, 0x00000000 }, \
/* FLOAT_REGS. */
\
{ 0x00000000, 0xffffffff, 0x00000000, 0x00000000, 0x00000000 }, \
/* ALTIVEC_REGS. */
\
...
...
gcc/config/rs6000/rs6000.md
View file @
9869efd8
...
...
@@ -10213,11 +10213,11 @@
"@
stvd%U0%X0 %1, %0
lvd%U1%X1 %0, %1
#
ret to reg not supported
#
movedi_internal32 %0, %1 FIXME
stfd%U0%X0 %1,%0
lfd%U1%X1 %0,%1
fmr %0,%1
#
What is this? movdi_internal32
"
#
This message should never be seen
"
[(set_attr_alternative "type"
[(const_string "store")
(const_string "load")
...
...
@@ -10258,15 +10258,15 @@
operands[1] = GEN_INT (((value & 0xffffffff) ^ 0x80000000) - 0x80000000);
}")
;;
disable DImode load/store splits for PPE - use 64-bit load/store instructions
;;
(define_split
;;
[(set (match_operand:DIFD 0 "rs6000_nonimmediate_operand" "")
;;
(match_operand:DIFD 1 "input_operand" ""))]
;;
"reload_completed && !TARGET_POWERPC64
;;
&& gpr_or_gpr_p (operands[0], operands[1])
;;
&& !direct_move_p (operands[0], operands[1])"
;;
[(pc)]
;;
{ rs6000_split_multireg_move (operands[0], operands[1]); DONE; })
;;
DImode load/store splits for PPE reg-to reg
(define_split
[(set (match_operand:DIFD 0 "rs6000_nonimmediate_operand" "")
(match_operand:DIFD 1 "input_operand" ""))]
"reload_completed && !TARGET_POWERPC64
&& gpr_or_gpr_p (operands[0], operands[1])
&& !direct_move_p (operands[0], operands[1])"
[(pc)]
{ rs6000_split_multireg_move (operands[0], operands[1]); DONE; })
(define_insn "
*
movdi_internal64"
[(set (match_operand:DI 0 "nonimmediate_operand" "=Y,r,r,r,r,r,?m,?
*d,?*
d,r,
*h,*
h,r,?
*wg,r,?*
wj,?
*
wi")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment