This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH [mainline] fix vec_mergeh/vec_mergel in altivec.h



This patch is to correct macro definitions for vec_mergeh/vec_mergel in altivec.h for
powerpc-darwin. powerpc-darwin bootstrapped, dejagnu tested.


OK for mainline?

- Fariborz Jahanian (fjahanian@apple.com)



ChangeLog:

2004-04-12 Fariborz Jahanian <fjahanian@apple.com>

        * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
        Definition of these two macros are corrected by adding
        matchine right paren.

Index: altivec.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/rs6000/altivec.h,v
retrieving revision 1.30
diff -c -p -r1.30 altivec.h
*** altivec.h 20 Mar 2004 02:56:51 -0000 1.30
--- altivec.h 9 Apr 2004 19:44:59 -0000
*************** __ch (__bin_args_eq (vector unsigned int
*** 8902,8908 ****
((vector unsigned int) __builtin_altivec_vmrghw ((vector signed int) (a1), (vector signed int) (a2))), \
__ch (__bin_args_eq (vector bool int, (a1), vector bool int, (a2)), \
((vector bool int) __builtin_altivec_vmrghw ((vector signed int) (a1), (vector signed int) (a2))), \
! __builtin_altivec_compiletime_error ("vec_mergeh")))))))))))


#define vec_vmrghw(a1, a2) \
__ch (__bin_args_eq (vector float, (a1), vector float, (a2)), \
--- 8902,8908 ----
((vector unsigned int) __builtin_altivec_vmrghw ((vector signed int) (a1), (vector signed int) (a2))), \
__ch (__bin_args_eq (vector bool int, (a1), vector bool int, (a2)), \
((vector bool int) __builtin_altivec_vmrghw ((vector signed int) (a1), (vector signed int) (a2))), \
! __builtin_altivec_compiletime_error ("vec_mergeh"))))))))))))


#define vec_vmrghw(a1, a2) \
__ch (__bin_args_eq (vector float, (a1), vector float, (a2)), \
*************** __ch (__bin_args_eq (vector unsigned int
*** 8950,8956 ****
((vector unsigned int) __builtin_altivec_vmrglw ((vector signed int) (a1), (vector signed int) (a2))), \
__ch (__bin_args_eq (vector bool int, (a1), vector bool int, (a2)), \
((vector bool int) __builtin_altivec_vmrglw ((vector signed int) (a1), (vector signed int) (a2))), \
! __builtin_altivec_compiletime_error ("vec_mergel"))))))))


#define vec_vmrglw(a1, a2) \
__ch (__bin_args_eq (vector float, (a1), vector float, (a2)), \
--- 8950,8956 ----
((vector unsigned int) __builtin_altivec_vmrglw ((vector signed int) (a1), (vector signed int) (a2))), \
__ch (__bin_args_eq (vector bool int, (a1), vector bool int, (a2)), \
((vector bool int) __builtin_altivec_vmrglw ((vector signed int) (a1), (vector signed int) (a2))), \
! __builtin_altivec_compiletime_error ("vec_mergel"))))))))))))


  #define vec_vmrglw(a1, a2) \
  __ch (__bin_args_eq (vector float, (a1), vector float, (a2)), \


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]