From: Alexander Richardson Date: Wed, 25 Oct 2017 21:44:21 +0000 (+0000) Subject: Fix CodeGen/AMDGPU/fcanonicalize-elimination.ll on FreeBSD 11.0 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d1f72d3b59d3c827357eee1ca4fbde0c9d2c55e;p=llvm Fix CodeGen/AMDGPU/fcanonicalize-elimination.ll on FreeBSD 11.0 Summary: On FreeBSD11.0 the FileCheck NOT string "1.0" will be matched by `.amd_amdgpu_isa "amdgcn-unknown-freebsd11.0--gfx802"` at the end of the file. Add a CHECK for that directive to avoid failing the test. Reviewers: rampitec, kzhuravl Reviewed By: rampitec, kzhuravl Subscribers: emaste, kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, llvm-commits, krytarowski Differential Revision: https://reviews.llvm.org/D39306 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316616 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll b/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll index f35fe098569..f66278845c1 100644 --- a/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll +++ b/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll @@ -519,6 +519,10 @@ define amdgpu_kernel void @test_fold_canonicalize_load_nnan_value_f16(half addrs ret void } +; Avoid failing the test on FreeBSD11.0 which will match the GCN-NOT: 1.0 +; in the .amd_amdgpu_isa "amdgcn-unknown-freebsd11.0--gfx802" directive +; CHECK: .amd_amdgpu_isa + declare float @llvm.canonicalize.f32(float) #0 declare double @llvm.canonicalize.f64(double) #0 declare half @llvm.canonicalize.f16(half) #0