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
e601abce
Commit
e601abce
authored
Dec 31, 1992
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(print_operand): For invalid operands, call
output_operand_lossage instead of aborting. From-SVN: r3027
parent
eff864ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
gcc/config/sparc/sparc.c
+6
-2
No files found.
gcc/config/sparc/sparc.c
View file @
e601abce
...
@@ -2814,7 +2814,9 @@ print_operand (file, x, code)
...
@@ -2814,7 +2814,9 @@ print_operand (file, x, code)
output_addr_const
(
file
,
XEXP
(
x
,
1
));
output_addr_const
(
file
,
XEXP
(
x
,
1
));
fputc
(
')'
,
file
);
fputc
(
')'
,
file
);
}
}
else
if
(
GET_CODE
(
x
)
==
CONST_DOUBLE
)
else
if
(
GET_CODE
(
x
)
==
CONST_DOUBLE
&&
(
GET_MODE
(
x
)
==
VOIDmode
||
GET_MODE_CLASS
(
GET_MODE
(
x
))
==
MODE_INT
))
{
{
if
(
CONST_DOUBLE_HIGH
(
x
)
==
0
)
if
(
CONST_DOUBLE_HIGH
(
x
)
==
0
)
fprintf
(
file
,
"%u"
,
CONST_DOUBLE_LOW
(
x
));
fprintf
(
file
,
"%u"
,
CONST_DOUBLE_LOW
(
x
));
...
@@ -2822,8 +2824,10 @@ print_operand (file, x, code)
...
@@ -2822,8 +2824,10 @@ print_operand (file, x, code)
&&
CONST_DOUBLE_LOW
(
x
)
<
0
)
&&
CONST_DOUBLE_LOW
(
x
)
<
0
)
fprintf
(
file
,
"%d"
,
CONST_DOUBLE_LOW
(
x
));
fprintf
(
file
,
"%d"
,
CONST_DOUBLE_LOW
(
x
));
else
else
abort
(
);
output_operand_lossage
(
"long long constant not a valid immediate operand"
);
}
}
else
if
(
GET_CODE
(
x
)
==
CONST_DOUBLE
)
output_operand_lossage
(
"floating point constant not a valid immediate operand"
);
else
{
output_addr_const
(
file
,
x
);
}
else
{
output_addr_const
(
file
,
x
);
}
}
}
...
...
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