Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile the generate testcase #8

Open
sjowoj opened this issue Mar 22, 2024 · 5 comments
Open

Can't compile the generate testcase #8

sjowoj opened this issue Mar 22, 2024 · 5 comments

Comments

@sjowoj
Copy link

sjowoj commented Mar 22, 2024

I use the toolchain provided by GNU but can't compile the testcases. The reason may be the latest version is incompatible with the fuzzing tool. Could you provide the zip file of the environment please? I have tried to use the tar file of toolchain in your another git release but still can't work. I would appreciate it if you can help

@XYenChi
Copy link
Collaborator

XYenChi commented Apr 2, 2024

Could you show me your command line to use the fuzzing tool and error message?

@sjowoj
Copy link
Author

sjowoj commented Apr 5, 2024

error: incompatible types when initializing type 'vuint16m1_t' using type 'int'

@sjowoj
Copy link
Author

sjowoj commented Apr 5, 2024

and have these type errors:
error: incompatible types when initializing type 'vbool16_t' using type 'int'
error: incompatible types when initializing type 'vint64m1_t' using type 'int'
error: incompatible types when initializing type 'vint8mf8_t' using type 'int'

@sjowoj
Copy link
Author

sjowoj commented Apr 7, 2024

I use the command line "./tool/random_gen -c MsgeVX64VBool.c" to create one testcase, and the command line I use to compile one testcase file generated by the tool is "riscv64-unknown-elf-gcc -march=rv64gcv -mabi=lp64d -o MsgeVX64VBool.o MsgeVX64VBool.c"

@sjowoj
Copy link
Author

sjowoj commented Apr 7, 2024

