1 # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
2 # RUN: llc -march=amdgcn -mcpu=gfx1010 -run-pass machineverifier -o - %s | FileCheck %s
4 # Two uses of the same literal only count as one use of the constant bus.
7 name: use_duplicate_literal_cndmask
8 tracksRegLiveness: true
12 ; CHECK-LABEL: name: use_duplicate_literal_cndmask
13 ; CHECK: liveins: $vcc_lo
15 ; CHECK-NEXT: $vgpr0 = V_CNDMASK_B32_e64 0, 1234567, 0, 1234567, killed $vcc_lo, implicit $exec
16 $vgpr0 = V_CNDMASK_B32_e64 0, 1234567, 0, 1234567, killed $vcc_lo, implicit $exec
20 name: use_duplicate_literal_fma
21 tracksRegLiveness: true
25 ; CHECK-LABEL: name: use_duplicate_literal_fma
26 ; CHECK: liveins: $vgpr0
28 ; CHECK-NEXT: $vgpr0 = V_FMA_F32_e64 0, $vgpr0, 0, 1077936128, 0, 1077936128, 0, 0, implicit $mode, implicit $exec
29 $vgpr0 = V_FMA_F32_e64 0, $vgpr0, 0, 1077936128, 0, 1077936128, 0, 0, implicit $mode, implicit $exec
33 name: use_duplicate_literal_fmaak
34 tracksRegLiveness: true
38 ; CHECK-LABEL: name: use_duplicate_literal_fmaak
39 ; CHECK: liveins: $vgpr0
41 ; CHECK-NEXT: $vgpr0 = V_FMAAK_F32 1077936128, $vgpr0, 1077936128, implicit $mode, implicit $exec
42 $vgpr0 = V_FMAAK_F32 1077936128, $vgpr0, 1077936128, implicit $mode, implicit $exec
46 name: use_duplicate_literal_sop2
47 tracksRegLiveness: true
50 ; CHECK-LABEL: name: use_duplicate_literal_sop2
51 ; CHECK: $sgpr0 = S_ADD_U32 12345, 12345, implicit-def $scc
52 $sgpr0 = S_ADD_U32 12345, 12345, implicit-def $scc
56 name: use_duplicate_literal_sopc
57 tracksRegLiveness: true
60 ; CHECK-LABEL: name: use_duplicate_literal_sopc
61 ; CHECK: S_CMP_LG_U32 305419896, 305419896, implicit-def $scc
62 S_CMP_LG_U32 305419896, 305419896, implicit-def $scc