-
Bug
-
Resolution: Fixed
-
Medium
-
Code Generation Tools
-
CODEGEN-10249
-
C7000_3.0.0.STS
-
C7000_3.1.0.LTS*
-
default
-
Use an explicit cast on the scalar operand to the vector element type.
Vector operators in which one operand is a scalar may not apply implicit conversions to the scalar operand in host emulation. For example, the following will result in a compilation error due to failing template argument deduction in host emulation:
uint8_t op2;
int16 foo(int * op1, int ch)
Workaround:
If the scalar operand is explicitly cast to the element type of the vector, no compilation error will occur in host emulation:
uint8_t op2;
int16 foo(int * op1, int ch)