brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · bff3ab4 Raw
20 lines · plain
1// RUN: %clang_cc1 %s -triple spir-unknown-unknown -finclude-default-header  -fdeclare-opencl-builtins -verify -cl-std=CL1.2 -emit-llvm -o - -cl-ext=-all2 3void test_negative() {4    uchar4 ua8, ub8;5    char4 sa8, sb8;6    ushort2 ua16, ub16;7    short2 sa16, sb16;8    uint ur;9    int sr;10    ur = arm_dot(ua8, ub8); // expected-error{{use of undeclared identifier 'arm_dot'}}11    sr = arm_dot(sa8, sb8); // expected-error{{use of undeclared identifier 'arm_dot'}}12    ur = arm_dot_acc(ua8, ub8, ur); // expected-error{{use of undeclared identifier 'arm_dot_acc'}}13    sr = arm_dot_acc(sa8, sb8, sr); // expected-error{{use of undeclared identifier 'arm_dot_acc'}}14    ur = arm_dot_acc(ua16, ub16, ur); // expected-error{{use of undeclared identifier 'arm_dot_acc'}}15    sr = arm_dot_acc(sa16, sb16, sr); // expected-error{{use of undeclared identifier 'arm_dot_acc'}}16    ur = arm_dot_acc_sat(ua8, ub8, ur); // expected-error{{use of undeclared identifier 'arm_dot_acc_sat'}}17    sr = arm_dot_acc_sat(sa8, sb8, sr); // expected-error{{use of undeclared identifier 'arm_dot_acc_sat'}}18}19 20