HomePhabricator

[PPC] support for arithmetic builtins in the FE

Description

[PPC] support for arithmetic builtins in the FE

(commit again after fixing the buildbot failures)
This adds various overloads of the following builtins to altivec.h:

vec_neg
vec_nabs
vec_adde
vec_addec
vec_sube
vec_subec
vec_subc

Note that for vec_sub builtins on 32 bit integers, the semantics is similar to
what ISA describes for instructions like vsubecuq that work on quadwords: the
first operand is added to the one's complement of the second operand. (As
opposed to two's complement which I expected).

Details

Committed
amehsanNov 24 2016, 4:40 AM
Parents
rL287871: [AVR] Mark the 'select-must-add-unconditional-jump' test as 'XFAIL'
Branches
Unknown
Tags
Unknown