diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-03-08 21:30:56 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-03-08 21:30:56 +0000 |
commit | 672ad3269bb08fb889df45a735b459661ea59c4f (patch) | |
tree | 8ed9e0714677e0b26d194281c6ccf69948f2f2ae /llvm/test/CodeGen/AMDGPU/debug-value.ll | |
parent | fbffd126b8cea0e6d249dce41850ce8ce0cf03bc (diff) | |
download | bcm5719-llvm-672ad3269bb08fb889df45a735b459661ea59c4f.tar.gz bcm5719-llvm-672ad3269bb08fb889df45a735b459661ea59c4f.zip |
[AMDGPU] fix test to survive more FP undef constant folding
llvm-svn: 327066
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU/debug-value.ll')
-rw-r--r-- | llvm/test/CodeGen/AMDGPU/debug-value.ll | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/test/CodeGen/AMDGPU/debug-value.ll b/llvm/test/CodeGen/AMDGPU/debug-value.ll index 8fa05f6a2af..75b21140bb6 100644 --- a/llvm/test/CodeGen/AMDGPU/debug-value.ll +++ b/llvm/test/CodeGen/AMDGPU/debug-value.ll @@ -22,15 +22,16 @@ bb: %tmp15 = bitcast i8 addrspace(1)* %tmp14 to <4 x float> addrspace(1)* %tmp16 = getelementptr inbounds <4 x float>, <4 x float> addrspace(1)* %tmp15, i64 undef %tmp17 = load <4 x float>, <4 x float> addrspace(1)* %tmp16, align 16 - %tmp18 = fsub <4 x float> undef, %tmp17 - %tmp19 = fadd float undef, 0.000000e+00 + %tmp18 = fsub <4 x float> %tmp17, %tmp17 + %ext = extractelement <4 x float> %tmp18, i32 1 + %tmp19 = fadd float %ext, 0.000000e+00 %tmp20 = fcmp oeq float %tmp19, 0.000000e+00 br i1 %tmp20, label %bb21, label %bb25 bb21: ; preds = %bb - %tmp22 = fmul <4 x float> %tmp18, undef - %tmp23 = fadd <4 x float> undef, %tmp22 - %tmp24 = fmul <4 x float> %tmp23, undef + %tmp22 = fmul <4 x float> %tmp18, %tmp18 + %tmp23 = fadd <4 x float> %tmp22, %tmp22 + %tmp24 = fmul <4 x float> %tmp23, %tmp23 br label %bb28 bb25: ; preds = %bb |