[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / Hexagon / v60-vmpy-acc.s
bloba582a5f740c9ef4696d416d1ee0d00f47bd56074
1 #RUN: llvm-mc -triple=hexagon -mcpu=hexagonv60 -filetype=obj -mhvx %s | \
2 #RUN: llvm-objdump -triple=hexagon -mcpu=hexagonv60 -mhvx -d - | \
3 #RUN: FileCheck %s
5 #CHECK: 1936ee37 { v23.w += vdmpy(v15:14.h,r22.uh,#1):sat }
6 v23.w += vdmpy(v15:14.h,r22.uh,#1):sat
8 #CHECK: 193bf90f { v15.w += vdmpy(v25.h,r27.uh):sat }
9 v15.w += vdmpy(v25.h,r27.uh):sat
11 #CHECK: 1902fcf0 { v17:16.h += vdmpy(v29:28.ub,r2.b) }
12 v17:16.h += vdmpy(v29:28.ub,r2.b)
14 #CHECK: 190cffd1 { v17.h += vdmpy(v31.ub,r12.b) }
15 v17.h += vdmpy(v31.ub,r12.b)
17 #CHECK: 1900f5ac { v12.w += vrmpy(v21.ub,r0.b) }
18 v12.w += vrmpy(v21.ub,r0.b)
20 #CHECK: 1905fb86 { v6.uw += vrmpy(v27.ub,r5.ub) }
21 v6.uw += vrmpy(v27.ub,r5.ub)
23 #CHECK: 191de570 { v16.w += vdmpy(v5.h,r29.b) }
24 v16.w += vdmpy(v5.h,r29.b)
26 #CHECK: 191de846 { v7:6.w += vtmpy(v9:8.h,r29.b) }
27 v7:6.w += vtmpy(v9:8.h,r29.b)
29 #CHECK: 190bfa22 { v3:2.h += vtmpy(v27:26.ub,r11.b) }
30 v3:2.h += vtmpy(v27:26.ub,r11.b)
32 #CHECK: 1915e408 { v9:8.h += vtmpy(v5:4.b,r21.b) }
33 v9:8.h += vtmpy(v5:4.b,r21.b)
35 #CHECK: 1987f71e { v31:30.uh += vmpy(v23.ub,r7.ub) }
36 v31:30.uh += vmpy(v23.ub,r7.ub)
38 #CHECK: 1969ff47 { v7.w += vasl(v31.w,r9) }
39 v7.w += vasl(v31.w,r9)
41 #CHECK: 196de3b0 { v16.w += vasr(v3.w,r13) }
42 v16.w += vasr(v3.w,r13)
44 #CHECK: 1977fe0a { v11:10.uw += vdsad(v31:30.uh,r23.uh) }
45 v11:10.uw += vdsad(v31:30.uh,r23.uh)
47 #CHECK: 196eee36 { v22.h += vmpyi(v14.h,r14.b) }
48 v22.h += vmpyi(v14.h,r14.b)
50 #CHECK: 1931faac { v13:12.h += vmpy(v26.ub,r17.b) }
51 v13:12.h += vmpy(v26.ub,r17.b)
53 #CHECK: 193cfc94 { v21:20.w += vdmpy(v29:28.h,r28.b) }
54 v21:20.w += vdmpy(v29:28.h,r28.b)
56 #CHECK: 1934fc62 { v2.w += vdmpy(v28.h,r20.h):sat }
57 v2.w += vdmpy(v28.h,r20.h):sat
59 #CHECK: 1925fe5f { v31.w += vdmpy(v31:30.h,r5.h):sat }
60 v31.w += vdmpy(v31:30.h,r5.h):sat
62 #CHECK: 194efe36 { v23:22.uw += vmpy(v30.uh,r14.uh) }
63 v23:22.uw += vmpy(v30.uh,r14.uh)
65 #CHECK: 1948e306 { v7:6.w += vmpy(v3.h,r8.h):sat }
66 v7:6.w += vmpy(v3.h,r8.h):sat
68 #CHECK: 192af2f8 { v25:24.w += vmpa(v19:18.h,r10.b) }
69 v25:24.w += vmpa(v19:18.h,r10.b)
71 #CHECK: 1926e4da { v27:26.h += vmpa(v5:4.ub,r6.b) }
72 v27:26.h += vmpa(v5:4.ub,r6.b)
74 #CHECK: 194ff078 { v24.w += vmpyi(v16.w,r15.h) }
75 v24.w += vmpyi(v16.w,r15.h)
77 #CHECK: 1946e247 { v7.w += vmpyi(v2.w,r6.b) }
78 v7.w += vmpyi(v2.w,r6.b)
80 #CHECK: 1c3fead5 { v21.w += vmpyo(v10.w,v31.h):<<1:sat:shift }
81 v21.w += vmpyo(v10.w,v31.h):<<1:sat:shift
83 #CHECK: 1c30e1fa { v26.w += vmpyo(v1.w,v16.h):<<1:rnd:sat:shift }
84 v26.w += vmpyo(v1.w,v16.h):<<1:rnd:sat:shift
86 #CHECK: 1c34f690 { v16.h += vmpyi(v22.h,v20.h) }
87 v16.h += vmpyi(v22.h,v20.h)
89 #CHECK: 1c34f4b5 { v21.w += vmpyie(v20.w,v20.uh) }
90 v21.w += vmpyie(v20.w,v20.uh)
92 #CHECK: 1c54f804 { v4.w += vmpyie(v24.w,v20.h) }
93 v4.w += vmpyie(v24.w,v20.h)
95 #CHECK: 1c1ff6f4 { v21:20.w += vmpy(v22.h,v31.h) }
96 v21:20.w += vmpy(v22.h,v31.h)
98 #CHECK: 1c31f026 { v7:6.w += vmpy(v16.h,v17.uh) }
99 v7:6.w += vmpy(v16.h,v17.uh)
101 #CHECK: 1c12fb98 { v25:24.h += vmpy(v27.b,v18.b) }
102 v25:24.h += vmpy(v27.b,v18.b)
104 #CHECK: 1c17fcc0 { v1:0.h += vmpy(v28.ub,v23.b) }
105 v1:0.h += vmpy(v28.ub,v23.b)
107 #CHECK: 1c16f26f { v15.w += vdmpy(v18.h,v22.h):sat }
108 v15.w += vdmpy(v18.h,v22.h):sat
110 #CHECK: 1c0bea3a { v26.w += vrmpy(v10.b,v11.b) }
111 v26.w += vrmpy(v10.b,v11.b)
113 #CHECK: 1c15eb47 { v7.w += vrmpy(v11.ub,v21.b) }
114 v7.w += vrmpy(v11.ub,v21.b)
116 #CHECK: 1c26e40e { v15:14.uw += vmpy(v4.uh,v6.uh) }
117 v15:14.uw += vmpy(v4.uh,v6.uh)
119 #CHECK: 1c0df9a8 { v9:8.uh += vmpy(v25.ub,v13.ub) }
120 v9:8.uh += vmpy(v25.ub,v13.ub)
122 #CHECK: 1c0afc15 { v21.uw += vrmpy(v28.ub,v10.ub) }
123 v21.uw += vrmpy(v28.ub,v10.ub)