fixed compilation issues

Change-Id: I96692538736e2e4f2da9dba9c8c29a164aec4c0d
This commit is contained in:
Aditya Atluri
2016-12-14 16:50:16 -06:00
parent c20a86d866
commit a1d1fcfdac
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ THE SOFTWARE.
#define __CLANG_VERSION__ __clang_major__ * 10 + __clang_minor__
#if __CLANG_VERSION__ == 40
#ifdef HIP_HALF_HW_SUPPORT
typedef __fp16 __half;
+1 -1
View File
@@ -54,7 +54,7 @@ define linkonce_odr spir_func half @__hip_hsub_gfx803(half %a, half %b) #1 {
ret half %val
}
define linkonce_odr spir_func i32 @__hip_hadd2_gfx803(i32 %a i32 %b) #1 {
define linkonce_odr spir_func i32 @__hip_hadd2_gfx803(i32 %a, i32 %b) #1 {
%val = tail call i32 asm "v_add_f16_sdwa $0, $1, $2 dst_sel:WORD_0 dst_unused:UNUSED_PRESERVE src0_sel:WORD_0 src1_sel:WORD_0","=v,v,v"(i32 %a, i32 %b)
ret i32 %val
}