HomePhabricator

[PowerPC] Fix vec_add for 64-bit on pre-Power7 subtargets

Authored by nemanjai on Jun 24 2021, 4:41 PM.

Description

[PowerPC] Fix vec_add for 64-bit on pre-Power7 subtargets

The shift of the carry was actually incorrect.

Details

Committed
nemanjaiJun 24 2021, 4:42 PM
Parents
rGf0dd6faaecc8: Update Bazel build for 744146f60b
Branches
Unknown
Tags
Unknown

Event Timeline

bmahjour added inline comments.
/clang/lib/Headers/altivec.h
316

Don't we get here for P9/P10 compilations on LE because of #if ... && defined(__powerpc64__) on line 285?

bmahjour added inline comments.Jun 25 2021, 9:09 AM
/clang/lib/Headers/altivec.h
316

never mind __powerpc64__ is also defined on LE (thought it would be __powerpc64le__, but it's not)