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
5101dc76
Commit
5101dc76
authored
Sep 12, 2016
by
Doug Gilbert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPE42 compare immediate branch with immediate value out of range
parent
246277a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
gcc/config/rs6000/rs6000.md
gcc/config/rs6000/rs6000.md
+21
-4
No files found.
gcc/config/rs6000/rs6000.md
View file @
5101dc76
...
...
@@ -14854,14 +14854,31 @@
;; Define PPE fused compare and branch
;; There is no cmplwib
<cond>
fused instruction!!!
;; If op 3 is a reg then no problem - if op3 is short then use
;; something else - checked in predicate rs6000_fused_cbranch_operator
;; There is no cmplwib... fused instruction!!!
(define_insn "
*
cmpwb"
[(set (pc)
(if_then_else (match_operator 1 "rs6000_fused_cbranch_operator"
[(match_operand:GPR 2 "gpc_reg_operand" "r")
(match_operand:GPR 3 "reg_or_short_operand" "rI")])
(match_operand:GPR 3 "gpc_reg_operand" "r")])
(label_ref (match_operand 0 "" ""))
(pc)))]
"(rs6000_cpu == PROCESSOR_PPE42) && optimize_size"
"
*
{
return output_fused_cbranch (operands,
\"
%l0
\"
, insn);
}"
[(set_attr "type" "fused_branch")])
;; Keep this separate from above to prevent reload from forming
;; illegal immediaate values
(define_insn "
*
cmpwib"
[(set (pc)
(if_then_else (match_operator 1 "rs6000_fused_cbranch_operator"
[(match_operand:GPR 2 "gpc_reg_operand" "r")
(match_operand:SI 3 "u5bit_cint_operand" "I")])
(label_ref (match_operand 0 "" ""))
(pc)))]
"(rs6000_cpu == PROCESSOR_PPE42) && optimize_size"
...
...
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