[llvm-branch-commits] [llvm] b7ff9c9 - Fix up test cases

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


Author: Albion
Date: 2021-06-23T16:19:33-04:00
New Revision: b7ff9c9d12134792e9c04c1c14fbbbe1747857f2

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

LOG: Fix up test cases

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.c b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.c
index b0dc7ede5062..f401cd8cf7c7 100644
--- a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.c
+++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.c
@@ -9,8 +9,9 @@
 
 double test_fcfid(double a) {
   // CHECK-LABEL: test_fcfid
+  // CHECK-NEXT: entry:
   // CHECK: double @llvm.ppc.fcfid(double %0)
-  return __fcfid(a);
+  return __builtin_ppc_fcfid(a);
 }
 
 double test_xl_fcfid(double a) {
@@ -24,7 +25,7 @@ double test_fcfud(double a) {
   // CHECK-LABEL: test_fcfud
   // CHECK-NEXT: entry:
   // CHECK: double @llvm.ppc.fcfud(double %0)
-  return __fcfud(a);
+  return __builtin_ppc_fcfud(a);
 }
 
 double test_xl_fcfud(double a) {
@@ -38,71 +39,82 @@ double test_fctid(double a) {
   // CHECK-LABEL: test_fctid
   // CHECK-NEXT: entry:
   // CHECK: double @llvm.ppc.fctid(double %0)
-  return __fctid(a);
+  return __builtin_ppc_fctid(a);
 }
 
 double test_xl_fctid(double a) {
   // CHECK-LABEL: test_xl_fctid
-  // CHECK: fctid 1, 1
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
   return __fctid(a);
 }
 
 double test_fctidz(double a) {
   // CHECK-LABEL: test_fctidz
-  // CHECK: xscvdpsxds 1, 1
-  return __fctidz(a);
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
+  return __builtin_ppc_fctidz(a);
 }
 
 double test_xl_fctidz(double a) {
   // CHECK-LABEL: test_xl_fctidz
-  // CHECK: xscvdpsxds 1, 1
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
   return __fctidz(a);
 }
 
 double test_fctiw(double a) {
   // CHECK-LABEL: test_fctiw
-  // CHECK: fctiw 1, 1
-  return __fctiw(a);
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
+  return __builtin_ppc_fctiw(a);
 }
 
 double test_xl_fctiw(double a) {
   // CHECK-LABEL: test_xl_fctiw
-  // CHECK: fctiw 1, 1
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
   return __fctiw(a);
 }
 
 double test_fctiwz(double a) {
   // CHECK-LABEL: test_fctiwz
-  // CHECK: xscvdpsxws 1, 1
-  return __fctiwz(a);
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
+  return __builtin_ppc_fctiwz(a);
 }
 
 double test_xl_fctiwz(double a) {
   // CHECK-LABEL: test_xl_fctiwz
-  // CHECK: xscvdpsxws 1, 1
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
   return __fctiwz(a);
 }
 
 double test_fctudz(double a) {
   // CHECK-LABEL: test_fctudz
-  // CHECK: xscvdpuxds 1, 1
-  return __fctudz(a);
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
+  return __builtin_ppc_fctudz(a);
 }
 
 double test_xl_fctudz(double a) {
   // CHECK-LABEL: test_xl_fctudz
-  // CHECK: xscvdpuxds 1, 1
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
   return __fctudz(a);
 }
 
 double test_fctuwz(double a) {
   // CHECK-LABEL: test_fctuwz
-  // CHECK: xscvdpuxws 1, 1
-  return __fctuwz(a);
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
+  return __builtin_ppc_fctuwz(a);
 }
 
 double test_xl_fctuwz(double a) {
   // CHECK-LABEL: test_xl_fctuwz
-  // CHECK: xscvdpuxws 1, 1
+  // CHECK-NEXT: entry:
+  // CHECK: double @llvm.ppc.fctid(double %0)
   return __fctuwz(a);
-}
+}
\ No newline at end of file

diff  --git a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll
index f55f339a215a..c2533c09bbb1 100644
--- a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll
+++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-conversionfunc.ll
@@ -7,66 +7,38 @@
 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix \
 ; RUN:   -mcpu=pwr9 < %s | FileCheck %s --check-prefix=CHECK-64
 
-double test_fcfid(double a) {
-  return __fcfid(a);
+define dso_local double @test_fcfid(double %a) {
+  double @llvm.ppc.fcfid(double %a)
 }
 
-double test_xl_fcfid(double a) {
-  return __fcfid(a);
+define dso_local double @test_fcfud(double %a) {
+  double @llvm.ppc.fcfud(double %a)
 }
 
-double test_fcfud(double a) {
-  return __fcfud(a);
+define dso_local double @test_fctid(double %a) {
+  double @llvm.ppc.fctid(double %a)
 }
 
-double test_xl_fcfud(double a) {
-  return __fcfud(a);
+define dso_local double @test_fctidz(double %a) {
+  double @llvm.ppc.fctid(double %a)
 }
 
-double test_fctid(double a) {
-  return __fctid(a);
+define dso_local double @test_fctiw(double %a) {
+  double @llvm.ppc.fctid(double %a)
 }
 
-double test_xl_fctid(double a) {
-  return __fctid(a);
+define dso_local double @test_fctiwz(double %a) {
+  double @llvm.ppc.fctid(double %a)
 }
 
-double test_fctidz(double a) {
-  return __fctidz(a);
+define dso_local double @test_fctudz(double %a) {
+  double @llvm.ppc.fctid(double %a)
 }
 
-double test_xl_fctidz(double a) {
-  return __fctidz(a);
+define dso_local double @test_fctuwz(double %a) {
+  double @llvm.ppc.fctid(double %a)
 }
 
-double test_fctiw(double a) {
-  return __fctiw(a);
-}
-
-double test_xl_fctiw(double a) {
-  return __fctiw(a);
-}
-
-double test_fctiwz(double a) {
-  return __fctiwz(a);
-}
-
-double test_xl_fctiwz(double a) {
-  return __fctiwz(a);
-}
-
-double test_fctudz(double a) {
-  return __fctudz(a);
-}
-
-double test_xl_fctudz(double a) {
-  return __fctudz(a);
-}
-
-double test_fctuwz(double a) {
-  return __fctuwz(a);
-}
-
-double test_xl_fctuwz(double a) {
-  return __fctuwz(a);
-}
+define dso_local double @test_xl_fctuwz(double %a) {
+  double @llvm.ppc.fctid(double %a)
+}
\ No newline at end of file

diff  --git a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.c b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.c
index 4e1eeee6bce1..110c932936e1 100644
--- a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.c
+++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.c
@@ -1,226 +1,76 @@
-// RUN: clang -mcpu=pwr7 -m64 -O2 -c -S %s -o - | FileCheck %s
+// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-unknown \
+// RUN:   -emit-llvm %s -o - -target-cpu pwr9 | FileCheck %s
+// RUN: %clang_cc1 -O2 -triple powerpc64le-unknown-unknown \
+// RUN:   -emit-llvm %s -o - -target-cpu pwr9 | FileCheck %s
+// RUN: %clang_cc1 -O2 -triple powerpc-unknown-aix \
+// RUN:   -emit-llvm %s -o - -target-cpu pwr9 | FileCheck %s
+// RUN: %clang_cc1 -O2 -triple powerpc64-unknown-aix \
+// RUN:   -emit-llvm %s -o - -target-cpu pwr9 | FileCheck %s
 
 long long lla, llb;
 double da;
+int ia, ib;
 
-void test_tdlgt(void) {
-// CHECK-LABEL: test_tdlgt
-// CHECK: tdlgt
-// CHECK: blr
+// tdw
+void test_xl_tdw(void) {
+// CHECK-LABEL: test_xl_tdw
+// CHECK-NEXT: entry:
+// CHECK: void @llvm.ppc.tdw(i64 %0, i64 %1, i32 1)
 
   __tdw(lla, llb, 1);
 }
 
-void test_xl_tdlgt(void) {
-// CHECK-LABEL: test_xl_tdlgt
-// CHECK: tdlgt
-// CHECK: blr
+void test_tdw(void) {
+// CHECK-LABEL: test_tdw
+// CHECK-NEXT: entry:
+// CHECK: void @llvm.ppc.tdw(i64 %0, i64 %1, i32 13)
 
-  __tdw(lla, llb, 1);
-}
-
-void test_tdllt(void) {
-// CHECK-LABEL: test_tdllt
-// CHECK: tdllt
-// CHECK: blr
-
-  __tdw(lla, llb, 2);
-}
-
-void test_xl_tdllt(void) {
-// CHECK-LABEL: test_xl_tdllt
-// CHECK: tdllt
-// CHECK: blr
-
-  __tdw(lla, llb, 2);
-}
-
-void test_tdne3(void) {
-// CHECK-LABEL: test_tdne3
-// CHECK: tdne
-// CHECK: blr
-
-  __tdw(lla, llb, 3);
-}
-
-void test_xl_tdne3(void) {
-// CHECK-LABEL: test_xl_tdne3
-// CHECK: tdne
-// CHECK: blr
-
-  __tdw(lla, llb, 3);
-}
-
-void test_tdeq(void) {
-// CHECK-LABEL: test_tdeq
-// CHECK: tdeq
-// CHECK: blr
-
-  __tdw(lla, llb, 4);
-}
-
-void test_xl_tdeq(void) {
-// CHECK-LABEL: test_xl_tdeq
-// CHECK: tdeq
-// CHECK: blr
-
-  __tdw(lla, llb, 4);
-}
-
-void test_tdlge(void) {
-// CHECK-LABEL: test_tdlge
-// CHECK: tdlge
-// CHECK: blr
-
-  __tdw(lla, llb, 5);
-}
-
-void test_xl_tdlge(void) {
-// CHECK-LABEL: test_xl_tdlge
-// CHECK: tdlge
-// CHECK: blr
-
-  __tdw(lla, llb, 5);
-}
-
-void test_tdlle(void) {
-// CHECK-LABEL: test_tdlle
-// CHECK: tdlle
-// CHECK: blr
-
-  __tdw(lla, llb, 6);
-}
-
-void test_xl_tdlle(void) {
-// CHECK-LABEL: test_xl_tdlle
-// CHECK: tdlle
-// CHECK: blr
-
-  __tdw(lla, llb, 6);
-}
-
-void test_tdgt(void) {
-// CHECK-LABEL: test_tdgt
-// CHECK: tdgt
-// CHECK: blr
-
-  __tdw(lla, llb, 8);
-}
-
-void test_xl_tdgt(void) {
-// CHECK-LABEL: test_xl_tdgt
-// CHECK: tdgt
-// CHECK: blr
-
-  __tdw(lla, llb, 8);
-}
-
-void test_tdge(void) {
-// CHECK-LABEL: test_tdge
-// CHECK: tdge
-// CHECK: blr
-
-  __tdw(lla, llb, 12);
-}
-
-void test_xl_tdge(void) {
-// CHECK-LABEL: test_xl_tdge
-// CHECK: tdge
-// CHECK: blr
-
-  __tdw(lla, llb, 12);
-}
-
-void test_tdlt(void) {
-// CHECK-LABEL: test_tdlt
-// CHECK: tdlt
-// CHECK: blr
-
-  __tdw(lla, llb, 16);
-}
-
-void test_xl_tdlt(void) {
-// CHECK-LABEL: test_xl_tdlt
-// CHECK: tdlt
-// CHECK: blr
-
-  __tdw(lla, llb, 16);
-}
-
-void test_tdle(void) {
-// CHECK-LABEL: test_tdle
-// CHECK: tdle
-// CHECK: blr
-
-  __tdw(lla, llb, 20);
-}
-
-void test_xl_tdle(void) {
-// CHECK-LABEL: test_xl_tdle
-// CHECK: tdle
-// CHECK: blr
-
-  __tdw(lla, llb, 20);
-}
-
-void test_tdne24(void) {
-// CHECK-LABEL: test_tdne24
-// CHECK: tdne
-// CHECK: blr
-
-  __tdw(lla, llb, 24);
-}
-
-void test_xl_tdne24(void) {
-// CHECK-LABEL: test_xl_tdne24
-// CHECK: tdne
-// CHECK: blr
-
-  __tdw(lla, llb, 24);
+  __tdw(lla, llb, 13);
 }
 
-void test_tdeq31(void) {
-// CHECK-LABEL: test_tdeq31
-// CHECK: tdeq
-// CHECK: blr
+// td
+void test_tw(void) {
+// CHECK-LABEL: test_tw
+// CHECK-NEXT: entry:
+// CHECK: void @llvm.ppc.tw(i32 %0, i32 %1, i32 1)
 
-  __tdw(lla, llb, 31);
+  __tw(ia, ib, 1);
 }
 
-void test_xl_tdeq31(void) {
-// CHECK-LABEL: test_xl_tdeq31
-// CHECK: tdeq
-// CHECK: blr
+void test_xl_tw(void) {
+// CHECK-LABEL: test_xl_tw
+// CHECK-NEXT: entry:
+// CHECK: void @llvm.ppc.tw(i32 %0, i32 %1, i32 1)
 
-  __tdw(lla, llb, 31);
+  __tw(ia, ib, 1);
 }
 
-void test_td_no_match(void) {
-// CHECK-LABEL: test_td_no_match
-// CHECK: td 13
-// CHECK: blr
-
-  __tdw(lla, llb, 13);
+// trap
+void test_trap(void) {
+// CHECK-LABEL: test_trapd
+// CHECK-NEXT: entry:
+// CHECK: void @llvm.ppc.trap(i32 %0)
+  __builtin_ppc_trap(ia);
 }
 
-void test_xl_td_no_match(void) {
-// CHECK-LABEL: test_xl_td_no_match
-// CHECK: td 13
-// CHECK: blr
-
-  __tdw(lla, llb, 13);
+void test_xl_trap(void) {
+// CHECK-LABEL: test_xl_trapd
+// CHECK-NEXT: entry:
+// CHECK: void @llvm.ppc.trapd(i32 %0)
+  __trap(ia);
 }
 
+// trapd
 void test_trapd(void) {
 // CHECK-LABEL: test_trapd
-// CHECK: tdnei 3, 0
-// CHECK: blr
+// CHECK-NEXT: entry:
+// CHECK: void @llvm.ppc.trapd(i64 %0)
   __builtin_ppc_trapd(da);
 }
 
 void test_xl_trapd(void) {
 // CHECK-LABEL: test_xl_trapd
-// CHECK: tdnei 3, 0
-// CHECK: blr
-  __builtin_ppc_trapd(da);
+// CHECK-NEXT: entry:
+// CHECK: void @llvm.ppc.trapd(i64 %0)
+  __trapd(da);
 }

diff  --git a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll
index c75bdacf0109..7da30bbb97dd 100644
--- a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll
+++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll
@@ -8,227 +8,114 @@
 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix \
 ; RUN:   -mcpu=pwr9 < %s | FileCheck %s --check-prefix=CHECK-64
 
-long long lla, llb;
-double da;
-
-void test_tdlgt(void) {
-// CHECK-LABEL: test_tdlgt
-// CHECK: tdlgt
-// CHECK: blr
-
-  __tdw(lla, llb, 1);
+; tdw
+declare dso_local void @test__tdwlgt(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 1)
 }
 
-void test_xl_tdlgt(void) {
-// CHECK-LABEL: test_xl_tdlgt
-// CHECK: tdlgt
-// CHECK: blr
-
-  __tdw(lla, llb, 1);
+declare dso_local void @test__tdwllt(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 2)
 }
 
-void test_tdllt(void) {
-// CHECK-LABEL: test_tdllt
-// CHECK: tdllt
-// CHECK: blr
-
-  __tdw(lla, llb, 2);
+declare dso_local void @test__tdweq(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 4)
 }
 
-void test_xl_tdllt(void) {
-// CHECK-LABEL: test_xl_tdllt
-// CHECK: tdllt
-// CHECK: blr
-
-  __tdw(lla, llb, 2);
+declare dso_local void @test__tdwlge(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 5)
 }
 
-void test_tdne3(void) {
-// CHECK-LABEL: test_tdne3
-// CHECK: tdne
-// CHECK: blr
-
-  __tdw(lla, llb, 3);
+declare dso_local void @test__tdwlle(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 6)
 }
 
-void test_xl_tdne3(void) {
-// CHECK-LABEL: test_xl_tdne3
-// CHECK: tdne
-// CHECK: blr
-
-  __tdw(lla, llb, 3);
+declare dso_local void @test__tdwgt(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 8)
 }
 
-void test_tdeq(void) {
-// CHECK-LABEL: test_tdeq
-// CHECK: tdeq
-// CHECK: blr
-
-  __tdw(lla, llb, 4);
+declare dso_local void @test__tdwge(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 12)
 }
 
-void test_xl_tdeq(void) {
-// CHECK-LABEL: test_xl_tdeq
-// CHECK: tdeq
-// CHECK: blr
-
-  __tdw(lla, llb, 4);
+declare dso_local void @test__tdwlt(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 16)
 }
 
-void test_tdlge(void) {
-// CHECK-LABEL: test_tdlge
-// CHECK: tdlge
-// CHECK: blr
-
-  __tdw(lla, llb, 5);
+declare dso_local void @test__tdwle(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 20)
 }
 
-void test_xl_tdlge(void) {
-// CHECK-LABEL: test_xl_tdlge
-// CHECK: tdlge
-// CHECK: blr
-
-  __tdw(lla, llb, 5);
+declare dso_local void @test__tdwne24(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 24)
 }
 
-void test_tdlle(void) {
-// CHECK-LABEL: test_tdlle
-// CHECK: tdlle
-// CHECK: blr
-
-  __tdw(lla, llb, 6);
-}
-
-void test_xl_tdlle(void) {
-// CHECK-LABEL: test_xl_tdlle
-// CHECK: tdlle
-// CHECK: blr
-
-  __tdw(lla, llb, 6);
+declare dso_local void @test__tdweq31(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 31)
 }
 
-void test_tdgt(void) {
-// CHECK-LABEL: test_tdgt
-// CHECK: tdgt
-// CHECK: blr
-
-  __tdw(lla, llb, 8);
+declare dso_local void @test__tdw_no_match(i64 %a, i64 %b) {
+  void @llvm.ppc.tdw(i64 %a, i64 %b, i32 13)
 }
 
-void test_xl_tdgt(void) {
-// CHECK-LABEL: test_xl_tdgt
-// CHECK: tdgt
-// CHECK: blr
-
-  __tdw(lla, llb, 8);
+; td
+declare dso_local void @test__twlgt(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 1)
 }
 
-void test_tdge(void) {
-// CHECK-LABEL: test_tdge
-// CHECK: tdge
-// CHECK: blr
-
-  __tdw(lla, llb, 12);
+declare dso_local void @test__twllt(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 2)
 }
 
-void test_xl_tdge(void) {
-// CHECK-LABEL: test_xl_tdge
-// CHECK: tdge
-// CHECK: blr
-
-  __tdw(lla, llb, 12);
+declare dso_local void @test__twne3(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 3)
 }
 
-void test_tdlt(void) {
-// CHECK-LABEL: test_tdlt
-// CHECK: tdlt
-// CHECK: blr
-
-  __tdw(lla, llb, 16);
+declare dso_local void @test__tweq(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 4)
 }
 
-void test_xl_tdlt(void) {
-// CHECK-LABEL: test_xl_tdlt
-// CHECK: tdlt
-// CHECK: blr
-
-  __tdw(lla, llb, 16);
+declare dso_local void @test__twlge(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 5)
 }
 
-void test_tdle(void) {
-// CHECK-LABEL: test_tdle
-// CHECK: tdle
-// CHECK: blr
-
-  __tdw(lla, llb, 20);
+declare dso_local void @test__twlle(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 6)
 }
 
-void test_xl_tdle(void) {
-// CHECK-LABEL: test_xl_tdle
-// CHECK: tdle
-// CHECK: blr
-
-  __tdw(lla, llb, 20);
+declare dso_local void @test__twgt(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 8)
 }
 
-void test_tdne24(void) {
-// CHECK-LABEL: test_tdne24
-// CHECK: tdne
-// CHECK: blr
-
-  __tdw(lla, llb, 24);
+declare dso_local void @test__twge(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 12)
 }
 
-void test_xl_tdne24(void) {
-// CHECK-LABEL: test_xl_tdne24
-// CHECK: tdne
-// CHECK: blr
-
-  __tdw(lla, llb, 24);
+declare dso_local void @test__twlt(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 16)
 }
 
-void test_tdeq31(void) {
-// CHECK-LABEL: test_tdeq31
-// CHECK: tdeq
-// CHECK: blr
-
-  __tdw(lla, llb, 31);
+declare dso_local void @test__twle(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 20)
 }
 
-void test_xl_tdeq31(void) {
-// CHECK-LABEL: test_xl_tdeq31
-// CHECK: tdeq
-// CHECK: blr
-
-  __tdw(lla, llb, 31);
+declare dso_local void @test__twne24(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 24)
 }
 
-void test_td_no_match(void) {
-// CHECK-LABEL: test_td_no_match
-// CHECK: td 13
-// CHECK: blr
-
-  __tdw(lla, llb, 13);
+declare dso_local void @test__tweq31(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 31)
 }
 
-void test_xl_td_no_match(void) {
-// CHECK-LABEL: test_xl_td_no_match
-// CHECK: td 13
-// CHECK: blr
-
-  __tdw(lla, llb, 13);
+declare dso_local void @test__tw_no_match(i64 %a, i64 %b) {
+  void @llvm.ppc.tw(i32 %a, i32 %b, i32 13)
 }
 
-void test_trapd(void) {
-// CHECK-LABEL: test_trapd
-// CHECK: tdnei 3, 0
-// CHECK: blr
-  __builtin_ppc_trapd(da);
+; trap
+declare dso_local void @test__trap(i32 %a) {
+  call void @llvm.ppc.trap(i32 %a)
 }
 
-void test_xl_trapd(void) {
-// CHECK-LABEL: test_xl_trapd
-// CHECK: tdnei 3, 0
-// CHECK: blr
-  __builtin_ppc_trapd(da);
-}
+; trapd
+declare 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