27 lines · plain
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9__kernel void test_subsat_char(char *a, char x, char y) {10 *a = sub_sat(x, y);11 return;12}13 14__kernel void test_subsat_uchar(uchar *a, uchar x, uchar y) {15 *a = sub_sat(x, y);16 return;17}18 19__kernel void test_subsat_long(long *a, long x, long y) {20 *a = sub_sat(x, y);21 return;22}23 24__kernel void test_subsat_ulong(ulong *a, ulong x, ulong y) {25 *a = sub_sat(x, y);26 return;27}