[llvm-branch-commits] [llvm] c1204d8 - fix declare

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 23 13:37:41 PDT 2021


Author: Albion
Date: 2021-06-23T16:36:11-04:00
New Revision: c1204d81384dde2d8f3b5bcfb7a7db0c39034a6e

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

LOG: fix declare

Added: 
    

Modified: 
    llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll
    llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll
index f5f0bca3955b..fc20fb478673 100644
--- a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll
+++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll
@@ -7,47 +7,50 @@
 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix \
 ; RUN:   -mcpu=pwr9 < %s | FileCheck %s --check-prefix=CHECK-64
 
+declare double @llvm.ppc.fcfid(double %a)
 define dso_local double @test_fcfid(double %a) {
-  %0 = call double @llvm.ppc.fcfid(double %a)
-  ret i64 %0
+  %1 = call double @llvm.ppc.fcfid(double %a)
+  ret %1double %1
 }
 
+declare double @llvm.ppc.fcfud(double %a)
 define dso_local double @test_fcfud(double %a) {
-  %0 = call double @llvm.ppc.fcfud(double %a)
-  ret i64 %0
+  %1 = call double @llvm.ppc.fcfud(double %a)
+  ret %1double %1
 }
 
+declare double @llvm.ppc.fctid(double %a)
 define dso_local double @test_fctid(double %a) {
-  %0 = call double @llvm.ppc.fctid(double %a)
-  ret i64 %0
+  %1 = call double @llvm.ppc.fctid(double %a)
+  ret %1double %1
 }
 
+declare double @llvm.ppc.fctidz(double %a)
 define dso_local double @test_fctidz(double %a) {
-  %0 = call double @llvm.ppc.fctid(double %a)
-  ret i64 %0
+  %1 = call double @llvm.ppc.fctid(double %a)
+  ret %1double %1
 }
 
+declare double @llvm.ppc.fctiw(double %a)
 define dso_local double @test_fctiw(double %a) {
-  %0 = call double @llvm.ppc.fctid(double %a)
-  ret i64 %0
+  %1 = call double @llvm.ppc.fctid(double %a)
+  ret %1double %1
 }
 
+declare double @llvm.ppc.fctiwz(double %a)
 define dso_local double @test_fctiwz(double %a) {
-  %0 = call double @llvm.ppc.fctid(double %a)
-  ret i64 %0
+  %1 = call double @llvm.ppc.fctid(double %a)
+  ret %1double %1
 }
 
+declare double @llvm.ppc.fctudz(double %a)
 define dso_local double @test_fctudz(double %a) {
-  %0 = call double @llvm.ppc.fctid(double %a)
-  ret i64 %0
+  %1 = call double @llvm.ppc.fctid(double %a)
+  ret %1double %1
 }
 
+declare double @llvm.ppc.fctuwz(double %a)
 define dso_local double @test_fctuwz(double %a) {
-  %0 = call double @llvm.ppc.fctid(double %a)
-  ret i64 %0
-}
-
-define dso_local double @test_xl_fctuwz(double %a) {
-  %0 = call double @llvm.ppc.fctid(double %a)
-  ret i64 %0
+  %1 = call double @llvm.ppc.fctid(double %a)
+  ret %1double %1
 }
\ No newline at end of file

diff  --git a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll
index ca25ac791412..169c29bb4028 100644
--- a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll
+++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll
@@ -9,113 +9,140 @@
 ; RUN:   -mcpu=pwr9 < %s | FileCheck %s --check-prefix=CHECK-64
 
 ; tdw
-declare dso_local void @test__tdwlgt(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwlgt(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 1)
 }
 
-declare dso_local void @test__tdwllt(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwllt(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 2)
 }
 
-declare dso_local void @test__tdweq(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdweq(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 4)
 }
 
-declare dso_local void @test__tdwlge(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwlge(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 5)
 }
 
-declare dso_local void @test__tdwlle(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwlle(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 6)
 }
 
-declare dso_local void @test__tdwgt(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwgt(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 8)
 }
 
-declare dso_local void @test__tdwge(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwge(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 12)
 }
 
-declare dso_local void @test__tdwlt(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwlt(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 16)
 }
 
-declare dso_local void @test__tdwle(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwle(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 20)
 }
 
-declare dso_local void @test__tdwne24(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdwne24(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 24)
 }
 
-declare dso_local void @test__tdweq31(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdweq31(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 31)
 }
 
-declare dso_local void @test__tdw_no_match(i64 %a, i64 %b) {
+declare void @llvm.ppc.tdw(i64 %a, i64 %b)
+define dso_local void @test__tdw_no_match(i64 %a, i64 %b) {
   call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 13)
 }
 
 ; td
-declare dso_local void @test__twlgt(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twlgt(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 1)
 }
 
-declare dso_local void @test__twllt(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twllt(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 2)
 }
 
-declare dso_local void @test__twne3(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twne3(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 3)
 }
 
-declare dso_local void @test__tweq(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__tweq(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 4)
 }
 
-declare dso_local void @test__twlge(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twlge(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 5)
 }
 
-declare dso_local void @test__twlle(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twlle(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 6)
 }
 
-declare dso_local void @test__twgt(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twgt(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 8)
 }
 
-declare dso_local void @test__twge(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twge(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 12)
 }
 
-declare dso_local void @test__twlt(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twlt(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 16)
 }
 
-declare dso_local void @test__twle(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twle(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 20)
 }
 
-declare dso_local void @test__twne24(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__twne24(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 24)
 }
 
-declare dso_local void @test__tweq31(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__tweq31(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 31)
 }
 
-declare dso_local void @test__tw_no_match(i64 %a, i64 %b) {
+declare void @llvm.ppc.tw(i64 %a, i64 %b)
+define dso_local void @test__tw_no_match(i64 %a, i64 %b) {
   call void @llvm.ppc.tw(i32 %a, i32 %b, i32 13)
 }
 
 ; trap
-declare dso_local void @test__trap(i32 %a) {
+declare void @llvm.ppc.trap(i32 %a)
+define dso_local void @test__trap(i32 %a) {
   call void @llvm.ppc.trap(i32 %a)
 }
 
 ; trapd
-declare dso_local void @test__trapd(i64 %a) {
+declare void @llvm.ppc.trapd(i64 %a)
+define dso_local void @test__trapd(i64 %a) {
   call void @llvm.ppc.trapd(i64 %a)
 }
\ No newline at end of file


        


More information about the llvm-branch-commits mailing list