Skip to content

Commit 6fb5015

Browse files
committed
added a mir test for shrinking Lo128 register type
1 parent acfb65a commit 6fb5015

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2+
# RUN: llc -mtriple=amdgcn -mcpu=gfx1100 -run-pass=si-shrink-instructions -verify-machineinstrs -o - %s | FileCheck -check-prefix=GFX1100 %s
3+
4+
---
5+
name: 16bit_lo128_shrink
6+
tracksRegLiveness: true
7+
body: |
8+
bb.0:
9+
liveins: $vgpr127
10+
; GFX1100-LABEL: name: 16bit_lo128_shrink
11+
; GFX1100: liveins: $vgpr127
12+
; GFX1100-NEXT: {{ $}}
13+
; GFX1100-NEXT: V_CMP_EQ_U16_t16_e32 0, $vgpr127, implicit-def $vcc, implicit $exec, implicit $exec
14+
$vcc_lo = V_CMP_EQ_U16_t16_e64 0, $vgpr127, implicit-def $vcc, implicit $exec
15+
...
16+
17+
---
18+
name: 16bit_lo128_no_shrink
19+
tracksRegLiveness: true
20+
body: |
21+
bb.0:
22+
liveins: $vgpr128
23+
; GFX1100-LABEL: name: 16bit_lo128_no_shrink
24+
; GFX1100: liveins: $vgpr128
25+
; GFX1100-NEXT: {{ $}}
26+
; GFX1100-NEXT: $vcc_lo = V_CMP_EQ_U16_t16_e64 0, $vgpr128, implicit-def $vcc_lo, implicit $exec
27+
$vcc_lo = V_CMP_EQ_U16_t16_e64 0, $vgpr128, implicit-def $vcc, implicit $exec
28+
...

0 commit comments

Comments
 (0)