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
814049be
Commit
814049be
authored
Nov 19, 2016
by
Walter Lee
Committed by
Walter Lee
Nov 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
TILE-Gx: fix clzsi2 for big-endian.
* config/tilegx/tilegx.md (clzsi2): Fix for big-endian. From-SVN: r242616
parent
7a384912
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
13 deletions
+18
-13
gcc/ChangeLog
+4
-0
gcc/config/tilegx/tilegx.md
+14
-13
No files found.
gcc/ChangeLog
View file @
814049be
2016-11-18 Walter Lee <walt@tilera.com>
* config/tilegx/tilegx.md (clzsi2): Fix for big-endian.
2016-11-18 Jakub Jelinek <jakub@redhat.com>
PR middle-end/78419
gcc/config/tilegx/tilegx.md
View file @
814049be
...
...
@@ -1798,19 +1798,20 @@
[
(set_attr "type" "Y0")
]
)
(define_expand "clzsi2"
[
(set (match_dup 2)
(zero_extend:DI (match_operand:SI 1 "reg_or_0_operand" "")))
(set (match_dup 2)
(ashift:DI (match_dup 2)
(const_int 32)))
(set (match_dup 2)
(clz:DI (match_dup 2)))
(set (match_operand:SI 0 "register_operand" "")
(subreg:SI (match_dup 2) 0))]
""
{
operands
[
2
]
= gen_reg_rtx (DImode);
})
[
(set (match_operand:SI 0 "register_operand" "=r")
(clz:SI (match_operand:SI 1 "reg_or_0_operand" "rO")))]
""
{
rtx tmp1 = gen_reg_rtx (DImode);
rtx tmp2 = gen_reg_rtx (DImode);
rtx tmp3 = gen_reg_rtx (DImode);
emit_insn (gen_zero_extendsidi2 (tmp1, operands[1]));
emit_insn (gen_ashldi3 (tmp2, tmp1, (GEN_INT (32))));
emit_insn (gen_clzdi2 (tmp3, tmp2));
emit_move_insn (operands[0], gen_lowpart (SImode, tmp3));
DONE;
})
(define_insn "ctz
<mode>
2"
[
(set (match_operand:I48MODE 0 "register_operand" "=r")
...
...
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