@@ -719,6 +719,9 @@ TRUNC_FUNCTION(trunc_f32_to_i64, float32, uint64, int64)
719
719
TRUNC_FUNCTION (trunc_f64_to_i32 , float64 , uint32 , int32 )
720
720
TRUNC_FUNCTION (trunc_f64_to_i64 , float64 , uint64 , int64 )
721
721
722
+ #if defined(__GNUC__ ) || defined(__clang__ )
723
+ __attribute__((no_sanitize ("undefined" )))
724
+ #endif
722
725
static bool
723
726
trunc_f32_to_int (WASMModuleInstance * module , uint8 * frame_ip , uint32 * frame_lp ,
724
727
float32 src_min , float32 src_max , bool saturating , bool is_i32 ,
@@ -756,6 +759,9 @@ trunc_f32_to_int(WASMModuleInstance *module, uint8 *frame_ip, uint32 *frame_lp,
756
759
return true;
757
760
}
758
761
762
+ #if defined(__GNUC__ ) || defined(__clang__ )
763
+ __attribute__((no_sanitize ("undefined" )))
764
+ #endif
759
765
static bool
760
766
trunc_f64_to_int (WASMModuleInstance * module , uint8 * frame_ip , uint32 * frame_lp ,
761
767
float64 src_min , float64 src_max , bool saturating , bool is_i32 ,
@@ -1442,6 +1448,9 @@ get_global_addr(uint8 *global_data, WASMGlobalInstance *global)
1442
1448
#endif
1443
1449
}
1444
1450
1451
+ #if defined(__GNUC__ ) || defined(__clang__ )
1452
+ __attribute__((no_sanitize ("undefined" )))
1453
+ #endif
1445
1454
static void
1446
1455
wasm_interp_call_func_bytecode (WASMModuleInstance * module ,
1447
1456
WASMExecEnv * exec_env ,
0 commit comments