Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1f5f063d
Commit
1f5f063d
authored
Dec 31, 2010
by
Mingjie Xing
Committed by
Mingjie Xing
Dec 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the the macro SHIFT_COUNT_TRUNCATED for loongson.
From-SVN: r168364
parent
4fa02692
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
gcc/ChangeLog
+6
-0
gcc/config/mips/mips.c
+2
-2
gcc/config/mips/mips.h
+1
-1
No files found.
gcc/ChangeLog
View file @
1f5f063d
2010
-
12
-
30
Mingjie
Xing
<
mingjie
.
xing
@gmail
.
com
>
*
config
/
mips
/
mips
.
h
(
SHIFT_COUNT_TRUNCATED
)
:
Change
TARGET_LOONGSON_2EF
to
TARGET_LOONGSON_VECTORS
.
*
config
/
mips
/
mips
.
c
(
mips_shift_truncation_mask
)
:
Likewise
.
2010
-
12
-
30
Joseph
Myers
<
joseph
@codesourcery
.
com
>
2010
-
12
-
30
Joseph
Myers
<
joseph
@codesourcery
.
com
>
*
config
/
openbsd
.
opt
:
New
.
*
config
/
openbsd
.
opt
:
New
.
gcc/config/mips/mips.c
View file @
1f5f063d
...
@@ -16386,12 +16386,12 @@ void mips_function_profiler (FILE *file)
...
@@ -16386,12 +16386,12 @@ void mips_function_profiler (FILE *file)
/* Implement TARGET_SHIFT_TRUNCATION_MASK. We want to keep the default
/* Implement TARGET_SHIFT_TRUNCATION_MASK. We want to keep the default
behaviour of TARGET_SHIFT_TRUNCATION_MASK for non-vector modes even
behaviour of TARGET_SHIFT_TRUNCATION_MASK for non-vector modes even
when TARGET_LOONGSON_
2EF
is true. */
when TARGET_LOONGSON_
VECTORS
is true. */
static
unsigned
HOST_WIDE_INT
static
unsigned
HOST_WIDE_INT
mips_shift_truncation_mask
(
enum
machine_mode
mode
)
mips_shift_truncation_mask
(
enum
machine_mode
mode
)
{
{
if
(
TARGET_LOONGSON_
2EF
&&
VECTOR_MODE_P
(
mode
))
if
(
TARGET_LOONGSON_
VECTORS
&&
VECTOR_MODE_P
(
mode
))
return
0
;
return
0
;
return
GET_MODE_BITSIZE
(
mode
)
-
1
;
return
GET_MODE_BITSIZE
(
mode
)
-
1
;
...
...
gcc/config/mips/mips.h
View file @
1f5f063d
...
@@ -2421,7 +2421,7 @@ typedef struct mips_args {
...
@@ -2421,7 +2421,7 @@ typedef struct mips_args {
/* Standard MIPS integer shifts truncate the shift amount to the
/* Standard MIPS integer shifts truncate the shift amount to the
width of the shifted operand. However, Loongson vector shifts
width of the shifted operand. However, Loongson vector shifts
do not truncate the shift amount at all. */
do not truncate the shift amount at all. */
#define SHIFT_COUNT_TRUNCATED (!TARGET_LOONGSON_
2EF
)
#define SHIFT_COUNT_TRUNCATED (!TARGET_LOONGSON_
VECTORS
)
/* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits
/* Value is 1 if truncating an integer of INPREC bits to OUTPREC bits
is done just by pretending it is already truncated. */
is done just by pretending it is already truncated. */
...
...
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