|
| 1 | +# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py |
| 2 | +# RUN: llc -march=amdgcn -mcpu=gfx908 %s -o - -run-pass machine-cp -verify-machineinstrs | FileCheck -check-prefix=GFX908 %s |
| 3 | +# RUN: llc -march=amdgcn -mcpu=gfx90a %s -o - -run-pass machine-cp -verify-machineinstrs | FileCheck -check-prefix=GFX90A %s |
| 4 | + |
| 5 | +--- |
| 6 | +name: do_not_propagate_agpr_to_agpr |
| 7 | +body: | |
| 8 | + bb.0: |
| 9 | + successors: |
| 10 | + liveins: $agpr0 |
| 11 | +
|
| 12 | + ; GFX908-LABEL: name: do_not_propagate_agpr_to_agpr |
| 13 | + ; GFX908: renamable $vgpr0 = COPY renamable $agpr0, implicit $exec |
| 14 | + ; GFX908: renamable $agpr1 = COPY renamable $vgpr0, implicit $exec |
| 15 | + ; GFX908: renamable $agpr2 = COPY renamable $vgpr0, implicit $exec |
| 16 | + ; GFX908: S_ENDPGM 0, implicit $vgpr0, implicit $agpr1, implicit $agpr2 |
| 17 | + ; GFX90A-LABEL: name: do_not_propagate_agpr_to_agpr |
| 18 | + ; GFX90A: renamable $vgpr0 = COPY renamable $agpr0, implicit $exec |
| 19 | + ; GFX90A: renamable $agpr1 = COPY $agpr0, implicit $exec |
| 20 | + ; GFX90A: renamable $agpr2 = COPY $agpr0, implicit $exec |
| 21 | + ; GFX90A: S_ENDPGM 0, implicit $vgpr0, implicit $agpr1, implicit $agpr2 |
| 22 | + renamable $vgpr0 = COPY renamable $agpr0, implicit $exec |
| 23 | + renamable $agpr1 = COPY renamable $vgpr0, implicit $exec |
| 24 | + renamable $agpr2 = COPY renamable $vgpr0, implicit $exec |
| 25 | + S_ENDPGM 0, implicit $vgpr0, implicit $agpr1, implicit $agpr2 |
| 26 | +... |
| 27 | +--- |
| 28 | +name: propagate_vgpr_to_agpr |
| 29 | +body: | |
| 30 | + bb.0: |
| 31 | + successors: |
| 32 | + liveins: $vgpr0 |
| 33 | +
|
| 34 | + ; GFX908-LABEL: name: propagate_vgpr_to_agpr |
| 35 | + ; GFX908: renamable $agpr0 = COPY renamable $vgpr0, implicit $exec |
| 36 | + ; GFX908: renamable $agpr1 = COPY $vgpr0, implicit $exec |
| 37 | + ; GFX908: renamable $agpr2 = COPY $vgpr0, implicit $exec |
| 38 | + ; GFX908: S_ENDPGM 0, implicit $agpr0, implicit $agpr1, implicit $agpr2 |
| 39 | + ; GFX90A-LABEL: name: propagate_vgpr_to_agpr |
| 40 | + ; GFX90A: renamable $agpr0 = COPY renamable $vgpr0, implicit $exec |
| 41 | + ; GFX90A: renamable $agpr1 = COPY $vgpr0, implicit $exec |
| 42 | + ; GFX90A: renamable $agpr2 = COPY $vgpr0, implicit $exec |
| 43 | + ; GFX90A: S_ENDPGM 0, implicit $agpr0, implicit $agpr1, implicit $agpr2 |
| 44 | + renamable $agpr0 = COPY renamable $vgpr0, implicit $exec |
| 45 | + renamable $agpr1 = COPY renamable $agpr0, implicit $exec |
| 46 | + renamable $agpr2 = COPY renamable $agpr0, implicit $exec |
| 47 | + S_ENDPGM 0, implicit $agpr0, implicit $agpr1, implicit $agpr2 |
| 48 | +... |
| 49 | +--- |
| 50 | +name: propagate_agpr_to_vgpr |
| 51 | +body: | |
| 52 | + bb.0: |
| 53 | + successors: |
| 54 | + liveins: $agpr0 |
| 55 | +
|
| 56 | + ; GFX908-LABEL: name: propagate_agpr_to_vgpr |
| 57 | + ; GFX908: renamable $vgpr0 = COPY renamable $agpr0, implicit $exec |
| 58 | + ; GFX908: renamable $vgpr1 = COPY $agpr0, implicit $exec |
| 59 | + ; GFX908: renamable $vgpr2 = COPY $agpr0, implicit $exec |
| 60 | + ; GFX908: S_ENDPGM 0, implicit $vgpr0, implicit $vgpr1, implicit $vgpr2 |
| 61 | + ; GFX90A-LABEL: name: propagate_agpr_to_vgpr |
| 62 | + ; GFX90A: renamable $vgpr0 = COPY renamable $agpr0, implicit $exec |
| 63 | + ; GFX90A: renamable $vgpr1 = COPY $agpr0, implicit $exec |
| 64 | + ; GFX90A: renamable $vgpr2 = COPY $agpr0, implicit $exec |
| 65 | + ; GFX90A: S_ENDPGM 0, implicit $vgpr0, implicit $vgpr1, implicit $vgpr2 |
| 66 | + renamable $vgpr0 = COPY renamable $agpr0, implicit $exec |
| 67 | + renamable $vgpr1 = COPY renamable $vgpr0, implicit $exec |
| 68 | + renamable $vgpr2 = COPY renamable $vgpr0, implicit $exec |
| 69 | + S_ENDPGM 0, implicit $vgpr0, implicit $vgpr1, implicit $vgpr2 |
| 70 | +... |
0 commit comments