2
0

fixed compilation issues

Change-Id: I96692538736e2e4f2da9dba9c8c29a164aec4c0d


[ROCm/hip commit: 68c57c38ff]
Este cometimento está contido em:
Aditya Atluri
2016-12-14 16:50:16 -06:00
ascendente 727aab2304
cometimento 4ebb6e569f
2 ficheiros modificados com 2 adições e 2 eliminações
+1 -1
Ver ficheiro
@@ -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
Ver ficheiro
@@ -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
}