[PATCH] [PowerPC] Add missing predefined functions to altivec.h

Bill Schmidt wschmidt at linux.vnet.ibm.com
Fri May 29 12:24:03 PDT 2015


In http://reviews.llvm.org/D10131#181165, @seurer wrote:

> There are hundreds of missing functions.  These are just the first batch that I got done.
>
> The check for __POWER8_VECTOR__ is what is done for other vector long long functions in altivec.h.  See vec_mule, vec_packs, and etc.  Which one is actually correct?


The answer is dependent upon each instruction.  Is it from ISA 2.06 (__VSX__) or ISA 2.07 (__POWER8_VECTOR__)?

A good way to check this is to use the 2.07 ISA as your reference.  If the instruction has a full change bar by its description, then use __POWER8_VECTOR__.  Otherwise use __VSX__.


http://reviews.llvm.org/D10131

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list