[llvm] r361332 - AMDGPU: Add some tests for inlineasm behavior
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 21 16:23:13 PDT 2019
Author: arsenm
Date: Tue May 21 16:23:12 2019
New Revision: 361332
URL: http://llvm.org/viewvc/llvm-project?rev=361332&view=rev
Log:
AMDGPU: Add some tests for inlineasm behavior
Modified:
llvm/trunk/test/CodeGen/AMDGPU/endpgm-dce.mir
Modified: llvm/trunk/test/CodeGen/AMDGPU/endpgm-dce.mir
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/AMDGPU/endpgm-dce.mir?rev=361332&r1=361331&r2=361332&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/AMDGPU/endpgm-dce.mir (original)
+++ llvm/trunk/test/CodeGen/AMDGPU/endpgm-dce.mir Tue May 21 16:23:12 2019
@@ -313,3 +313,46 @@ body: |
S_ENDPGM 0, implicit %3
...
+
+---
+# GCN-LABEL: name: inlineasm_nosideeffect
+# GCN-NOT: S_OR_B64
+# GCN-NOT: INLINEASM
+# GCN: S_ENDPGM 0
+name: inlineasm_nosideeffect
+tracksRegLiveness: true
+registers:
+ - { id: 0, class: vreg_64 }
+ - { id: 1, class: vgpr_32 }
+body: |
+ bb.0:
+ $vcc = IMPLICIT_DEF
+ %0 = IMPLICIT_DEF
+ %1 = IMPLICIT_DEF
+ $sgpr0_sgpr1 = S_OR_B64 $exec, killed $vcc, implicit-def $scc
+ %2:sreg_64 = IMPLICIT_DEF
+ INLINEASM &"", 0, 0
+ S_ENDPGM 0
+...
+
+---
+# GCN-LABEL: name: inlineasm_sideeffect
+# GCN: $sgpr0_sgpr1 = S_OR_B64 $exec, killed $vcc, implicit-def $scc
+# GCN-NEXT: IMPLICIT_DEF
+# GCN-NEXT: INLINEASM
+# GCN-NEXT: S_ENDPGM 0
+name: inlineasm_sideeffect
+tracksRegLiveness: true
+registers:
+ - { id: 0, class: vreg_64 }
+ - { id: 1, class: vgpr_32 }
+body: |
+ bb.0:
+ $vcc = IMPLICIT_DEF
+ %0 = IMPLICIT_DEF
+ %1 = IMPLICIT_DEF
+ $sgpr0_sgpr1 = S_OR_B64 $exec, killed $vcc, implicit-def $scc
+ %2:sreg_64 = IMPLICIT_DEF
+ INLINEASM &"", 1, 0
+ S_ENDPGM 0
+...
More information about the llvm-commits
mailing list