/llvm-project/libclc/generic/lib/math/ |
H A D | tables.cl | 27 DECLARE_TABLE(float2, LOGE_TBL, 129) = { 28 (float2)(0x0.000000p+0f, 0x0.000000p+0f), 29 (float2)(0x1.fe0000p-8f, 0x1.535882p-23f), 30 (float2)(0x1.fc0000p-7f, 0x1.5161f8p-20f), 31 (float2)(0x1.7b8000p-6f, 0x1.1b07d4p-18f), 32 (float2)(0x1.f82000p-6f, 0x1.361cf0p-19f), 33 (float2)(0x1.39e000p-5f, 0x1.0f73fcp-18f), 34 (float2)(0x1.774000p-5f, 0x1.63d8cap-19f), 35 (float2)(0x1.b42000p-5f, 0x1.bae232p-18f), 36 (float2)( [all...] |
H A D | tables.h |
|
/llvm-project/clang/test/AST/HLSL/ |
H A D | pch.hlsl | 8 …ecl 0x[[FOO:[0-9a-f]+]] <{{.*}}:2:1, line:4:1> line:2:8 imported used foo 'float2 (float2, float2)' 12 float2 bar(float2 a, float2 b) { 13 // CHECK:CallExpr 0x{{[0-9a-f]+}} <col:10, col:18> 'float2':'vector<float, 2>' 14 // CHECK-NEXT:ImplicitCastExpr 0x{{[0-9a-f]+}} <col:10> 'float2 (*)(float2, float2)' <FunctionToPoi… 15 …clRefExpr 0x{{[0-9a-f]+}} <col:10> 'float2 (float2, float2)' lvalue Function 0x[[FOO]] 'foo' 'floa…
|
H A D | pch_with_buf.hlsl | 6 …ecl 0x[[FOO:[0-9a-f]+]] <{{.*}}:2:1, line:4:1> line:2:8 imported used foo 'float2 (float2, float2)' 13 float2 bar(float2 a, float2 b) { 14 // CHECK:CallExpr 0x{{[0-9a-f]+}} <col:10, col:18> 'float2':'vector<float, 2>' 15 // CHECK-NEXT:ImplicitCastExpr 0x{{[0-9a-f]+}} <col:10> 'float2 (*)(float2, float2)' <FunctionToPoi… 16 …clRefExpr 0x{{[0-9a-f]+}} <col:10> 'float2 (float2, float2)' lvalue Function 0x[[FOO]] 'foo' 'floa…
|
H A D | vector-constructors.hlsl | 4 typedef float float2 __attribute__((ext_vector_type(2))); 9 float2 Vec2 = float2(1.0, 2.0); 13 // For the float2 vector, we just expect a conversion from constructor 15 // CHECK-LABEL: VarDecl 0x{{[0-9a-fA-F]+}} {{.*}} used Vec2 'float2':'vector<float, 2>' cinit 16 // CHECK-NEXT: CXXFunctionalCastExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float2':'vector<float, 2>' functional cast to float2 <NoOp> 17 // CHECK-NEXT: InitListExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float2':'vector<float, 2>' 30 // CHECK-NEXT: DeclRefExpr 0x{{[0-9a-fA-F]+}} {{.*}} 'float2':'vector<float, 2>' lvalue Var 0x{{[0-9a-fA-F]+}} 'Vec2' 'float2' [all...] |
/llvm-project/clang/test/SemaHLSL/ |
H A D | VectorElementOverloadResolution.hlsl | 15 void HalfFloatDouble(float2 F); 19 // CHECK: FunctionDecl {{.*}} used HalfFloatDouble 'void (float2)' 23 void FloatDouble(float2 F); // expected-note {{candidate function}} 26 // CHECK: FunctionDecl {{.*}} used FloatDouble 'void (float2)' 34 void HalfFloat(float2 F); // expected-note {{candidate function}} 37 // CHECK: FunctionDecl {{.*}} used HalfFloat 'void (float2)' 41 void Float(float2 F); 45 // CHECK: FunctionDecl {{.*}} used Float 'void (float2)' 56 // CHECK-LABEL: FunctionDecl {{.*}} Case1 'void (half2, float2, double2)' 57 void Case1(half2 H, float2 [all...] |
H A D | VectorOverloadResolution.hlsl | 6 // CHECK: FunctionDecl {{.*}} Call 'void (float2)' 11 // CHECK-NEXT: ImplicitCastExpr {{.*}} 'float2':'vector<float, 2>' <LValueToRValue> 12 // CHECK-NEXT: DeclRefExpr {{.*}} 'float2':'vector<float, 2>' lvalue ParmVar {{.*}} 'F' 'float2':'vector<float, 2>' 14 void Call(float2 F) { 48 // CHECK: FunctionDecl {{.*}} Call4 'void (float2)' 53 // CHECK-NEXT: ImplicitCastExpr {{.*}} 'float2':'vector<float, 2>' <LValueToRValue> 54 // CHECK-NEXT: DeclRefExpr {{.*}} 'float2':'vector<float, 2>' lvalue ParmVar {{.*}} 'p0' 'float2':'vector<float, 2>' 57 void Call4(float2 p [all...] |
/llvm-project/clang/test/SemaHLSL/BuiltIns/ |
H A D | mad-errors.hlsl | 3 float2 test_no_second_arg(float2 p0) { 8 float2 test_no_third_arg(float2 p0) { 13 float2 test_too_many_arg(float2 p0) { 18 float2 test_mad_no_second_arg(float2 p0) { 23 float2 test_mad_vector_size_mismatch(float3 p0, float2 p [all...] |
H A D | clamp-errors.hlsl | 3 float2 test_no_second_arg(float2 p0) { 8 float2 test_no_third_arg(float2 p0) { 13 float2 test_too_many_arg(float2 p0) { 18 float2 test_clamp_no_second_arg(float2 p0) { 23 float2 test_clamp_vector_size_mismatch(float3 p0, float2 p1) { 28 float2 test_clamp_builtin_vector_size_mismatch(float3 p0, float2 p1) { 38 float2 test_clamp_element_type_mismatch(half2 p0, float2 p1) { 43 float2 test_builtin_clamp_float2_splat(float p0, float2 p1) { 58 float2 test_clamp_float2_int_splat(float2 p0, int p1) { 68 float2 test_builtin_clamp_int_vect_to_float_vec_promotion(int2 p0, float p1) {
|
H A D | lerp-errors.hlsl | 3 float2 test_no_second_arg(float2 p0) { 8 float2 test_no_third_arg(float2 p0) { 13 float2 test_too_many_arg(float2 p0) { 18 float2 test_lerp_no_second_arg(float2 p0) { 23 float2 test_lerp_vector_trunc_warn1(float3 p0) { 28 float2 test_lerp_vector_trunc_warn [all...] |
H A D | vector-constructors-erros.hlsl | 3 typedef float float2 __attribute__((ext_vector_type(2))); 11 float2 LilVec = float2(1.0, 2.0); 12 …float2 BrokenVec = float2(1.0, 2.0, 3.0); // expected-error{{excess elements in vector initializer… 19 …float2 GettingStrange = float2(s, s); // expected-error{{no viable conversion from 'S' to 'float'}… 21 …float2 EvenStranger = float2(s2); // expected-error{{cannot convert 'S2' to 'float2' (vector of 2 …
|
H A D | dot-errors.hlsl | 3 float test_no_second_arg(float2 p0) { 8 float test_too_many_arg(float2 p0) { 13 float test_dot_no_second_arg(float2 p0) { 18 float test_dot_vector_size_mismatch(float3 p0, float2 p1) { 23 float test_dot_builtin_vector_size_mismatch(float3 p0, float2 p1) { 33 float test_dot_element_type_mismatch(int2 p0, float2 p1) { 39 float test_builtin_dot_vec_int_to_float_promotion(int2 p0, float2 p1) { 49 float test_builtin_dot_vec_half_to_float_promotion(float2 p0, half2 p1) { 55 float test_builtin_dot_vec_int16_to_float_promotion(float2 p0, int16_t2 p1) { 77 float test_builtin_dot_float2_splat(float p0, float2 p1) { [all …]
|
/llvm-project/clang/test/SemaOpenCL/ |
H A D | arithmetic-conversions.cl | 3 typedef float float2 __attribute__((ext_vector_type(2))); 7 …float2 in, global float2 *out) { *out = in + 0.5;} // expected-error {{scalar operand type has gre… 9 …float2 in, global float2 *out) { *out = 0.5 + in;} // expected-error {{scalar operand type has gre… 11 kernel void foo3(float2 in, global float2 *out) { *out = 0.5f + in;} 15 kernel void foo5(float2 in, global float2 *out) { 17 …t convert between vector and non-scalar values ('__private float *' and 'float2' (vector of 2 'flo…
|
H A D | cond.cl | 11 typedef float float2 __attribute__((ext_vector_type(2))); 45 float2 ptest06(int2 C, float X, float Y) 51 float2 ptest07(int2 C, int X, float Y) 57 float2 ptest08(int2 C, int X, float2 Y) 63 float2 ptest09(float2 A, float2 B, float2 C, float2 D) 85 float2 ntest04(int2 C, int2 X, float2 Y) 87 …conversions between vector types ('int2' (vector of 2 'int' values) and 'float2' (vector of 2 'flo… 90 float2 ntest05(int2 C, int2 X, float Y) 105 float2 ntest08(float2 C, float2 X, float2 Y) 107 …return C ? X : Y; // expected-error {{used type 'float2' (vector of 2 'float' values) where floati…
|
/llvm-project/clang/lib/Headers/hlsl/ |
H A D | hlsl_intrinsics.h | 88 float2 abs(float2); 134 float2 acos(float2); 219 bool all(float2); 331 bool any(float2); 437 float2 asin(float2); 499 float2 atan(float2); [all...] |
/llvm-project/llvm/test/CodeGen/NVPTX/ |
H A D | param-overalign.ll | 6 %struct.float2 = type { float, float } 42 %s1 = insertvalue %struct.float2 poison, float %a, 0 43 %s2 = insertvalue %struct.float2 %s1, float %b, 1 44 %r = call float @callee_md(%struct.float2 %s2) 48 define float @callee_md(%struct.float2 %a) { 58 %v0 = extractvalue %struct.float2 %a, 0 59 %v1 = extractvalue %struct.float2 %a, 1 86 %s1 = insertvalue %struct.float2 poison, float %a, 0 87 %s2 = insertvalue %struct.float2 %s1, float %b, 1 88 %r = call float @callee(%struct.float2 [all...] |
/llvm-project/llvm/test/ExecutionEngine/MCJIT/ |
H A D | test-setcond-fp.ll | 9 %float2 = fadd float 0.000000e+00, 0.000000e+00 ; <float> [#uses=6] 10 %test49 = fcmp oeq float %float1, %float2 ; <i1> [#uses=0] 11 %test50 = fcmp oge float %float1, %float2 ; <i1> [#uses=0] 12 %test51 = fcmp ogt float %float1, %float2 ; <i1> [#uses=0] 13 %test52 = fcmp ole float %float1, %float2 ; <i1> [#uses=0] 14 %test53 = fcmp olt float %float1, %float2 ; <i1> [#uses=0] 15 %test54 = fcmp une float %float1, %float2 ; <i1> [#uses=0]
|
/llvm-project/llvm/test/ExecutionEngine/ |
H A D | test-interp-vec-setcond-fp.ll |
|
/llvm-project/clang/test/CodeGen/ |
H A D | nofpclass.c | 17 typedef float float2 __attribute__((ext_vector_type(2))); typedef 23 extern float2 extern_func_vec(float2, double2, half2); 323 float2 call_extern_func_vec(float2 a, double2 b, half2 c) { in call_extern_func_vec() 1091 float2 v2f32, double2 v2f64, half2 v2f16, in call_variadic() 1350 float2 v2f32, double2 v2f64, half2 v2f16, in call_variadic_indirect()
|
/llvm-project/clang/test/Sema/ |
H A D | ext_vector_components.c | 3 typedef __attribute__(( ext_vector_type(2) )) float float2; typedef 11 float2 vec2, vec2_2; in test() 71 float2 lo(float3 x) { return x.lo; } in lo() 72 float2 hi(float3 x) { return x.hi; } in hi() 73 float2 ev(float3 x) { return x.even; } in ev() 74 float2 od(float3 x) { return x.odd; } in od()
|
H A D | ext_vector_casts.c | 5 typedef __attribute__(( ext_vector_type(2) )) float float2; typedef 17 float2 vec2; in test() 44 vec4 = (float4)vec2; // expected-error {{invalid conversion between ext-vector type 'float4' (vector of 4 'float' values) and 'float2' (vector of 2 'float' values)}} in test() 61 typedef __attribute__(( ext_vector_type(2) )) float2 vecfloat2; // expected-error{{invalid vector element type 'float2' (vector of 2 'float' values)}} in inc() 63 void inc(float2 f2) { 64 f2++; // expected-error{{cannot increment value of type 'float2' (vector of 2 'float' values)}} 65 __real f2; // expected-error{{invalid type 'float2' (vector of 2 'float' values) to __real operator}} 104 float2 vf = f; in splats() 121 vf = l + vf; // expected-warning {{implicit conversion from 'long' to 'float2' (vecto in splats() [all...] |
/llvm-project/libclc/r600/lib/image/ |
H A D | read_imagef.cl | 3 _CLC_DECL float4 __clc_read_imagef_tex(image2d_t, sampler_t, float2); 7 float2 coord_float = (float2)(coord.x, coord.y); 12 float2 coord) {
|
H A D | read_imageui.cl | 3 _CLC_DECL float4 __clc_read_imagef_tex(image2d_t, sampler_t, float2); 15 float2 coord_float = (float2)(coord.x, coord.y); 20 float2 coord) {
|
H A D | read_imagei.cl | 3 _CLC_DECL float4 __clc_read_imagef_tex(image2d_t, sampler_t, float2); 15 float2 coord_float = (float2)(coord.x, coord.y); 20 float2 coord) {
|
/llvm-project/llvm/test/CodeGen/SystemZ/ |
H A D | frame-15.ll | 43 %float2 = load float, ptr %ptr2 45 %double2 = fpext float %float2 to double 68 %float2 = load float, ptr %ptr2 70 %double2 = fpext float %float2 to double 93 %float2 = load float, ptr %ptr2 95 %double2 = fpext float %float2 to double 118 %float2 = load float, ptr %ptr2 120 %double2 = fpext float %float2 to double 143 %float2 = load float, ptr %ptr2 145 %double2 = fpext float %float2 to double [all …]
|