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
14 ; CHECK: $vgpr0 = V_CNDMASK_B32_e64 0, 1234567, 0, 1234567, killed $vcc_lo, implicit $exec
15 $vgpr0 = V_CNDMASK_B32_e64 0, 1234567, 0, 1234567, killed $vcc_lo, implicit $exec
19 name: use_duplicate_literal_fma
20 tracksRegLiveness: true
24 ; CHECK-LABEL: name: use_duplicate_literal_fma
25 ; CHECK: liveins: $vgpr0
26 ; CHECK: $vgpr0 = V_FMA_F32_e64 0, $vgpr0, 0, 1077936128, 0, 1077936128, 0, 0, implicit $mode, implicit $exec
27 $vgpr0 = V_FMA_F32_e64 0, $vgpr0, 0, 1077936128, 0, 1077936128, 0, 0, implicit $mode, implicit $exec