[llvm] 53d95f3 - AMDGPU: Rename fail.llvm.fptrunc.round.ll to llvm.fptrunc.round.err.ll (#106452)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 13:52:11 PDT 2024


Author: Changpeng Fang
Date: 2024-08-28T13:52:07-07:00
New Revision: 53d95f3056199b4a9668104c63080d4c94926162

URL: https://github.com/llvm/llvm-project/commit/53d95f3056199b4a9668104c63080d4c94926162
DIFF: https://github.com/llvm/llvm-project/commit/53d95f3056199b4a9668104c63080d4c94926162.diff

LOG: AMDGPU: Rename fail.llvm.fptrunc.round.ll to llvm.fptrunc.round.err.ll (#106452)

Also correct the suffix of the intrinsic

Added: 
    llvm/test/CodeGen/AMDGPU/llvm.fptrunc.round.err.ll

Modified: 
    

Removed: 
    llvm/test/CodeGen/AMDGPU/fail.llvm.fptrunc.round.ll


################################################################################
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