summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-03-09 16:33:34 +0000
committerSanjay Patel <spatel@rotateright.com>2018-03-09 16:33:34 +0000
commit56d59c1f0ffbab47a04691f4f91733d5a8037ceb (patch)
tree01973bfe6b9923d27dddd3b39e2e0c744a8feb70
parent15f349f76f076202a8569ffdf15db153168bf4a2 (diff)
downloadbcm5719-llvm-56d59c1f0ffbab47a04691f4f91733d5a8037ceb.tar.gz
bcm5719-llvm-56d59c1f0ffbab47a04691f4f91733d5a8037ceb.zip
[AMDGPU] fix test to be independent of FP undef
llvm-svn: 327147
-rw-r--r--llvm/test/CodeGen/AMDGPU/skip-if-dead.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/skip-if-dead.ll b/llvm/test/CodeGen/AMDGPU/skip-if-dead.ll
index 54fa93ae9c8..7643ebed215 100644
--- a/llvm/test/CodeGen/AMDGPU/skip-if-dead.ll
+++ b/llvm/test/CodeGen/AMDGPU/skip-if-dead.ll
@@ -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)
OpenPOWER on IntegriCloud