forked from OSchip/llvm-project
[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:
parent
c8cd1a994d
commit
25f2639fab
|
@ -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 ---
|
||||
|
|
Loading…
Reference in New Issue