summaryrefslogtreecommitdiff
path: root/gcc/config/spu/spu_internals.h
diff options
context:
space:
mode:
authoruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-14 01:32:17 +0000
committeruweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4>2009-02-14 01:32:17 +0000
commit70ca06f865c118ffde7748d9b64d71d2dfc26fd0 (patch)
tree765ff7750861e77e5dda68236f77d49715ccad24 /gcc/config/spu/spu_internals.h
parentc759c0a9ae7a29798e1a397b174eb01e4ad7bf47 (diff)
downloadgcc-70ca06f865c118ffde7748d9b64d71d2dfc26fd0.tar.gz
ChangeLog:
* config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw, spu_srqwbyte, spu_srqwbytebc): Define. * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw, spu_srqwbyte, spu_srqwbytebc): New overloaded builtins. * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>", "shrqby_<mode>"): New insn-and-split patterns. * config/spu/spu.c (expand_builtin_args): Determine and return number of operands using spu_builtin_description data. (spu_expand_builtin_1): Use it. testsuite/ChangeLog: * gcc.target/spu/intrinsics-sr.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144178 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/spu/spu_internals.h')
-rw-r--r--gcc/config/spu/spu_internals.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/config/spu/spu_internals.h b/gcc/config/spu/spu_internals.h
index fb42c870983..af66ecd3e32 100644
--- a/gcc/config/spu/spu_internals.h
+++ b/gcc/config/spu/spu_internals.h
@@ -337,6 +337,11 @@
#define spu_slqw(ra,rb) __builtin_spu_slqw(ra,rb)
#define spu_slqwbyte(ra,rb) __builtin_spu_slqwbyte(ra,rb)
#define spu_slqwbytebc(ra,rb) __builtin_spu_slqwbytebc(ra,rb)
+#define spu_sr(ra,rb) __builtin_spu_sr(ra,rb)
+#define spu_sra(ra,rb) __builtin_spu_sra(ra,rb)
+#define spu_srqw(ra,rb) __builtin_spu_srqw(ra,rb)
+#define spu_srqwbyte(ra,rb) __builtin_spu_srqwbyte(ra,rb)
+#define spu_srqwbytebc(ra,rb) __builtin_spu_srqwbytebc(ra,rb)
#define spu_extract(ra,pos) __builtin_spu_extract(ra,pos)
#define spu_insert(scalar,ra,pos) __builtin_spu_insert(scalar,ra,pos)
#define spu_promote(scalar,pos) __builtin_spu_promote(scalar,pos)