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
d1b3178b
Commit
d1b3178b
authored
May 18, 2003
by
Andreas Schwab
Committed by
Andreas Schwab
May 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/m68k/m68k.md: Use define_constants for unspec numbers.
From-SVN: r66939
parent
094a51ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
gcc/ChangeLog
+4
-0
gcc/config/m68k/m68k.md
+20
-13
No files found.
gcc/ChangeLog
View file @
d1b3178b
2003-05-18 Andreas Schwab <schwab@suse.de>
* config/m68k/m68k.md: Use define_constants for unspec numbers.
2003-05-18 Neil Booth <neil@daikokuya.co.uk>
2003-05-18 Neil Booth <neil@daikokuya.co.uk>
* config/sparc/sparc.h: Define sparc for now.
* config/sparc/sparc.h: Define sparc for now.
...
...
gcc/config/m68k/m68k.md
View file @
d1b3178b
...
@@ -76,12 +76,6 @@
...
@@ -76,12 +76,6 @@
;;- "%$" single-precision fp specifier ("s" or "") f%$add.x fp0,fp1
;;- "%$" single-precision fp specifier ("s" or "") f%$add.x fp0,fp1
;;- "%&" double-precision fp specifier ("d" or "") f%&add.x fp0,fp1
;;- "%&" double-precision fp specifier ("d" or "") f%&add.x fp0,fp1
;; UNSPEC usage:
;; 1 This is a
`sin' operation. The mode of the UNSPEC is MODE_FLOAT.
;; operand 1 is the argument for `
sin'.
;; 2 This is a
`cos' operation. The mode of the UNSPEC is MODE_FLOAT.
;; operand 1 is the argument for `
cos'.
;;- Information about 68040 port.
;;- Information about 68040 port.
;;- The 68040 executes all 68030 and 68881/2 instructions, but some must
;;- The 68040 executes all 68030 and 68881/2 instructions, but some must
...
@@ -115,6 +109,19 @@
...
@@ -115,6 +109,19 @@
;;- Some of these insn's are composites of several m68000 op codes.
;;- Some of these insn's are composites of several m68000 op codes.
;;- The assembler (or final @@??) insures that the appropriate one is
;;- The assembler (or final @@??) insures that the appropriate one is
;;- selected.
;;- selected.
;; UNSPEC usage:
(define_constants
[
(UNSPEC_SIN 1)
(UNSPEC_COS 2)
])
;; UNSPEC_VOLATILE usage:
(define_constants
[
(UNSPECV_BLOCKAGE 0)
])
(define_insn ""
(define_insn ""
[
(set (match_operand:DF 0 "push_operand" "=m")
[
(set (match_operand:DF 0 "push_operand" "=m")
...
@@ -6984,7 +6991,7 @@
...
@@ -6984,7 +6991,7 @@
;; all of memory. This blocks insns from being moved across this point.
;; all of memory. This blocks insns from being moved across this point.
(define_insn "blockage"
(define_insn "blockage"
[
(unspec_volatile [(const_int 0)
]
0
)]
[
(unspec_volatile [(const_int 0)
]
UNSPECV_BLOCKAGE
)]
""
""
"")
"")
...
@@ -7771,7 +7778,7 @@
...
@@ -7771,7 +7778,7 @@
(define_insn "sinsf2"
(define_insn "sinsf2"
[
(set (match_operand:SF 0 "nonimmediate_operand" "=f")
[
(set (match_operand:SF 0 "nonimmediate_operand" "=f")
(unspec:SF
[
(match_operand:SF 1 "general_operand" "fm")
]
1
))]
(unspec:SF
[
(match_operand:SF 1 "general_operand" "fm")
]
UNSPEC_SIN
))]
"TARGET_68881 && flag_unsafe_math_optimizations"
"TARGET_68881 && flag_unsafe_math_optimizations"
"
*
"
*
{
{
...
@@ -7783,7 +7790,7 @@
...
@@ -7783,7 +7790,7 @@
(define_insn "sindf2"
(define_insn "sindf2"
[
(set (match_operand:DF 0 "nonimmediate_operand" "=f")
[
(set (match_operand:DF 0 "nonimmediate_operand" "=f")
(unspec:DF
[
(match_operand:DF 1 "general_operand" "fm")
]
1
))]
(unspec:DF
[
(match_operand:DF 1 "general_operand" "fm")
]
UNSPEC_SIN
))]
"TARGET_68881 && flag_unsafe_math_optimizations"
"TARGET_68881 && flag_unsafe_math_optimizations"
"
*
"
*
{
{
...
@@ -7795,13 +7802,13 @@
...
@@ -7795,13 +7802,13 @@
(define_insn "sinxf2"
(define_insn "sinxf2"
[
(set (match_operand:XF 0 "nonimmediate_operand" "=f")
[
(set (match_operand:XF 0 "nonimmediate_operand" "=f")
(unspec:XF
[
(match_operand:XF 1 "nonimmediate_operand" "fm")
]
1
))]
(unspec:XF
[
(match_operand:XF 1 "nonimmediate_operand" "fm")
]
UNSPEC_SIN
))]
"TARGET_68881 && flag_unsafe_math_optimizations"
"TARGET_68881 && flag_unsafe_math_optimizations"
"fsin%.x %1,%0")
"fsin%.x %1,%0")
(define_insn "cossf2"
(define_insn "cossf2"
[
(set (match_operand:SF 0 "nonimmediate_operand" "=f")
[
(set (match_operand:SF 0 "nonimmediate_operand" "=f")
(unspec:SF
[
(match_operand:SF 1 "general_operand" "fm")
]
2
))]
(unspec:SF
[
(match_operand:SF 1 "general_operand" "fm")
]
UNSPEC_COS
))]
"TARGET_68881 && flag_unsafe_math_optimizations"
"TARGET_68881 && flag_unsafe_math_optimizations"
"
*
"
*
{
{
...
@@ -7813,7 +7820,7 @@
...
@@ -7813,7 +7820,7 @@
(define_insn "cosdf2"
(define_insn "cosdf2"
[
(set (match_operand:DF 0 "nonimmediate_operand" "=f")
[
(set (match_operand:DF 0 "nonimmediate_operand" "=f")
(unspec:DF
[
(match_operand:DF 1 "general_operand" "fm")
]
2
))]
(unspec:DF
[
(match_operand:DF 1 "general_operand" "fm")
]
UNSPEC_COS
))]
"TARGET_68881 && flag_unsafe_math_optimizations"
"TARGET_68881 && flag_unsafe_math_optimizations"
"
*
"
*
{
{
...
@@ -7825,7 +7832,7 @@
...
@@ -7825,7 +7832,7 @@
(define_insn "cosxf2"
(define_insn "cosxf2"
[
(set (match_operand:XF 0 "nonimmediate_operand" "=f")
[
(set (match_operand:XF 0 "nonimmediate_operand" "=f")
(unspec:XF
[
(match_operand:XF 1 "nonimmediate_operand" "fm")
]
2
))]
(unspec:XF
[
(match_operand:XF 1 "nonimmediate_operand" "fm")
]
UNSPEC_COS
))]
"TARGET_68881 && flag_unsafe_math_optimizations"
"TARGET_68881 && flag_unsafe_math_optimizations"
"fcos%.x %1,%0")
"fcos%.x %1,%0")
...
...
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