1# REQUIRES: amdgpu-registered-target 2# RUN: llvm-reduce -simplify-mir --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# Test that the MIR parser successfully infers the target triple from 6# the module and avoids needing the -mtriple flag. 7 8# CHECK-INTERESTINGNESS: S_ENDPGM 9 10# RESULT: name: func 11 12--- | 13 target triple = "amdgcn-amd-amdhsa" 14 15 define void @func() { 16 ret void 17 } 18 19... 20--- 21name: func 22tracksRegLiveness: true 23body: | 24 bb.0: 25 S_NOP 0 26 S_ENDPGM 0 27... 28