llvm-project/llvm/test/tools/llvm-reduce/mir/multiple-functions.mir
Matt Arsenault 59328ab0ce llvm-reduce: Add -abort-on-invalid-reduction to MIR tests
Ideally reductions would never produce invalid IR, and we shouldn't
regress on cases that already avoid doing so.
2022-06-07 10:28:23 -04:00

46 lines
964 B
YAML

# REQUIRES: amdgpu-registered-target
# 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
# RUN: FileCheck --check-prefix=RESULT %s < %t
# CHECK-INTERESTINGNESS: S_NOP 0
# RESULT: name: func0
# RESULT: S_NOP 0
# RESULT: name: func1
# RESULT-NOT: S_NOP
--- |
define void @func0() {
ret void
}
define void @func1() {
ret void
}
...
---
name: func0
tracksRegLiveness: true
body: |
bb.0:
S_WAITCNT 0
S_NOP 0
%0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
INLINEASM &"", 1 /* sideeffect attdialect */
S_ENDPGM 0, implicit %0
...
---
name: func1
tracksRegLiveness: true
body: |
bb.0:
S_WAITCNT 0
S_NOP 1
%0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
INLINEASM &"", 1 /* sideeffect attdialect */
S_ENDPGM 0, implicit %0
...