[llvm] AMDGPU: Rename fail.llvm.fptrunc.round.ll to llvm.fptrunc.round.err.ll (PR #106452)
Changpeng Fang via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 28 13:51:18 PDT 2024
https://github.com/changpeng created https://github.com/llvm/llvm-project/pull/106452
Also correct the suffix of the intrinsic
>From c8146d844fa1f4fb739381341f7247d3ac90c206 Mon Sep 17 00:00:00 2001
From: Changpeng Fang <changpeng.fang at amd.com>
Date: Wed, 28 Aug 2024 13:45:54 -0700
Subject: [PATCH] AMDGPU: Rename fail.llvm.fptrunc.round.ll to
llvm.fptrunc.round.err.ll
Also correct the suffix of the intrinsic
---
.../{fail.llvm.fptrunc.round.ll => llvm.fptrunc.round.err.ll} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename llvm/test/CodeGen/AMDGPU/{fail.llvm.fptrunc.round.ll => llvm.fptrunc.round.err.ll} (77%)
diff --git a/llvm/test/CodeGen/AMDGPU/fail.llvm.fptrunc.round.ll b/llvm/test/CodeGen/AMDGPU/llvm.fptrunc.round.err.ll
similarity index 77%
rename from llvm/test/CodeGen/AMDGPU/fail.llvm.fptrunc.round.ll
rename to llvm/test/CodeGen/AMDGPU/llvm.fptrunc.round.err.ll
index 9fa3eb22a554a8..4bcd0cf5e6a0e5 100644
--- a/llvm/test/CodeGen/AMDGPU/fail.llvm.fptrunc.round.ll
+++ b/llvm/test/CodeGen/AMDGPU/llvm.fptrunc.round.err.ll
@@ -4,9 +4,9 @@
define amdgpu_gs void @test_fptrunc_round_f64(double %a, ptr addrspace(1) %out) {
; SDAG-FAIL: LLVM ERROR: Cannot select
; GISEL-FAIL: unable to legalize instruction
- %res = call half @llvm.fptrunc.round.f64(double %a, metadata !"round.upward")
+ %res = call half @llvm.fptrunc.round.f16.f64(double %a, metadata !"round.upward")
store half %res, ptr addrspace(1) %out, align 4
ret void
}
-declare half @llvm.fptrunc.round.f64(double, metadata)
+declare half @llvm.fptrunc.round.f16.f64(double, metadata)
More information about the llvm-commits
mailing list