diff --git a/projects/clr/hipamd/src/hip_ir.ll b/projects/clr/hipamd/src/hip_ir.ll index a20b57016e..c68e9879f2 100644 --- a/projects/clr/hipamd/src/hip_ir.ll +++ b/projects/clr/hipamd/src/hip_ir.ll @@ -171,4 +171,9 @@ define i32 @__hip_hc_ir_usad_int(i32 %a, i32 %b, i32 %c) #1 { ret i32 %1 } +define i32 @__hip_hc_ir_sadu8_int(i32 %a, i32 %b, i32 %c) #1 { + %1 = tail call i32 asm sideeffect "v_sad_u8 $0, $1, $2 $3","=v,v,v,v"(i32 %a, i32 %b, i32 %c) + ret i32 %1 +} + attributes #1 = { alwaysinline nounwind }