Matthias Braun | dbcf9e2 | 2017-03-02 00:35:08 +0000 | [diff] [blame] | 1 | # RUN: llc -o - %s -mtriple=amdgcn--amdhsa -verify-machineinstrs -run-pass=greedy,virtregrewriter | FileCheck %s |
Matt Arsenault | 2b1f9aa | 2017-05-17 21:56:25 +0000 | [diff] [blame] | 2 | --- | |
| 3 | |
| 4 | define amdgpu_kernel void @func0() { |
| 5 | ret void |
| 6 | } |
| 7 | |
| 8 | ... |
| 9 | |
Matthias Braun | dbcf9e2 | 2017-03-02 00:35:08 +0000 | [diff] [blame] | 10 | --- |
| 11 | # We should not detect any interference between v0/v1 here and only allocate |
| 12 | # sgpr0-sgpr3. |
| 13 | # |
| 14 | # CHECK-LABEL: func0 |
Puyan Lotfi | 43e94b1 | 2018-01-31 22:04:26 +0000 | [diff] [blame] | 15 | # CHECK: S_NOP 0, implicit-def renamable $sgpr0 |
| 16 | # CHECK: S_NOP 0, implicit-def renamable $sgpr3 |
| 17 | # CHECK: S_NOP 0, implicit-def renamable $sgpr1 |
| 18 | # CHECK: S_NOP 0, implicit-def renamable $sgpr2 |
| 19 | # CHECK: S_NOP 0, implicit renamable $sgpr0, implicit renamable $sgpr3 |
| 20 | # CHECK: S_NOP 0, implicit renamable $sgpr1, implicit renamable $sgpr2 |
Matthias Braun | dbcf9e2 | 2017-03-02 00:35:08 +0000 | [diff] [blame] | 21 | name: func0 |
| 22 | body: | |
| 23 | bb.0: |
| 24 | S_NOP 0, implicit-def undef %0.sub0 : sreg_128 |
| 25 | S_NOP 0, implicit-def %0.sub3 |
| 26 | S_NOP 0, implicit-def undef %1.sub1 : sreg_128 |
| 27 | S_NOP 0, implicit-def %1.sub2 |
| 28 | |
| 29 | |
| 30 | S_NOP 0, implicit %0.sub0, implicit %0.sub3 |
| 31 | S_NOP 0, implicit %1.sub1, implicit %1.sub2 |
| 32 | ... |