[OpenCL] Fix 'any' and 'all' builtins

These should only be defined for signed integer types according to
OpenCL v2.0 s6.12.6.
This commit is contained in:
Sven van Haastregt 2020-03-09 10:26:11 +00:00
parent c8cd1a994d
commit 25f2639fab
1 changed files with 1 additions and 1 deletions

View File

@ -687,7 +687,7 @@ foreach name = ["isfinite", "isinf", "isnan", "isnormal", "signbit"] in {
def : Builtin<name, [GenTypeShortVecNoScalar, GenTypeHalfVecNoScalar], Attr.Const>;
}
foreach name = ["any", "all"] in {
def : Builtin<name, [Int, AIGenTypeN], Attr.Const>;
def : Builtin<name, [Int, SGenTypeN], Attr.Const>;
}
// --- 2 arguments ---