summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/NVPTX/implicit-def.ll
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-05-21 23:54:19 +0000
committerSanjay Patel <spatel@rotateright.com>2018-05-21 23:54:19 +0000
commit17a870f07cf41372fe85c603e2338f605b3f196b (patch)
tree5e14280f606e26f12354e2da6b810980eab6fc20 /llvm/test/CodeGen/NVPTX/implicit-def.ll
parent5cb2e30c9805e175739cfd80a94f8022a8a84b64 (diff)
downloadbcm5719-llvm-17a870f07cf41372fe85c603e2338f605b3f196b.tar.gz
bcm5719-llvm-17a870f07cf41372fe85c603e2338f605b3f196b.zip
[DAG] fold FP binops with undef operands to NaN
This is the FP sibling of D43141 with the corresponding IR change in rL327212. We can't propagate undef here because if a variable operand is a NaN, these binops must propagate NaN. Neither global nor node-level fast-math makes a difference. If we have 'nnan', I think later folds can turn the NaN into undef. The tests in X86/fp-undef.ll are meant to be the definitive verification for these folds - everything reduces identically now. The other test changes are collateral damage. They may need to be altered to preserve their intent. Differential Revision: https://reviews.llvm.org/D47026 llvm-svn: 332920
Diffstat (limited to 'llvm/test/CodeGen/NVPTX/implicit-def.ll')
-rw-r--r--llvm/test/CodeGen/NVPTX/implicit-def.ll9
1 files changed, 0 insertions, 9 deletions
diff --git a/llvm/test/CodeGen/NVPTX/implicit-def.ll b/llvm/test/CodeGen/NVPTX/implicit-def.ll
deleted file mode 100644
index 2d2c6e527f6..00000000000
--- a/llvm/test/CodeGen/NVPTX/implicit-def.ll
+++ /dev/null
@@ -1,9 +0,0 @@
-; RUN: llc < %s -O0 -march=nvptx -mcpu=sm_20 -asm-verbose=1 | FileCheck %s
-
-; CHECK: // implicit-def: %f[[F0:[0-9]+]]
-; CHECK: add.rn.f32 %f{{[0-9]+}}, %f{{[0-9]+}}, %f[[F0]];
-define float @foo(float %a) {
- %ret = fadd float %a, undef
- ret float %ret
-}
-
OpenPOWER on IntegriCloud