[PATCH] D27903: AMDGPU: Form more FMAs if fusion is allowed
Tom Stellard via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 21 18:49:50 PST 2016
tstellarAMD accepted this revision.
tstellarAMD added a comment.
This revision is now accepted and ready to land.
LGTM.
================
Comment at: test/CodeGen/AMDGPU/fmuladd.f16.ll:1-9
+; RUN: llc -march=amdgcn -mcpu=fiji -mattr=-fp16-denormals -fp-contract=on -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-STRICT -check-prefix=VI-FLUSH -check-prefix=VI %s
+; RUN: llc -march=amdgcn -mcpu=fiji -mattr=-fp16-denormals -fp-contract=on -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-STRICT -check-prefix=VI-FLUSH -check-prefix=VI %s
+; RUN: llc -march=amdgcn -mcpu=fiji -mattr=-fp16-denormals -fp-contract=fast -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-CONTRACT -check-prefix=VI-FLUSH -check-prefix=VI %s
+; RUN: llc -march=amdgcn -mcpu=fiji -mattr=-fp16-denormals -fp-contract=fast -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-CONTRACT -check-prefix=VI-FLUSH -check-prefix=VI %s
+
+; RUN: llc -march=amdgcn -mcpu=fiji -mattr=+fp16-denormals -fp-contract=on -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-STRICT -check-prefix=VI-DENORM-STRICT -check-prefix=VI-DENORM -check-prefix=VI %s
+; RUN: llc -march=amdgcn -mcpu=fiji -mattr=+fp16-denormals -fp-contract=on -verify-machineinstrs < %s | FileCheck -check-prefix=GCN -check-prefix=GCN-STRICT -check-prefix=VI-DENORM-STRICT -check-prefix=VI-DENORM -check-prefix=VI %s
----------------
You can use --check-prefixes=
https://reviews.llvm.org/D27903
More information about the llvm-commits
mailing list