Skip to content

Commit a02a00f

Browse files
committed
Add missing part of commit 871afcb
Change-Id: I87eb43007cc582f6f27803c3534e6c4ae2476872
1 parent 6160bc8 commit a02a00f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

IGC/BiFModule/Implementation/IGCBiF_Intrinsics.cl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,5 +678,15 @@ double __builtin_IB_sub_group_scan_OpGroupFAdd_f64(double x) __attribute__((cons
678678
double __builtin_IB_sub_group_scan_OpGroupFMax_f64(double x) __attribute__((const));
679679
double __builtin_IB_sub_group_scan_OpGroupFMin_f64(double x) __attribute__((const));
680680

681+
// The following mul/fma with rtz is used internally for int div/rem emulation
682+
// x * y, using round-to-zero
683+
double __builtin_IB_mul_rtz_f64(double x, double y) __attribute__((const));
684+
float __builtin_IB_mul_rtz_f32(float x, float y) __attribute__((const));
685+
// x * y + z, using round-to-zero
686+
double __builtin_IB_fma_rtz_f64(double x, double y, double z) __attribute__((const));
687+
float __builtin_IB_fma_rtz_f32(float x, float y, float z) __attribute__((const));
688+
// x + y, using round-to-zero
689+
double __builtin_IB_add_rtz_f64(double x, double y) __attribute__((const));
690+
float __builtin_IB_add_rtz_f32(float x, float y) __attribute__((const));
681691

682692
#endif // IGCBIF_INTRINSICS_CL

0 commit comments

Comments
 (0)