[PATCH] D133545: [PowerPC][NFC] Add test case to show CSR_64_AllRegs_AIX_Dflt_VSX is not correct

Ting Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 18:30:31 PDT 2022


tingwang created this revision.
tingwang added reviewers: lkail, ZarkoCA, PowerPC.
tingwang added a project: LLVM.
Herald added subscribers: shchenz, nemanjai.
Herald added a project: All.
tingwang requested review of this revision.
Herald added a subscriber: llvm-commits.

Add pre-commit test case for CSR_64_AllRegs_AIX_Dflt_VSX fix.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133545

Files:
  llvm/test/CodeGen/PowerPC/aix64-patchpoint-regmask.ll


Index: llvm/test/CodeGen/PowerPC/aix64-patchpoint-regmask.ll
===================================================================
--- /dev/null
+++ llvm/test/CodeGen/PowerPC/aix64-patchpoint-regmask.ll
@@ -0,0 +1,12 @@
+; RUN: llc -O0 -verify-machineinstrs -mcpu=pwr9 -mtriple powerpc64-ibm-aix-xcoff -print-after=finalize-isel --print-regmask-num-regs=-1 < %s 2>&1 | \
+; RUN: FileCheck %s
+
+; Error regmask pattern should be fixed: v20:v31 should be reserved in AIX defalut ABI
+; CHECK: PATCHPOINT{{[^<]+}}<regmask {{[^>]+}} $v20 $v21 $v22 $v23 $v24 $v25 $v26 $v27 $v28 $v29 $v30 $v31 {{[^>]+}}>
+define void @test(i64 %p1, i64 %p2, i64 %p3, i64 %p4) {
+entry:
+  call anyregcc void (i64, i32, ptr, i32, ...) @llvm.experimental.patchpoint.void(i64 13, i32 40, ptr inttoptr (i64 0 to ptr), i32 2, i64 %p1, i64 %p2, i64 %p3, i64 %p4)
+  ret void
+}
+
+declare void @llvm.experimental.patchpoint.void(i64, i32, ptr, i32, ...)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133545.458938.patch
Type: text/x-patch
Size: 926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220909/ced82de3/attachment.bin>


More information about the llvm-commits mailing list