diff options
author | Ben Elliston <bje@au.ibm.com> | 2007-09-04 21:10:59 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2007-09-05 07:10:59 +1000 |
commit | b2e34bc12529ed3d3c046d3b1cd66687901a6ff8 (patch) | |
tree | 59926d4233f76c86f9db086126cbc4da0d011363 /gcc/config/rs6000 | |
parent | 9380ed8466ef43c4ec1e330fc3e7ddf36ceaa406 (diff) | |
download | gcc-b2e34bc12529ed3d3c046d3b1cd66687901a6ff8.zip gcc-b2e34bc12529ed3d3c046d3b1cd66687901a6ff8.tar.gz gcc-b2e34bc12529ed3d3c046d3b1cd66687901a6ff8.tar.bz2 |
ppu_intrinsics.h (__protected_stream_count): Rename count macro arugment for clarity.
* 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
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r-- | gcc/config/rs6000/ppu_intrinsics.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/rs6000/ppu_intrinsics.h b/gcc/config/rs6000/ppu_intrinsics.h index b18f42d..7a7551e 100644 --- a/gcc/config/rs6000/ppu_intrinsics.h +++ b/gcc/config/rs6000/ppu_intrinsics.h @@ -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) |