This is required for GPUs with 16 bit instructions where f16 is a
legal register type and hence int_to_fp i1 to f16 is not lowered
by legalizing.
Change-Id: Ie4c0fd6ced7cf10ad612023c6879724d9ded5851
Differential D52018
[AMDGPU] Add instruction selection for i1 to f16 conversion critson on Sep 13 2018, 1:02 AM. Authored by
Details This is required for GPUs with 16 bit instructions where f16 is a Change-Id: Ie4c0fd6ced7cf10ad612023c6879724d9ded5851
Diff Detail
Event TimelineComment Actions What about sitofp? Why the detour via V_CVT_F16_F32 instead of selecting an fp16 1.0 constant directly? Comment Actions It is not possible select an fp16 constant with V_CNDMASK_B32. |