]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ppu_intrinsics.h (__protected_stream_count): Rename count macro arugment for clarity.
authorBen Elliston <bje@au.ibm.com>
Tue, 4 Sep 2007 21:10:59 +0000 (21:10 +0000)
committerBen Elliston <bje@gcc.gnu.org>
Tue, 4 Sep 2007 21:10:59 +0000 (07:10 +1000)
* config/rs6000/ppu_intrinsics.h (__protected_stream_count):
Rename count macro arugment for clarity.
(__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
(__protected_stream_set): Likewise, pass 0.

testsuite/
* gcc.target/powerpc/ppu-intrinsics.c: Add test cases for the
__protected_stream family of macros.

From-SVN: r128103

gcc/ChangeLog
gcc/config/rs6000/ppu_intrinsics.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/ppu-intrinsics.c

index 4ddc85da1cdd722d616c3881ea124dcae219d69e..f06ccc5080dc512a35e4b5d1316d929f22efd87a 100644 (file)
@@ -1,3 +1,10 @@
+2007-09-05  Ben Elliston  <bje@au.ibm.com>
+
+       * config/rs6000/ppu_intrinsics.h (__protected_stream_count):
+       Rename count macro arugment for clarity.
+       (__protected_unlimited_stream_set): Pass UG=1 to __dcbt_TH1000.
+       (__protected_stream_set): Likewise, pass 0.
+
 2007-09-04  Jan Hubicka  <jh@suse.cz>
 
        * tree-tailcall.c (eliminate_tail_call): Expect unrenamed return value.
index b18f42de575fc8190f3023dcd9ae2b61fd48791c..7a7551eaa544d91452741b55ce5daf6603379d63 100644 (file)
@@ -246,10 +246,10 @@ typedef int __V4SI __attribute__((vector_size(16)));
                               | ((ID) & 0xF))) : : "memory")
 
 #define __protected_unlimited_stream_set(DIRECTION, ADDR, ID)  \
-       __dcbt_TH1000 ((ADDR), (DIRECTION)>>1, 0, (ID))
+       __dcbt_TH1000 ((ADDR), (DIRECTION)>>1, 1, (ID))
 
 #define __protected_stream_set(DIRECTION, ADDR, ID)    \
-       __dcbt_TH1000 ((ADDR), (DIRECTION)>>1, 1, (ID))
+       __dcbt_TH1000 ((ADDR), (DIRECTION)>>1, 0, (ID))
 
 #define __protected_stream_stop_all()                  \
        __dcbt_TH1010 (0, 3, 0, 0, 0, 0)
@@ -257,8 +257,8 @@ typedef int __V4SI __attribute__((vector_size(16)));
 #define __protected_stream_stop(ID)                    \
        __dcbt_TH1010 (0, 2, 0, 0, 0, (ID))
 
-#define __protected_stream_count(CNT, ID)              \
-       __dcbt_TH1010 (0, 0, (CNT), 0, 0, (ID))
+#define __protected_stream_count(COUNT, ID)            \
+       __dcbt_TH1010 (0, 0, (COUNT), 0, 0, (ID))
 
 #define __protected_stream_go()                                \
        __dcbt_TH1010 (1, 0, 0, 0, 0, 0)
index 89b16069f4a722f536eba622e2846dc359cb6f7c..b68ba679f7453bfe0dd07bfd64d0635c5ff40a0d 100644 (file)
@@ -1,3 +1,8 @@
+2007-09-05  Ben Elliston  <bje@au.ibm.com>
+
+       * gcc.target/powerpc/ppu-intrinsics.c: Add test cases for the
+       __protected_stream family of macros.
+
 2007-09-04  Jan Hubicka  <jh@suse.cz>
 
        * gcc.dg/tree-ssa/loadpre8.c: Disable inlining.
index 9af38884fb68b669ac31873cc1ae30d8a0f8d4f9..53b6c709ec243bba840449a978190996f7dec1f3 100644 (file)
@@ -32,5 +32,12 @@ int main ()
   i = __fctiw (d);
   i = __fctiwz (d);
 
+  __protected_stream_count (1, 2);
+  __protected_stream_go ();
+  __protected_stream_set (1, 0x1000, 3);
+  __protected_stream_stop (3);
+  __protected_stream_stop_all ();
+  __protected_unlimited_stream_set (3, 0x1000, 1);
+
   return 0;
 }