Author: Albion Fung Date: 2021-06-25T02:08:39-05:00 New Revision: 90c60a5f59c5a3e1d1da9b7721fe5f89db2b2ad3
URL: https://github.com/llvm/llvm-project/commit/90c60a5f59c5a3e1d1da9b7721fe5f89db2b2ad3 DIFF: https://github.com/llvm/llvm-project/commit/90c60a5f59c5a3e1d1da9b7721fe5f89db2b2ad3.diff LOG: Trap test case separation Added: Modified: 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-trap.c b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.c index 110c932936e1..2f5e2e6f7eea 100644 --- a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.c +++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.c @@ -11,6 +11,7 @@ long long lla, llb; double da; int ia, ib; +#ifndef __PPC64__ // tdw void test_xl_tdw(void) { // CHECK-LABEL: test_xl_tdw @@ -25,8 +26,9 @@ void test_tdw(void) { // CHECK-NEXT: entry: // CHECK: void @llvm.ppc.tdw(i64 %0, i64 %1, i32 13) - __tdw(lla, llb, 13); + __builtin_ppc_tdw(lla, llb, 13); } +#endif // td void test_tw(void) { @@ -34,7 +36,7 @@ void test_tw(void) { // CHECK-NEXT: entry: // CHECK: void @llvm.ppc.tw(i32 %0, i32 %1, i32 1) - __tw(ia, ib, 1); + __builtin_ppc_tw(ia, ib, 1); } void test_xl_tw(void) { @@ -60,6 +62,7 @@ void test_xl_trap(void) { __trap(ia); } +#ifndef __PPC64__ // trapd void test_trapd(void) { // CHECK-LABEL: test_trapd @@ -74,3 +77,4 @@ void test_xl_trapd(void) { // CHECK: void @llvm.ppc.trapd(i64 %0) __trapd(da); } +#endif diff --git a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll index e8f7aa52f20d..1407dbf1db5f 100644 --- a/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll +++ b/llvm/test/CodeGen/PowerPC/builtins-ppc-xlcompat-trap.ll @@ -9,6 +9,7 @@ ; RUN: -mcpu=pwr9 < %s | FileCheck %s --check-prefix=CHECK-64 ; tdw +#ifndef __PPC64__ declare void @llvm.ppc.tdw(i64 %a, i64 %b, i32 immarg) define dso_local void @test__tdwlgt(i64 %a, i64 %b) { call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 1) @@ -69,8 +70,9 @@ define dso_local void @test__tdw_no_match(i64 %a, i64 %b) { call void @llvm.ppc.tdw(i64 %a, i64 %b, i32 13) ret void } +#endif -; td +; tw declare void @llvm.ppc.tw(i32 %a, i32 %b, i32 %c) define dso_local void @test__twlgt(i32 %a, i32 %b) { call void @llvm.ppc.tw(i32 %a, i32 %b, i32 1) _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits