[llvm] r316616 - Fix CodeGen/AMDGPU/fcanonicalize-elimination.ll on FreeBSD 11.0

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 25 14:44:22 PDT 2017


Author: arichardson
Date: Wed Oct 25 14:44:21 2017
New Revision: 316616

URL: http://llvm.org/viewvc/llvm-project?rev=316616&view=rev
Log:
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

Modified:
    llvm/trunk/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll

Modified: llvm/trunk/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll?rev=316616&r1=316615&r2=316616&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll (original)
+++ llvm/trunk/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll Wed Oct 25 14:44:21 2017
@@ -519,6 +519,10 @@ define amdgpu_kernel void @test_fold_can
   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




More information about the llvm-commits mailing list