]> granicus.if.org Git - llvm/commitdiff
AMDGPU: Fix test verification
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 3 May 2019 13:42:55 +0000 (13:42 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 3 May 2019 13:42:55 +0000 (13:42 +0000)
This should run the verifier, and needs to enable trackRegLiveness.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359882 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/AMDGPU/fold-imm-copy.mir

index 696d47de882a5b1e6ba7081eb611955b9e026d3c..7fe6ce845ab9ea5a80f64ad86638127c24610eee 100644 (file)
@@ -1,10 +1,12 @@
-# RUN: llc -march=amdgcn -run-pass si-fold-operands %s -o - | FileCheck -check-prefix=GCN %s
+# RUN: llc -march=amdgcn -run-pass si-fold-operands -verify-machineinstrs %s -o - | FileCheck -check-prefix=GCN %s
 
 # GCN-LABEL:       name: fold-imm-copy
 # GCN:             [[SREG:%[0-9+]]]:sreg_32_xm0 = S_MOV_B32 65535
 # GCN:             V_AND_B32_e32 [[SREG]]
 
+---
 name: fold-imm-copy
+tracksRegLiveness: true
 body:             |
   bb.0:
     liveins: $vgpr0, $sgpr0_sgpr1