Index: lib/Target/AMDGPU/SIInstructions.td =================================================================== --- lib/Target/AMDGPU/SIInstructions.td +++ lib/Target/AMDGPU/SIInstructions.td @@ -852,6 +852,8 @@ def : BitConvert ; def : BitConvert ; def : BitConvert ; +def : BitConvert ; +def : BitConvert ; // FIXME: Make SGPR def : BitConvert ; Index: test/CodeGen/AMDGPU/bitcast-v4f16-v4i16.ll =================================================================== --- test/CodeGen/AMDGPU/bitcast-v4f16-v4i16.ll +++ test/CodeGen/AMDGPU/bitcast-v4f16-v4i16.ll @@ -0,0 +1,10 @@ +; RUN: llc -march=amdgcn -mcpu=gfx900 -verify-machineinstrs < %s | FileCheck -enable-var-scope %s + +; CHECK: s_waitcnt +define <4 x i16> @test(<4 x i32> inreg) #0 { + %a = call <4 x half> @llvm.amdgcn.buffer.load.v4f16(<4 x i32> %0, i32 0, i32 0, i1 0, i1 0) + %a_i16 = bitcast <4 x half> %a to <4 x i16> + ret <4 x i16> %a_i16 +} + +declare <4 x half> @llvm.amdgcn.buffer.load.v4f16(<4 x i32>, i32, i32, i1, i1) #0