
This built-in maps to `V_CVT_OFF_F32_I4` which treats its input as a 4-bit signed integer and returns `0.0625f * src`. SWDEV-518861
9 lines
506 B
Common Lisp
9 lines
506 B
Common Lisp
// RUN: %clang_cc1 -triple amdgcn-- -verify -S -o - %s
|
|
|
|
void test_builtin_amdgcn_cvt_off_f32_i4(int n) {
|
|
struct A{ unsigned x; } a;
|
|
__builtin_amdgcn_cvt_off_f32_i4(n, n); // expected-error {{too many arguments to function call, expected 1, have 2}}
|
|
__builtin_amdgcn_cvt_off_f32_i4(); // expected-error {{too few arguments to function call, expected 1, have 0}}
|
|
__builtin_amdgcn_cvt_off_f32_i4(a); // expected-error {{passing '__private struct A' to parameter of incompatible type 'int'}}
|
|
}
|