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
7a14a9da
Commit
7a14a9da
authored
Nov 05, 2009
by
Richard Henderson
Committed by
Richard Henderson
Nov 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/i386/ia32intrin.h: Protect CRC32 builtins with __SSE4_2__.
From-SVN: r153953
parent
ad6d42e1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
gcc/ChangeLog
+4
-0
gcc/config/i386/ia32intrin.h
+2
-0
gcc/testsuite/g++.dg/other/i386-7.C
+8
-0
No files found.
gcc/ChangeLog
View file @
7a14a9da
2009
-
11
-
05
Richard
Henderson
<
rth
@
redhat
.
com
>
*
config
/
i386
/
ia32intrin
.
h
:
Protect
CRC32
builtins
with
__SSE4_2__
.
2009
-
11
-
05
Paul
Brook
<
paul
@
codesourcery
.
com
>
2009
-
11
-
05
Paul
Brook
<
paul
@
codesourcery
.
com
>
*
config
/
arm
/
arm
.
c
(
arm_fp_model
,
arm_fpu_arch
,
arm_fpu_tune
):
Remove
.
*
config
/
arm
/
arm
.
c
(
arm_fp_model
,
arm_fpu_arch
,
arm_fpu_tune
):
Remove
.
gcc/config/i386/ia32intrin.h
View file @
7a14a9da
...
@@ -49,6 +49,7 @@ __bswapd (int __X)
...
@@ -49,6 +49,7 @@ __bswapd (int __X)
return
__builtin_bswap32
(
__X
);
return
__builtin_bswap32
(
__X
);
}
}
#ifdef __SSE4_2__
/* 32bit accumulate CRC32 (polynomial 0x11EDC6F41) value. */
/* 32bit accumulate CRC32 (polynomial 0x11EDC6F41) value. */
extern
__inline
unsigned
int
extern
__inline
unsigned
int
__attribute__
((
__gnu_inline__
,
__always_inline__
,
__artificial__
))
__attribute__
((
__gnu_inline__
,
__always_inline__
,
__artificial__
))
...
@@ -70,6 +71,7 @@ __crc32d (unsigned int __C, unsigned int __V)
...
@@ -70,6 +71,7 @@ __crc32d (unsigned int __C, unsigned int __V)
{
{
return
__builtin_ia32_crc32si
(
__C
,
__V
);
return
__builtin_ia32_crc32si
(
__C
,
__V
);
}
}
#endif
/* SSE4.2 */
/* 32bit popcnt */
/* 32bit popcnt */
extern
__inline
int
extern
__inline
int
...
...
gcc/testsuite/g++.dg/other/i386-7.C
0 → 100644
View file @
7a14a9da
/* Test that x86intrin.h is usable with -O -pedantic-errors. */
/* We were using SSE4.2 builtins without the extension available. */
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { dg-options "-O -pedantic-errors" } */
#include <x86intrin.h>
int
dummy
;
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