From 35631ea2a22bf03205e368d823e8580400d10c4e Mon Sep 17 00:00:00 2001 From: Aditya Atluri Date: Fri, 20 Jan 2017 17:21:51 -0600 Subject: [PATCH] added ir code sad u8 Change-Id: Ie0d454b3bb9a6c9a028c091ad3aa969719b02cc9 [ROCm/clr commit: 9952117d640fe2339203a7a6924bf3d036377d65] --- projects/clr/hipamd/src/hip_ir.ll | 5 +++++ 1 file changed, 5 insertions(+) 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 }