[PATCH] D64273: [AMDGPU] Add test case on crashing of `si-lower-sgpr-spills` pass
Michael Liao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 15:08:35 PDT 2019
hliao created this revision.
hliao added a reviewer: arsenm.
Herald added subscribers: llvm-commits, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl, qcolombet.
Herald added a project: LLVM.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64273
Files:
llvm/test/CodeGen/AMDGPU/si-lower-sgpr-spills.mir
Index: llvm/test/CodeGen/AMDGPU/si-lower-sgpr-spills.mir
===================================================================
--- /dev/null
+++ llvm/test/CodeGen/AMDGPU/si-lower-sgpr-spills.mir
@@ -0,0 +1,20 @@
+# RUN: llc -mtriple=amdgcn-amd-amdhsa -verify-machineinstrs -run-pass=si-lower-sgpr-spills -o - %s | FileCheck %s
+
+# CHECK-LABEL: name: foo
+# CHECK: V_WRITELANE
+# CHECK-NEXT: V_WRITELANE
+# CHECK-NEXT: V_WRITELANE
+# CHECK-NEXT: V_WRITELANE
+# CHECK: V_READLANE
+# CHECK-NEXT: V_READLANE
+# CHECK-NEXT: V_READLANE
+# CHECK-NEXT: V_READLANE
+---
+name: foo
+body: |
+ bb.0:
+
+ bb.1:
+ renamable $sgpr36_sgpr37 = S_XOR_B64 renamable $vcc, -1, implicit-def dead $scc
+ $sgpr34_sgpr35 = S_AND_SAVEEXEC_B64 $sgpr36_sgpr37, implicit-def $exec, implicit-def $scc, implicit $exec
+ S_ENDPGM 0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64273.208245.patch
Type: text/x-patch
Size: 823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190705/2634bfeb/attachment.bin>
More information about the llvm-commits
mailing list