[AMDGPU] fix test to be independent of FP undef

llvm-svn: 327147
This commit is contained in:
Sanjay Patel 2018-03-09 16:33:34 +00:00
parent 15f349f76f
commit 56d59c1f0f
1 changed files with 2 additions and 2 deletions

View File

@ -275,9 +275,9 @@ exit:
; CHECK: [[ENDBB]]:
; CHECK-NEXT: s_endpgm
define amdgpu_ps void @phi_use_def_before_kill() #0 {
define amdgpu_ps void @phi_use_def_before_kill(float inreg %x) #0 {
bb:
%tmp = fadd float undef, 1.000000e+00
%tmp = fadd float %x, 1.000000e+00
%tmp1 = fcmp olt float 0.000000e+00, %tmp
%tmp2 = select i1 %tmp1, float -1.000000e+00, float 0.000000e+00
call void @llvm.AMDGPU.kill(float %tmp2)