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
6df6bcfa
Commit
6df6bcfa
authored
Jan 14, 2009
by
Michael Meissner
Committed by
Michael Meissner
Jan 14, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PR22599
From-SVN: r143386
parent
3e55cc6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
7 deletions
+40
-7
gcc/ChangeLog
+7
-0
gcc/config/i386/i386.c
+33
-7
No files found.
gcc/ChangeLog
View file @
6df6bcfa
2009-01-14 Michael Meissner <gnu@the-meissners.org>
PR target/22599
* i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f' to make
sure the insn is a conditional test (bug 22599). Reformat a few long
lines.
2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/38431
...
...
gcc/config/i386/i386.c
View file @
6df6bcfa
...
...
@@ -10834,7 +10834,8 @@ print_operand (FILE *file, rtx x, int code)
fputs
(
"ord"
,
file
);
break
;
default
:
gcc_unreachable
();
output_operand_lossage
(
"operand is not a condition code, invalid operand code 'D'"
);
return
;
}
}
else
...
...
@@ -10872,7 +10873,8 @@ print_operand (FILE *file, rtx x, int code)
fputs
(
"ord"
,
file
);
break
;
default
:
gcc_unreachable
();
output_operand_lossage
(
"operand is not a condition code, invalid operand code 'D'"
);
return
;
}
}
return
;
...
...
@@ -10894,9 +10896,23 @@ print_operand (FILE *file, rtx x, int code)
#endif
return
;
case
'C'
:
if
(
!
COMPARISON_P
(
x
))
{
output_operand_lossage
(
"operand is neither a constant nor a "
"condition code, invalid operand code "
"'C'"
);
return
;
}
put_condition_code
(
GET_CODE
(
x
),
GET_MODE
(
XEXP
(
x
,
0
)),
0
,
0
,
file
);
return
;
case
'F'
:
if
(
!
COMPARISON_P
(
x
))
{
output_operand_lossage
(
"operand is neither a constant nor a "
"condition code, invalid operand code "
"'F'"
);
return
;
}
#ifdef HAVE_AS_IX86_CMOV_SUN_SYNTAX
if
(
ASSEMBLER_DIALECT
==
ASM_ATT
)
putc
(
'.'
,
file
);
...
...
@@ -10909,13 +10925,22 @@ print_operand (FILE *file, rtx x, int code)
/* Check to see if argument to %c is really a constant
and not a condition code which needs to be reversed. */
if
(
!
COMPARISON_P
(
x
))
{
output_operand_lossage
(
"operand is neither a constant nor a condition code, invalid operand code 'c'"
);
return
;
}
{
output_operand_lossage
(
"operand is neither a constant nor a "
"condition code, invalid operand "
"code 'c'"
);
return
;
}
put_condition_code
(
GET_CODE
(
x
),
GET_MODE
(
XEXP
(
x
,
0
)),
1
,
0
,
file
);
return
;
case
'f'
:
if
(
!
COMPARISON_P
(
x
))
{
output_operand_lossage
(
"operand is neither a constant nor a "
"condition code, invalid operand "
"code 'f'"
);
return
;
}
#ifdef HAVE_AS_IX86_CMOV_SUN_SYNTAX
if
(
ASSEMBLER_DIALECT
==
ASM_ATT
)
putc
(
'.'
,
file
);
...
...
@@ -11022,7 +11047,8 @@ print_operand (FILE *file, rtx x, int code)
fputs
(
"une"
,
file
);
break
;
default
:
gcc_unreachable
();
output_operand_lossage
(
"operand is not a condition code, invalid operand code 'D'"
);
return
;
}
return
;
...
...
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