1 # RUN: llc -march=amdgcn -verify-machineinstrs -start-before si-shrink-instructions -stop-before si-insert-skips -o - %s | FileCheck -check-prefix=GCN %s
3 # GCN-LABEL: name: subbrev{{$}}
4 # GCN: V_SUBBREV_U32_e32 0, undef $vgpr0, implicit-def $vcc, implicit killed $vcc, implicit $exec
8 tracksRegLiveness: true
10 - { id: 0, class: vgpr_32 }
11 - { id: 1, class: vgpr_32 }
12 - { id: 2, class: vgpr_32 }
13 - { id: 3, class: sreg_64_xexec }
14 - { id: 4, class: vgpr_32 }
15 - { id: 5, class: sreg_64_xexec }
22 %3 = V_CMP_GT_U32_e64 %0, %1, implicit $exec
23 %4, %5 = V_SUBBREV_U32_e64 0, %0, %3, 0, implicit $exec
24 GLOBAL_STORE_DWORD undef $vgpr0_vgpr1, %4, 0, 0, 0, 0, implicit $exec
28 # GCN-LABEL: name: subb{{$}}
29 # GCN: V_SUBBREV_U32_e32 0, undef $vgpr0, implicit-def $vcc, implicit killed $vcc, implicit $exec
33 tracksRegLiveness: true
35 - { id: 0, class: vgpr_32 }
36 - { id: 1, class: vgpr_32 }
37 - { id: 2, class: vgpr_32 }
38 - { id: 3, class: sreg_64_xexec }
39 - { id: 4, class: vgpr_32 }
40 - { id: 5, class: sreg_64_xexec }
47 %3 = V_CMP_GT_U32_e64 %0, %1, implicit $exec
48 %4, %5 = V_SUBB_U32_e64 %0, 0, %3, 0, implicit $exec
49 GLOBAL_STORE_DWORD undef $vgpr0_vgpr1, %4, 0, 0, 0, 0, implicit $exec
53 # GCN-LABEL: name: addc{{$}}
54 # GCN: V_ADDC_U32_e32 0, undef $vgpr0, implicit-def $vcc, implicit killed $vcc, implicit $exec
58 tracksRegLiveness: true
60 - { id: 0, class: vgpr_32 }
61 - { id: 1, class: vgpr_32 }
62 - { id: 2, class: vgpr_32 }
63 - { id: 3, class: sreg_64_xexec }
64 - { id: 4, class: vgpr_32 }
65 - { id: 5, class: sreg_64_xexec }
72 %3 = V_CMP_GT_U32_e64 %0, %1, implicit $exec
73 %4, %5 = V_ADDC_U32_e64 0, %0, %3, 0, implicit $exec
74 GLOBAL_STORE_DWORD undef $vgpr0_vgpr1, %4, 0, 0, 0, 0, implicit $exec
78 # GCN-LABEL: name: addc2{{$}}
79 # GCN: V_ADDC_U32_e32 0, undef $vgpr0, implicit-def $vcc, implicit killed $vcc, implicit $exec
83 tracksRegLiveness: true
85 - { id: 0, class: vgpr_32 }
86 - { id: 1, class: vgpr_32 }
87 - { id: 2, class: vgpr_32 }
88 - { id: 3, class: sreg_64_xexec }
89 - { id: 4, class: vgpr_32 }
90 - { id: 5, class: sreg_64_xexec }
97 %3 = V_CMP_GT_U32_e64 %0, %1, implicit $exec
98 %4, %5 = V_ADDC_U32_e64 %0, 0, %3, 0, implicit $exec
99 GLOBAL_STORE_DWORD undef $vgpr0_vgpr1, %4, 0, 0, 0, 0, implicit $exec