@@ -347,7 +347,9 @@ aot_compile_op_i32_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
347
347
348
348
POP_F32 (value );
349
349
350
+ #if !defined(BUILD_TARGET_XTENSA )
350
351
if (!comp_ctx -> is_indirect_mode ) {
352
+ #endif
351
353
if (sign ) {
352
354
min_value = F32_CONST (-2147483904.0f );
353
355
max_value = F32_CONST (2147483648.0f );
@@ -356,6 +358,7 @@ aot_compile_op_i32_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
356
358
min_value = F32_CONST (-1.0f );
357
359
max_value = F32_CONST (4294967296.0f );
358
360
}
361
+ #if !defined(BUILD_TARGET_XTENSA )
359
362
}
360
363
else {
361
364
WASMValue wasm_value ;
@@ -376,6 +379,7 @@ aot_compile_op_i32_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
376
379
comp_ctx , func_ctx -> native_symbol , & wasm_value , VALUE_TYPE_F32 );
377
380
}
378
381
}
382
+ #endif
379
383
CHECK_LLVM_CONST (min_value );
380
384
CHECK_LLVM_CONST (max_value );
381
385
@@ -400,7 +404,9 @@ aot_compile_op_i32_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
400
404
401
405
POP_F64 (value );
402
406
407
+ #if !defined(BUILD_TARGET_XTENSA )
403
408
if (!comp_ctx -> is_indirect_mode ) {
409
+ #endif
404
410
if (sign) {
405
411
min_value = F64_CONST (-2147483649.0 );
406
412
max_value = F64_CONST (2147483648.0 );
@@ -409,6 +415,7 @@ aot_compile_op_i32_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
409
415
min_value = F64_CONST (-1.0 );
410
416
max_value = F64_CONST (4294967296.0 );
411
417
}
418
+ #if !defined(BUILD_TARGET_XTENSA )
412
419
}
413
420
else {
414
421
WASMValue wasm_value ;
@@ -429,6 +436,7 @@ aot_compile_op_i32_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
429
436
comp_ctx , func_ctx -> native_symbol , & wasm_value , VALUE_TYPE_F64 );
430
437
}
431
438
}
439
+ #endif
432
440
CHECK_LLVM_CONST (min_value );
433
441
CHECK_LLVM_CONST (max_value );
434
442
@@ -554,7 +562,9 @@ aot_compile_op_i64_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
554
562
555
563
POP_F32 (value );
556
564
565
+ #if !defined(BUILD_TARGET_XTENSA )
557
566
if (!comp_ctx -> is_indirect_mode ) {
567
+ #endif
558
568
if (sign) {
559
569
min_value = F32_CONST (-9223373136366403584.0f );
560
570
max_value = F32_CONST (9223372036854775808.0f );
@@ -563,6 +573,7 @@ aot_compile_op_i64_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
563
573
min_value = F32_CONST (-1.0f );
564
574
max_value = F32_CONST (18446744073709551616.0f );
565
575
}
576
+ #if !defined(BUILD_TARGET_XTENSA )
566
577
}
567
578
else {
568
579
WASMValue wasm_value ;
@@ -583,6 +594,7 @@ aot_compile_op_i64_trunc_f32(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
583
594
comp_ctx , func_ctx -> native_symbol , & wasm_value , VALUE_TYPE_F32 );
584
595
}
585
596
}
597
+ #endif
586
598
CHECK_LLVM_CONST (min_value );
587
599
CHECK_LLVM_CONST (max_value );
588
600
@@ -607,7 +619,9 @@ aot_compile_op_i64_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
607
619
608
620
POP_F64 (value );
609
621
622
+ #if !defined(BUILD_TARGET_XTENSA )
610
623
if (!comp_ctx -> is_indirect_mode ) {
624
+ #endif
611
625
if (sign) {
612
626
min_value = F64_CONST (-9223372036854777856.0 );
613
627
max_value = F64_CONST (9223372036854775808.0 );
@@ -616,6 +630,7 @@ aot_compile_op_i64_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
616
630
min_value = F64_CONST (-1.0 );
617
631
max_value = F64_CONST (18446744073709551616.0 );
618
632
}
633
+ #if !defined(BUILD_TARGET_XTENSA )
619
634
}
620
635
else {
621
636
WASMValue wasm_value ;
@@ -636,6 +651,7 @@ aot_compile_op_i64_trunc_f64(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx,
636
651
comp_ctx , func_ctx -> native_symbol , & wasm_value , VALUE_TYPE_F64 );
637
652
}
638
653
}
654
+ #endif
639
655
CHECK_LLVM_CONST (min_value );
640
656
CHECK_LLVM_CONST (max_value );
641
657
0 commit comments