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
693445c9
Commit
693445c9
authored
Oct 04, 2012
by
Oleg Endo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert accidential commits.
From-SVN: r192107
parent
06c5d264
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
35 deletions
+10
-35
gcc/config/sh/sh.md
+9
-34
gcc/testsuite/gcc.target/sh/pr52933-1.c
+1
-1
No files found.
gcc/config/sh/sh.md
View file @
693445c9
...
...
@@ -835,13 +835,9 @@
(define_insn_and_split "
*
cmp_div0s_1"
[
(set (match_operand:SI 0 "arith_reg_dest" "")
;; (ge:SI (xor:SI (match_operand:SI 1 "arith_reg_operand" "")
;; (match_operand:SI 2 "arith_reg_operand" ""))
;; (const_int 0)))
(xor:SI (lshiftrt:SI (match_operand:SI 1 "arith_reg_operand")
(const_int 31))
(ge:SI (match_operand:SI 2 "arith_reg_operand")
(const_int 0))))
(ge:SI (xor:SI (match_operand:SI 1 "arith_reg_operand" "")
(match_operand:SI 2 "arith_reg_operand" ""))
(const_int 0)))
(clobber (reg:SI T_REG))]
"TARGET_SH1"
"#"
...
...
@@ -857,13 +853,9 @@
(define_insn_and_split "
*
cmp_div0s_1"
[
(set (reg:SI T_REG)
;; (ge:SI (xor:SI (match_operand:SI 0 "arith_reg_operand" "")
;; (match_operand:SI 1 "arith_reg_operand" ""))
;; (const_int 0)))]
(eq:SI (lshiftrt:SI (match_operand:SI 0 "arith_reg_operand")
(const_int 31))
(ge:SI (match_operand:SI 1 "arith_reg_operand")
(const_int 0))))]
(ge:SI (xor:SI (match_operand:SI 0 "arith_reg_operand" "")
(match_operand:SI 1 "arith_reg_operand" ""))
(const_int 0)))]
"TARGET_SH1"
"#"
"&& can_create_pseudo_p ()"
...
...
@@ -1010,13 +1002,9 @@
(define_insn_and_split "
*
cbranch_div0s"
[
(set (pc)
;; (if_then_else (ge (xor:SI (match_operand:SI 0 "arith_reg_operand" "")
;; (match_operand:SI 1 "arith_reg_operand" ""))
;; (const_int 0))
(if_then_else (eq (lshiftrt:SI (match_operand:SI 0 "arith_reg_operand")
(const_int 31))
(ge:SI (match_operand:SI 1 "arith_reg_operand")
(const_int 0)))
(if_then_else (ge (xor:SI (match_operand:SI 0 "arith_reg_operand" "")
(match_operand:SI 1 "arith_reg_operand" ""))
(const_int 0))
(label_ref (match_operand 2))
(pc)))
(clobber (reg:SI T_REG))]
...
...
@@ -10681,19 +10669,6 @@ label:
DONE;
})
;; The
*
cstoresi pattern is for combine, so that it can apply some
;; comparison canonicalization if it hasn't been done before.
(define_insn_and_split "
*
cstoresi"
[
(set (match_operand:SI 0 "arith_reg_dest")
(ge:SI (match_operand:SI 1 "arith_reg_operand")
(const_int 0)))
(clobber (reg:SI T_REG))]
"TARGET_SH1"
"#"
"&& 1"
[
(set (reg:SI T_REG) (ge:SI (match_dup 1) (const_int 0)))
(set (match_dup 0) (reg:SI T_REG))])
(define_expand "cstoredi4"
[
(set (match_operand:SI 0 "register_operand" "=r")
(match_operator:SI 1 "comparison_operator"
...
...
gcc/testsuite/gcc.target/sh/pr52933-1.c
View file @
693445c9
...
...
@@ -8,7 +8,7 @@
/* { dg-final { scan-assembler-times "div0s" 25 } } */
/* { dg-final { scan-assembler-not "tst" } } */
//
typedef unsigned char bool;
typedef
unsigned
char
bool
;
int
other_func_a
(
int
,
int
);
int
other_func_b
(
int
,
int
);
...
...
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