[PowerPC] SemaChecking for darn family of builtins
authorAlbion Fung <albionapc@gmail.com>
Thu, 23 Sep 2021 19:44:06 +0000 (14:44 -0500)
committerAlbion Fung <albionapc@gmail.com>
Fri, 24 Sep 2021 04:38:59 +0000 (23:38 -0500)
commit840afbde48e90213028174fdba715e10aa39dd85
tree5acda713a3fd550e4733ba173cb1212e32e96821
parent165926aa4ce9f05572cf8828210a1af5ce286bdb
[PowerPC] SemaChecking for darn family of builtins

The __darn family of builtins are only available on Pwr9,
and only __darn_32 is available on both 64 and 32 bit, while the rest
are only available on 64 bit. The patch adds sema checking
for these builtins and separate the __darn_32's 32 bit
test cases.

Differential revision: https://reviews.llvm.org/D110282
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/builtins-ppc-xlcompat-darn.c
clang/test/CodeGen/builtins-ppc-xlcompat-error.c
clang/test/CodeGen/builtins-ppc.c