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
c919858d
Commit
c919858d
authored
15 years ago
by
Michael Meissner
Committed by
Michael Meissner
15 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix 42747, make -mvsx enable sqrt
From-SVN: r155923
parent
ef5d1181
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
gcc/ChangeLog
+7
-0
gcc/config/rs6000/rs6000.md
+9
-2
gcc/testsuite/ChangeLog
+4
-0
gcc/testsuite/gcc.target/powerpc/pr42747.c
+8
-0
No files found.
gcc/ChangeLog
View file @
c919858d
2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/42747
* config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
to allow generation of the xssqrtdp instruction on power7.
(sqrtdf2_fpr): Ditto.
2010-01-14 Jakub Jelinek <jakub@redhat.com>
PR middle-end/42674
...
...
This diff is collapsed.
Click to expand it.
gcc/config/rs6000/rs6000.md
View file @
c919858d
;; Machine description for IBM RISC System 6000 (POWER) for GNU C compiler
;; Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
;; 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
;; 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
, 2010
;; Free Software Foundation, Inc.
;; Contributed by Richard Kenner (kenner@vlsi1.ultra.nyu.edu)
...
...
@@ -6310,7 +6310,14 @@
[
(set_attr "type" "dmul")
(set_attr "fp_type" "fp_maddsub_d")])
(define_insn "sqrtdf2"
(define_expand "sqrtdf2"
[
(set (match_operand:DF 0 "gpc_reg_operand" "")
(sqrt:DF (match_operand:DF 1 "gpc_reg_operand" "")))]
"(TARGET_PPC_GPOPT || TARGET_POWER2) && TARGET_HARD_FLOAT && TARGET_FPRS
&& TARGET_DOUBLE_FLOAT"
"")
(define_insn "
*
sqrtdf2_fpr"
[
(set (match_operand:DF 0 "gpc_reg_operand" "=d")
(sqrt:DF (match_operand:DF 1 "gpc_reg_operand" "d")))]
"(TARGET_PPC_GPOPT || TARGET_POWER2) && TARGET_HARD_FLOAT && TARGET_FPRS
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/ChangeLog
View file @
c919858d
2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
* gcc.target/powerpc/pr42747.c: New file.
2010-01-14 Jakub Jelinek <jakub@redhat.com>
PR middle-end/42674
...
...
This diff is collapsed.
Click to expand it.
gcc/testsuite/gcc.target/powerpc/pr42747.c
0 → 100644
View file @
c919858d
/* { dg-do compile { target { powerpc*-*-* } } } */
/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mcpu=power7 -ffast-math" } */
double
foo
(
double
x
)
{
return
__builtin_sqrt
(
x
);
}
/* { dg-final { scan-assembler "xssqrtdp" } } */
This diff is collapsed.
Click to expand it.
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