28 lines · plain
1# REQUIRES: amdgpu-registered-target2# 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.log3# RUN: FileCheck --check-prefix=RESULT %s < %t4 5# Test that the MIR parser successfully infers the target triple from6# the module and avoids needing the -mtriple flag.7 8# CHECK-INTERESTINGNESS: S_ENDPGM9 10# RESULT: name: func11 12--- |13 target triple = "amdgcn-amd-amdhsa"14 15 define void @func() {16 ret void17 }18 19...20---21name: func22tracksRegLiveness: true23body: |24 bb.0:25 S_NOP 026 S_ENDPGM 027...28