Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
7dda67b9
Commit
7dda67b9
authored
Sep 15, 2013
by
gmainlan@microsoft.com
Browse files
Add 512-bit-wide SIMD primitives.
parent
c5add86a
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/prelude/primops.txt.pp
View file @
7dda67b9
...
...
@@ -2397,26 +2397,34 @@ section "SIMD Vectors"
#define ALL_VECTOR_TYPES \
[
<
Int8
,
Int
#,16>,<Int16,Int#,8>,<Int32,INT32,4>,<Int64,INT64,2> \
,
<
Int8
,
Int
#,32>,<Int16,Int#,16>,<Int32,INT32,8>,<Int64,INT64,4> \
,
<
Int8
,
Int
#,64>,<Int16,Int#,32>,<Int32,INT32,16>,<Int64,INT64,8> \
,
<
Word8
,
Word
#,16>,<Word16,Word#,8>,<Word32,WORD32,4>,<Word64,WORD64,2> \
,
<
Word8
,
Word
#,32>,<Word16,Word#,16>,<Word32,WORD32,8>,<Word64,WORD64,4> \
,
<
Word8
,
Word
#,64>,<Word16,Word#,32>,<Word32,WORD32,16>,<Word64,WORD64,8> \
,
<
Float
,
Float
#,4>,<Double,Double#,2> \
,
<
Float
,
Float
#,8>,<Double,Double#,4>]
,
<
Float
,
Float
#,8>,<Double,Double#,4> \
,
<
Float
,
Float
#,16>,<Double,Double#,8>]
#define SIGNED_VECTOR_TYPES \
[
<
Int8
,
Int
#,16>,<Int16,Int#,8>,<Int32,INT32,4>,<Int64,INT64,2> \
,
<
Int8
,
Int
#,32>,<Int16,Int#,16>,<Int32,INT32,8>,<Int64,INT64,4> \
,
<
Int8
,
Int
#,64>,<Int16,Int#,32>,<Int32,INT32,16>,<Int64,INT64,8> \
,
<
Float
,
Float
#,4>,<Double,Double#,2> \
,
<
Float
,
Float
#,8>,<Double,Double#,4>]
,
<
Float
,
Float
#,8>,<Double,Double#,4> \
,
<
Float
,
Float
#,16>,<Double,Double#,8>]
#define FLOAT_VECTOR_TYPES \
[
<
Float
,
Float
#,4>,<Double,Double#,2> \
,
<
Float
,
Float
#,8>,<Double,Double#,4>]
,
<
Float
,
Float
#,8>,<Double,Double#,4> \
,
<
Float
,
Float
#,16>,<Double,Double#,8>]
#define INT_VECTOR_TYPES \
[
<
Int8
,
Int
#,16>,<Int16,Int#,8>,<Int32,INT32,4>,<Int64,INT64,2> \
,
<
Int8
,
Int
#,32>,<Int16,Int#,16>,<Int32,INT32,8>,<Int64,INT64,4> \
,
<
Int8
,
Int
#,64>,<Int16,Int#,32>,<Int32,INT32,16>,<Int64,INT64,8> \
,
<
Word8
,
Word
#,16>,<Word16,Word#,8>,<Word32,WORD32,4>,<Word64,WORD64,2> \
,
<
Word8
,
Word
#,32>,<Word16,Word#,16>,<Word32,WORD32,8>,<Word64,WORD64,4>]
,
<
Word8
,
Word
#,32>,<Word16,Word#,16>,<Word32,WORD32,8>,<Word64,WORD64,4> \
,
<
Word8
,
Word
#,64>,<Word16,Word#,32>,<Word32,WORD32,16>,<Word64,WORD64,8>]
primtype
VECTOR
with
llvm_only
=
True
...
...
Write
Preview
Supports
Markdown
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