1 # RUN: llc -o - %s -mtriple=armv7s-- -run-pass=machine-cp | FileCheck %s
3 # Test that machine copy prop recognizes the implicit-def operands on a COPY
4 # as clobbering the register.
5 # CHECK-LABEL: name: func
6 # CHECK: %d2 = VMOVv2i32 2, 14, _
7 # CHECK: %s5 = COPY %s0, implicit %q1, implicit-def %q1
8 # CHECK: VST1q32 %r0, 0, %q1, 14, _
9 # The following two COPYs must not be removed
10 # CHECK: %s4 = COPY %s20, implicit-def %q1
11 # CHECK: %s5 = COPY %s0, implicit killed %d0, implicit %q1, implicit-def %q1
12 # CHECK: VST1q32 %r2, 0, %q1, 14, _
16 %d2 = VMOVv2i32 2, 14, _
17 %s5 = COPY %s0, implicit %q1, implicit-def %q1
18 VST1q32 %r0, 0, %q1, 14, _
19 %s4 = COPY %s20, implicit-def %q1
20 %s5 = COPY %s0, implicit killed %d0, implicit %q1, implicit-def %q1
21 VST1q32 %r2, 0, %q1, 14, _