| 1 |
# REQUIRES: amdgpu-registered-target |
| 2 |
# RUN: llvm-reduce -abort-on-invalid-reduction -simplify-mir --delta-passes=register-uses -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 --match-full-lines --check-prefix=RESULT %s < %t |
| 4 |
|
| 5 |
# Generic instructions should not have undef set on operands |
| 6 |
# CHECK-INTERESTINGNESS: G_ADD |
| 7 |
|
| 8 |
# RESULT: %1:vreg_64(s64) = IMPLICIT_DEF |
| 9 |
# RESULT: %add:_(s64) = G_ADD %1, %1 |
| 10 |
|
| 11 |
--- |
| 12 |
name: func |
| 13 |
tracksRegLiveness: true |
| 14 |
body: | |
| 15 |
bb.0: |
| 16 |
liveins: $vgpr0, $vgpr1, $vgpr2_vgpr3 |
| 17 |
|
| 18 |
%0:vgpr(s32) = G_IMPLICIT_DEF |
| 19 |
%1:vreg_64(s64) = IMPLICIT_DEF |
| 20 |
%add:_(s64) = G_ADD %1, %1 |
| 21 |
%ptr:_(p1) = G_IMPLICIT_DEF |
| 22 |
G_STORE %0(s32), %ptr(p1) :: (store (s32), addrspace 1) |
| 23 |
S_ENDPGM 0, implicit %add(s64), implicit %1(s64) |
| 24 |
|
| 25 |
... |