Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / Hexagon / hvx-tmp-accum-no-erros.s
bloba43c8084dbfa038b127413545a4de4b3c1518a97
1 # RUN: llvm-mc -triple=hexagon -mattr=+hvxv68 -filetype=obj %s | llvm-objdump --no-print-imm-hex --mattr=+hvxv68 -d - | FileCheck %s
3 # packet w/accum with register different from one loaded to
5 v1.tmp = vmem(r0+#0)
6 v0.w += vrmpy(v1.b,v2.b)
9 # CHECK: { v0.w += vrmpy(v1.b,v2.b)
10 # CHECK-NEXT: v1.tmp = vmem(r0+#0) }
12 # packet w/accum and store or other non-def register use
14 v1.tmp = vmem(r0+#0)
15 v0 += vrmpyub(v1, v3)
16 vmem(r0) = v0
19 # CHECK: { v0.uw += vrmpy(v1.ub,v3.ub)
20 # CHECK-NEXT: v1.tmp = vmem(r0+#0)
21 # CHECK-NEXT: vmem(r0+#0) = v0 }
23 # packet w/non-accum and otherwise-legal register def/use
25 v0.tmp =vmem(r2+#0)
26 Q3 = vcmp.eq(v0.w, v5.w)
29 # CHECK: { q3 = vcmp.eq(v0.w,v5.w)
30 # CHECK-NEXT: v0.tmp = vmem(r2+#0) }
32 # scalar "accums" unaffected by this change.
34 r0 += add(r1, r2)
37 # CHECK { r0 += add(r1,r2) }