[PATCH] [PPC64] Add 64-bit Vector Integer Arithmetic Instructions

Kit Barton kbarton at ca.ibm.com
Tue Mar 3 13:18:24 PST 2015


Hi hfinkel, wschmidt, seurer, nemanjai,

Clang-related changes for http://reviews.llvm.org/D7959

Add builtins for the following 64-bit vector integer arithmetic instructions added in POWER8:

vmulesw
vmulosw
vmuleuw
vmulouw
vmuluwm
vmaxsd
vmaxud
vminsd
vminud
vcmpequd
vcmpequd.
vcmpgtsd
vcmpgtsd.
vcmpgtud
vcmpgtud.
vrld
vsld
vsrd
vsrad

All builtins are added in altivec.h, and guarded with the __POWER8_VECTOR__ macro.

http://reviews.llvm.org/D8041

Files:
  include/clang/Basic/BuiltinsPPC.def
  lib/Headers/altivec.h
  test/CodeGen/builtins-ppc-p8vector.c
  test/Headers/altivec-intrin.c

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8041.21135.patch
Type: text/x-patch
Size: 68095 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150303/a3b16d14/attachment.bin>


More information about the cfe-commits mailing list