1# REQUIRES: amdgpu-registered-target 2# RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir -mtriple=amdgcn-amd-amdhsa --test FileCheck --test-arg --check-prefix=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2> %t.log 3# RUN: FileCheck --check-prefix=RESULT %s < %t 4 5# CHECK-INTERESTINGNESS: S_NOP 0 6 7# RESULT: name: func0 8# RESULT: S_NOP 0 9 10# RESULT: name: func1 11# RESULT-NOT: S_NOP 12 13--- | 14 define void @func0() { 15 ret void 16 } 17 18 define void @func1() { 19 ret void 20 } 21 22... 23--- 24name: func0 25tracksRegLiveness: true 26body: | 27 bb.0: 28 S_WAITCNT 0 29 S_NOP 0 30 %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec 31 INLINEASM &"", 1 /* sideeffect attdialect */ 32 S_ENDPGM 0, implicit %0 33... 34 35--- 36name: func1 37tracksRegLiveness: true 38body: | 39 bb.0: 40 S_WAITCNT 0 41 S_NOP 1 42 %0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec 43 INLINEASM &"", 1 /* sideeffect attdialect */ 44 S_ENDPGM 0, implicit %0 45... 46