blob: 91d6bd56672352e63c3c08f30f58655b876cfcc7 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target cv_alu } */
/* { dg-options "-march=rv32i_xcvalu -mabi=ilp32" } */
extern int d;
void
foo(int a, int b)
{
d = __builtin_riscv_cv_alu_subN (a, b, 65536); /* { dg-warning "unsigned conversion from \'int\' to \'unsigned char\' changes value from \'65536\' to \'0\'" } */
}