MsgeVX64VBool.c: In function 'vredmax_vs_operator_4':
MsgeVX64VBool.c:86:26: warning: implicit declaration of function 'vmv_v_x_i64m1' [-Wimplicit-function-declaration]
86 | vint64m1_t placeholder4= vmv_v_x_i64m1(0, vsetvlmax_e64m1());
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:86:43: warning: implicit declaration of function 'vsetvlmax_e64m1' [-Wimplicit-function-declaration]
86 | vint64m1_t placeholder4= vmv_v_x_i64m1(0, vsetvlmax_e64m1());
| ^~~~~~~~~~~~~~~
MsgeVX64VBool.c:86:26: error: incompatible types when initializing type 'vint64m1_t' using type 'int'
86 | vint64m1_t placeholder4= vmv_v_x_i64m1(0, vsetvlmax_e64m1());
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:87:26: warning: implicit declaration of function 'vmv_v_v_i64m1' [-Wimplicit-function-declaration]
87 | vint64m1_t placeholder5= vmv_v_v_i64m1(placeholder4, vsetvlmax_e64m1());
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:87:26: error: incompatible types when initializing type 'vint64m1_t' using type 'int'
MsgeVX64VBool.c:89:6: warning: implicit declaration of function 'vsetvl_e64m1' [-Wimplicit-function-declaration]
89 | vl = vsetvl_e64m1(placeholder3);
| ^~~~~~~~~~~~
MsgeVX64VBool.c:90:26: warning: implicit declaration of function 'vle8_v_i8mf8' [-Wimplicit-function-declaration]
90 | vint8mf8_t vec_value_13= vle8_v_i8mf8(placeholder0, vl);
| ^~~~~~~~~~~~
MsgeVX64VBool.c:90:26: error: incompatible types when initializing type 'vint8mf8_t' using type 'int'
MsgeVX64VBool.c:91:28: warning: implicit declaration of function 'vmseq_vx_i8mf8_b64' [-Wimplicit-function-declaration]
91 | vbool64_t mask_value_13_0= vmseq_vx_i8mf8_b64(vec_value_13, 1, vl);
| ^~~~~~~~~~~~~~~~~~
MsgeVX64VBool.c:91:28: error: incompatible types when initializing type 'vbool64_t' using type 'int'
MsgeVX64VBool.c:92:28: warning: implicit declaration of function 'vle64_v_i64m1' [-Wimplicit-function-declaration]
92 | vint64m1_t vec_value_14_0= vle64_v_i64m1(placeholder1, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:92:28: error: incompatible types when initializing type 'vint64m1_t' using type 'int'
MsgeVX64VBool.c:93:16: warning: implicit declaration of function 'vredmax_vs_i64m1_i64m1_m' [-Wimplicit-function-declaration]
93 | placeholder5 = vredmax_vs_i64m1_i64m1_m (mask_value_13_0, placeholder5, vec_value_14_0, placeholder5, vl);
| ^~~~~~~~~~~~~~~~~~~~~~~~
MsgeVX64VBool.c:93:16: error: incompatible types when assigning to type 'vint64m1_t' from type 'int'
MsgeVX64VBool.c:98:16: warning: implicit declaration of function 'vmv_x_s_i64m1_i64' [-Wimplicit-function-declaration]
98 | *placeholder6= vmv_x_s_i64m1_i64(placeholder5);
| ^~~~~~~~~~~~~~~~~
MsgeVX64VBool.c: In function 'vmsgeu_vv_operator_3':
MsgeVX64VBool.c:108:6: warning: implicit declaration of function 'vsetvl_e16m1' [-Wimplicit-function-declaration]
108 | vl = vsetvl_e16m1(placeholder10);
| ^~~~~~~~~~~~
MsgeVX64VBool.c:109:29: warning: implicit declaration of function 'vle16_v_u16m1' [-Wimplicit-function-declaration]
109 | vuint16m1_t vec_value_10_0= vle16_v_u16m1(placeholder7, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:109:29: error: incompatible types when initializing type 'vuint16m1_t' using type 'int'
MsgeVX64VBool.c:110:29: error: incompatible types when initializing type 'vuint16m1_t' using type 'int'
110 | vuint16m1_t vec_value_11_0= vle16_v_u16m1(placeholder8, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:112:27: warning: implicit declaration of function 'vmsgeu_vv_u16m1_b16' [-Wimplicit-function-declaration]
112 | vbool16_t vec_value_12_0= vmsgeu_vv_u16m1_b16(vec_value_10_0, vec_value_11_0, vl);
| ^~~~~~~~~~~~~~~~~~~
MsgeVX64VBool.c:112:27: error: incompatible types when initializing type 'vbool16_t' using type 'int'
MsgeVX64VBool.c:115:16: warning: implicit declaration of function 'vsetvlmax_e8mf2' [-Wimplicit-function-declaration]
115 | size_t vlmax = vsetvlmax_e8mf2();
| ^~~~~~~~~~~~~~~
MsgeVX64VBool.c:116:19: warning: implicit declaration of function 'vmv_v_x_i8mf2' [-Wimplicit-function-declaration]
116 | vint8mf2_t zero = vmv_v_x_i8mf2(0, vlmax);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:116:19: error: incompatible types when initializing type 'vint8mf2_t' using type 'int'
MsgeVX64VBool.c:117:24: warning: implicit declaration of function 'vmerge_vxm_i8mf2' [-Wimplicit-function-declaration]
117 | vint8mf2_t vec_store = vmerge_vxm_i8mf2(vec_value_12_0, zero, 1, vl);
| ^~~~~~~~~~~~~~~~
MsgeVX64VBool.c:117:24: error: incompatible types when initializing type 'vint8mf2_t' using type 'int'
MsgeVX64VBool.c:118:1: warning: implicit declaration of function 'vse8_v_i8mf2' [-Wimplicit-function-declaration]
118 | vse8_v_i8mf2(placeholder9, vec_store, vl);
| ^~~~~~~~~~~~
MsgeVX64VBool.c: In function 'vmseq_vx_operator_2':
MsgeVX64VBool.c:139:6: warning: implicit declaration of function 'vsetvl_e32m1' [-Wimplicit-function-declaration]
139 | vl = vsetvl_e32m1(placeholder14);
| ^~~~~~~~~~~~
MsgeVX64VBool.c:140:27: warning: implicit declaration of function 'vle32_v_i32m1' [-Wimplicit-function-declaration]
140 | vint32m1_t vec_value_8_0= vle32_v_i32m1(placeholder11, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:140:27: error: incompatible types when initializing type 'vint32m1_t' using type 'int'
MsgeVX64VBool.c:142:26: warning: implicit declaration of function 'vmseq_vx_i32m1_b32' [-Wimplicit-function-declaration]
142 | vbool32_t vec_value_3_0= vmseq_vx_i32m1_b32(vec_value_8_0, placeholder12, vl);
| ^~~~~~~~~~~~~~~~~~
MsgeVX64VBool.c:142:26: error: incompatible types when initializing type 'vbool32_t' using type 'int'
MsgeVX64VBool.c:145:16: warning: implicit declaration of function 'vsetvlmax_e8mf4' [-Wimplicit-function-declaration]
145 | size_t vlmax = vsetvlmax_e8mf4();
| ^~~~~~~~~~~~~~~
MsgeVX64VBool.c:146:19: warning: implicit declaration of function 'vmv_v_x_i8mf4' [-Wimplicit-function-declaration]
146 | vint8mf4_t zero = vmv_v_x_i8mf4(0, vlmax);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:146:19: error: incompatible types when initializing type 'vint8mf4_t' using type 'int'
MsgeVX64VBool.c:147:24: warning: implicit declaration of function 'vmerge_vxm_i8mf4' [-Wimplicit-function-declaration]
147 | vint8mf4_t vec_store = vmerge_vxm_i8mf4(vec_value_3_0, zero, 1, vl);
| ^~~~~~~~~~~~~~~~
MsgeVX64VBool.c:147:24: error: incompatible types when initializing type 'vint8mf4_t' using type 'int'
MsgeVX64VBool.c:148:1: warning: implicit declaration of function 'vse8_v_i8mf4' [-Wimplicit-function-declaration]
148 | vse8_v_i8mf4(placeholder13, vec_store, vl);
| ^~~~~~~~~~~~
MsgeVX64VBool.c: In function 'vluxei8_v_operator_1':
MsgeVX64VBool.c:166:25: error: incompatible types when initializing type 'vint8mf8_t' using type 'int'
166 | vint8mf8_t vec_value_3= vle8_v_i8mf8(placeholder15, vl);
| ^~~~~~~~~~~~
MsgeVX64VBool.c:167:27: error: incompatible types when initializing type 'vbool64_t' using type 'int'
167 | vbool64_t mask_value_3_0= vmseq_vx_i8mf8_b64(vec_value_3, 1, vl);
| ^~~~~~~~~~~~~~~~~~
MsgeVX64VBool.c:168:28: warning: implicit declaration of function 'vle64_v_u64m1' [-Wimplicit-function-declaration]
168 | vuint64m1_t vec_value_4_0= vle64_v_u64m1(placeholder16, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:168:28: error: incompatible types when initializing type 'vuint64m1_t' using type 'int'
MsgeVX64VBool.c:169:28: warning: implicit declaration of function 'vle8_v_u8mf8' [-Wimplicit-function-declaration]
169 | vuint8mf8_t vec_value_6_0= vle8_v_u8mf8(placeholder18, vl);
| ^~~~~~~~~~~~
MsgeVX64VBool.c:169:28: error: incompatible types when initializing type 'vuint8mf8_t' using type 'int'
MsgeVX64VBool.c:171:28: warning: implicit declaration of function 'vmv_v_x_u8mf8' [-Wimplicit-function-declaration]
171 | vuint8mf8_t placeholder22= vmv_v_x_u8mf8(0, vsetvlmax_e8mf8());
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:171:45: warning: implicit declaration of function 'vsetvlmax_e8mf8' [-Wimplicit-function-declaration]
171 | vuint8mf8_t placeholder22= vmv_v_x_u8mf8(0, vsetvlmax_e8mf8());
| ^~~~~~~~~~~~~~~
MsgeVX64VBool.c:171:28: error: incompatible types when initializing type 'vuint8mf8_t' using type 'int'
171 | vuint8mf8_t placeholder22= vmv_v_x_u8mf8(0, vsetvlmax_e8mf8());
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:172:17: warning: implicit declaration of function 'vremu_vx_u8mf8_m' [-Wimplicit-function-declaration]
172 | vec_value_6_0 = vremu_vx_u8mf8_m(mask_value_3_0, placeholder22, vec_value_6_0, 500, vl);
| ^~~~~~~~~~~~~~~~
MsgeVX64VBool.c:172:17: error: incompatible types when assigning to type 'vuint8mf8_t' from type 'int'
MsgeVX64VBool.c:174:17: warning: implicit declaration of function 'vmul_vx_u8mf8' [-Wimplicit-function-declaration]
174 | vec_value_6_0 = vmul_vx_u8mf8(vec_value_6_0, 8, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:174:17: error: incompatible types when assigning to type 'vuint8mf8_t' from type 'int'
MsgeVX64VBool.c:175:28: warning: implicit declaration of function 'vluxei8_v_u64m1_m' [-Wimplicit-function-declaration]
175 | vuint64m1_t vec_value_7_0= vluxei8_v_u64m1_m (mask_value_3_0, vec_value_4_0, placeholder17, vec_value_6_0, vl);
| ^~~~~~~~~~~~~~~~~
MsgeVX64VBool.c:175:28: error: incompatible types when initializing type 'vuint64m1_t' using type 'int'
MsgeVX64VBool.c:176:1: warning: implicit declaration of function 'vse64_v_u64m1' [-Wimplicit-function-declaration]
176 | vse64_v_u64m1(placeholder19, vec_value_7_0, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c: In function 'vadd_vv_operator_0':
MsgeVX64VBool.c:192:27: error: incompatible types when initializing type 'vint32m1_t' using type 'int'
192 | vint32m1_t vec_value_0_0= vle32_v_i32m1(placeholder23, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:193:27: error: incompatible types when initializing type 'vint32m1_t' using type 'int'
193 | vint32m1_t vec_value_1_0= vle32_v_i32m1(placeholder24, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:195:27: warning: implicit declaration of function 'vadd_vv_i32m1' [-Wimplicit-function-declaration]
195 | vint32m1_t vec_value_2_0= vadd_vv_i32m1(vec_value_0_0, vec_value_1_0, vl);
| ^~~~~~~~~~~~~
MsgeVX64VBool.c:195:27: error: incompatible types when initializing type 'vint32m1_t' using type 'int'
MsgeVX64VBool.c:197:1: warning: implicit declaration of function 'vse32_v_i32m1' [-Wimplicit-function-declaration]
197 | vse32_v_i32m1(placeholder25, vec_value_2_0, vl);
| ^~~~~~~~~~~~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants