• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL
2--- |
3  define <16 x i16> @test_mul_v16i16(<16 x i16> %arg1, <16 x i16> %arg2) #0 {
4    %ret = mul <16 x i16> %arg1, %arg2
5    ret <16 x i16> %ret
6  }
7
8  define <8 x i32> @test_mul_v8i32(<8 x i32> %arg1, <8 x i32> %arg2) #0 {
9    %ret = mul <8 x i32> %arg1, %arg2
10    ret <8 x i32> %ret
11  }
12
13  define <4 x i64> @test_mul_v4i64(<4 x i64> %arg1, <4 x i64> %arg2) #1 {
14    %ret = mul <4 x i64> %arg1, %arg2
15    ret <4 x i64> %ret
16  }
17
18  attributes #0 = { "target-features"="+avx2" }
19  attributes #1 = { "target-features"="+avx2,+avx512vl,+avx512f,+avx512dq" }
20
21...
22---
23name:            test_mul_v16i16
24# ALL-LABEL: name:  test_mul_v16i16
25alignment:       4
26legalized:       false
27regBankSelected: false
28# ALL:      registers:
29# ALL-NEXT:   - { id: 0, class: _, preferred-register: '' }
30# ALL-NEXT:   - { id: 1, class: _, preferred-register: '' }
31# ALL-NEXT:   - { id: 2, class: _, preferred-register: '' }
32registers:
33  - { id: 0, class: _ }
34  - { id: 1, class: _ }
35  - { id: 2, class: _ }
36# ALL:          %0:_(<16 x s16>) = COPY $ymm0
37# ALL-NEXT:     %1:_(<16 x s16>) = COPY $ymm1
38# ALL-NEXT:     %2:_(<16 x s16>) = G_MUL %0, %1
39# ALL-NEXT:     $ymm0 = COPY %2(<16 x s16>)
40# ALL-NEXT:     RET 0, implicit $ymm0
41body:             |
42  bb.1 (%ir-block.0):
43    liveins: $ymm0, $ymm1
44
45    %0(<16 x s16>) = COPY $ymm0
46    %1(<16 x s16>) = COPY $ymm1
47    %2(<16 x s16>) = G_MUL %0, %1
48    $ymm0 = COPY %2(<16 x s16>)
49    RET 0, implicit $ymm0
50
51...
52---
53name:            test_mul_v8i32
54# ALL-LABEL: name:  test_mul_v8i32
55alignment:       4
56legalized:       false
57regBankSelected: false
58# ALL:      registers:
59# ALL-NEXT:   - { id: 0, class: _, preferred-register: '' }
60# ALL-NEXT:   - { id: 1, class: _, preferred-register: '' }
61# ALL-NEXT:   - { id: 2, class: _, preferred-register: '' }
62registers:
63  - { id: 0, class: _ }
64  - { id: 1, class: _ }
65  - { id: 2, class: _ }
66# ALL:          %0:_(<8 x s32>) = COPY $ymm0
67# ALL-NEXT:     %1:_(<8 x s32>) = COPY $ymm1
68# ALL-NEXT:     %2:_(<8 x s32>) = G_MUL %0, %1
69# ALL-NEXT:     $ymm0 = COPY %2(<8 x s32>)
70# ALL-NEXT:     RET 0, implicit $ymm0
71body:             |
72  bb.1 (%ir-block.0):
73    liveins: $ymm0, $ymm1
74
75    %0(<8 x s32>) = COPY $ymm0
76    %1(<8 x s32>) = COPY $ymm1
77    %2(<8 x s32>) = G_MUL %0, %1
78    $ymm0 = COPY %2(<8 x s32>)
79    RET 0, implicit $ymm0
80
81...
82---
83name:            test_mul_v4i64
84# ALL-LABEL: name:  test_mul_v4i64
85alignment:       4
86legalized:       false
87regBankSelected: false
88# ALL:      registers:
89# ALL-NEXT:   - { id: 0, class: _, preferred-register: '' }
90# ALL-NEXT:   - { id: 1, class: _, preferred-register: '' }
91# ALL-NEXT:   - { id: 2, class: _, preferred-register: '' }
92registers:
93  - { id: 0, class: _ }
94  - { id: 1, class: _ }
95  - { id: 2, class: _ }
96# ALL:          %0:_(<4 x s64>) = COPY $ymm0
97# ALL-NEXT:     %1:_(<4 x s64>) = COPY $ymm1
98# ALL-NEXT:     %2:_(<4 x s64>) = G_MUL %0, %1
99# ALL-NEXT:     $ymm0 = COPY %2(<4 x s64>)
100# ALL-NEXT:     RET 0, implicit $ymm0
101body:             |
102  bb.1 (%ir-block.0):
103    liveins: $ymm0, $ymm1
104
105    %0(<4 x s64>) = COPY $ymm0
106    %1(<4 x s64>) = COPY $ymm1
107    %2(<4 x s64>) = G_MUL %0, %1
108    $ymm0 = COPY %2(<4 x s64>)
109    RET 0, implicit $ymm0
110
111...
112