1 # RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL
3 define <8 x i16> @test_mul_v8i16(<8 x i16> %arg1, <8 x i16> %arg2) #0 {
4 %ret = mul <8 x i16> %arg1, %arg2
8 define <4 x i32> @test_mul_v4i32(<4 x i32> %arg1, <4 x i32> %arg2) #0 {
9 %ret = mul <4 x i32> %arg1, %arg2
13 define <2 x i64> @test_mul_v2i64(<2 x i64> %arg1, <2 x i64> %arg2) #1 {
14 %ret = mul <2 x i64> %arg1, %arg2
18 attributes #0 = { "target-features"="+sse4.1" }
19 attributes #1 = { "target-features"="+sse4.1,+avx512vl,+avx512f,+avx512dq" }
24 # ALL-LABEL: name: test_mul_v8i16
27 regBankSelected: false
29 # ALL-NEXT: - { id: 0, class: _, preferred-register: '' }
30 # ALL-NEXT: - { id: 1, class: _, preferred-register: '' }
31 # ALL-NEXT: - { id: 2, class: _, preferred-register: '' }
36 # ALL: %0:_(<8 x s16>) = COPY $xmm0
37 # ALL-NEXT: %1:_(<8 x s16>) = COPY $xmm1
38 # ALL-NEXT: %2:_(<8 x s16>) = G_MUL %0, %1
39 # ALL-NEXT: $xmm0 = COPY %2(<8 x s16>)
40 # ALL-NEXT: RET 0, implicit $xmm0
45 %0(<8 x s16>) = COPY $xmm0
46 %1(<8 x s16>) = COPY $xmm1
47 %2(<8 x s16>) = G_MUL %0, %1
48 $xmm0 = COPY %2(<8 x s16>)
54 # ALL-LABEL: name: test_mul_v4i32
57 regBankSelected: false
59 # ALL-NEXT: - { id: 0, class: _, preferred-register: '' }
60 # ALL-NEXT: - { id: 1, class: _, preferred-register: '' }
61 # ALL-NEXT: - { id: 2, class: _, preferred-register: '' }
66 # ALL: %0:_(<4 x s32>) = COPY $xmm0
67 # ALL-NEXT: %1:_(<4 x s32>) = COPY $xmm1
68 # ALL-NEXT: %2:_(<4 x s32>) = G_MUL %0, %1
69 # ALL-NEXT: $xmm0 = COPY %2(<4 x s32>)
70 # ALL-NEXT: RET 0, implicit $xmm0
75 %0(<4 x s32>) = COPY $xmm0
76 %1(<4 x s32>) = COPY $xmm1
77 %2(<4 x s32>) = G_MUL %0, %1
78 $xmm0 = COPY %2(<4 x s32>)
84 # ALL-LABEL: name: test_mul_v2i64
87 regBankSelected: false
89 # ALL-NEXT: - { id: 0, class: _, preferred-register: '' }
90 # ALL-NEXT: - { id: 1, class: _, preferred-register: '' }
91 # ALL-NEXT: - { id: 2, class: _, preferred-register: '' }
96 # ALL: %0:_(<2 x s64>) = COPY $xmm0
97 # ALL-NEXT: %1:_(<2 x s64>) = COPY $xmm1
98 # ALL-NEXT: %2:_(<2 x s64>) = G_MUL %0, %1
99 # ALL-NEXT: $xmm0 = COPY %2(<2 x s64>)
100 # ALL-NEXT: RET 0, implicit $xmm0
103 liveins: $xmm0, $xmm1
105 %0(<2 x s64>) = COPY $xmm0
106 %1(<2 x s64>) = COPY $xmm1
107 %2(<2 x s64>) = G_MUL %0, %1
108 $xmm0 = COPY %2(<2 x s64>)
109 RET 0, implicit $xmm0