@@ -182,11 +182,10 @@ int main(int Argc, char *Argv[]) {
182
182
Status = amd_comgr_release_data (DataElement );
183
183
checkError (Status , "amd_comgr_release_data" );
184
184
185
- // TODO: Re-enable after finalizing LLVM PR #122629
186
- // if (BytesSize != 0) {
187
- // printf("Bitcode host element size: %ld (expected 0)\n", BytesSize);
188
- // exit(1);
189
- // }
185
+ if (!BytesSize ) {
186
+ printf ("Bitcode host empty (expected non-empty)\n" );
187
+ exit (1 );
188
+ }
190
189
191
190
// bitcode hip-gfx900 element (non-empty)
192
191
Status = amd_comgr_action_data_get_data (
@@ -248,11 +247,10 @@ int main(int Argc, char *Argv[]) {
248
247
Status = amd_comgr_release_data (DataElement );
249
248
checkError (Status , "amd_comgr_release_data" );
250
249
251
- // TODO: Re-enable after finalizing LLVM PR #122629
252
- // if (BytesSize != 0) {
253
- // printf("Object host element size: %ld (expected empty)\n", BytesSize);
254
- // exit(1);
255
- //}
250
+ if (BytesSize != 0 ) {
251
+ printf ("Object host element size: %ld (expected empty)\n" , BytesSize );
252
+ exit (1 );
253
+ }
256
254
257
255
// object hip-gfx900 element (non-empty)
258
256
Status = amd_comgr_action_data_get_data (
@@ -314,8 +312,8 @@ int main(int Argc, char *Argv[]) {
314
312
Status = amd_comgr_release_data (DataElement );
315
313
checkError (Status , "amd_comgr_release_data" );
316
314
317
- if (BytesSize != 8 ) {
318
- printf ("Arvhive host element size: %ld (expected 8 )\n" , BytesSize );
315
+ if (! BytesSize ) {
316
+ printf ("Arvhive host empty (expected non-empty )\n" );
319
317
exit (1 );
320
318
}
321
319
0 commit comments