[llvm] 181c492 - [AMDGPU] Add implicit negative check for the set_gpr_idx tests

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 30 06:45:40 PDT 2021


Author: Jay Foad
Date: 2021-04-30T14:45:12+01:00
New Revision: 181c492ee72c2234e50a60dda467a587f1e8dc08

URL: https://github.com/llvm/llvm-project/commit/181c492ee72c2234e50a60dda467a587f1e8dc08
DIFF: https://github.com/llvm/llvm-project/commit/181c492ee72c2234e50a60dda467a587f1e8dc08.diff

LOG: [AMDGPU] Add implicit negative check for the set_gpr_idx tests

The only effect of the optimization is to remove s_set_gpr_idx_*
instructions, and update_mir_test_checks.py always inserts CHECK: rather
than CHECK-NEXT: checks, so without this implicit negative check, the
tests would always pass even if the optimization did nothing.

Differential Revision: https://reviews.llvm.org/D101622

Added: 
    

Modified: 
    llvm/test/CodeGen/AMDGPU/set-gpr-idx-peephole.mir

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/AMDGPU/set-gpr-idx-peephole.mir b/llvm/test/CodeGen/AMDGPU/set-gpr-idx-peephole.mir
index 765148a99ac0..6ba12e569d0d 100644
--- a/llvm/test/CodeGen/AMDGPU/set-gpr-idx-peephole.mir
+++ b/llvm/test/CodeGen/AMDGPU/set-gpr-idx-peephole.mir
@@ -1,5 +1,5 @@
 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
-# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass si-pre-emit-peephole -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s
+# RUN: llc -march=amdgcn -mcpu=gfx900 -run-pass si-pre-emit-peephole -verify-machineinstrs -o - %s | FileCheck -check-prefix=GCN %s -implicit-check-not=S_SET_GPR_IDX
 
 ---
 name:            simple


        


More information about the llvm-commits mailing list