Fix CodeGen/AMDGPU/fcanonicalize-elimination.ll on FreeBSD 11.0
authorAlexander Richardson <arichardson.kde@gmail.com>
Wed, 25 Oct 2017 21:44:21 +0000 (21:44 +0000)
committerAlexander Richardson <arichardson.kde@gmail.com>
Wed, 25 Oct 2017 21:44:21 +0000 (21:44 +0000)
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

llvm-svn: 316616

llvm/test/CodeGen/AMDGPU/fcanonicalize-elimination.ll

index f35fe09..f662788 100644 (file)
@@ -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