brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.3 KiB · 881ceac Raw
112 lines · plain
1# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=legalizer %s -o - | FileCheck %s --check-prefix=ALL2--- |3  define <8 x i16> @test_mul_v8i16(<8 x i16> %arg1, <8 x i16> %arg2) #0 {4    %ret = mul <8 x i16> %arg1, %arg25    ret <8 x i16> %ret6  }7 8  define <4 x i32> @test_mul_v4i32(<4 x i32> %arg1, <4 x i32> %arg2) #0 {9    %ret = mul <4 x i32> %arg1, %arg210    ret <4 x i32> %ret11  }12 13  define <2 x i64> @test_mul_v2i64(<2 x i64> %arg1, <2 x i64> %arg2) #1 {14    %ret = mul <2 x i64> %arg1, %arg215    ret <2 x i64> %ret16  }17 18  attributes #0 = { "target-features"="+sse4.1" }19  attributes #1 = { "target-features"="+sse4.1,+avx512vl,+avx512f,+avx512dq" }20 21...22---23name:            test_mul_v8i1624# ALL-LABEL: name:  test_mul_v8i1625alignment:       1626legalized:       false27regBankSelected: false28# ALL:      registers:29# ALL-NEXT:   - { id: 0, class: _, preferred-register: '', flags: [   ] }30# ALL-NEXT:   - { id: 1, class: _, preferred-register: '', flags: [   ] }31# ALL-NEXT:   - { id: 2, class: _, preferred-register: '', flags: [   ] }32registers:33  - { id: 0, class: _ }34  - { id: 1, class: _ }35  - { id: 2, class: _ }36# ALL:          %0:_(<8 x s16>) = COPY $xmm037# ALL-NEXT:     %1:_(<8 x s16>) = COPY $xmm138# ALL-NEXT:     %2:_(<8 x s16>) = G_MUL %0, %139# ALL-NEXT:     $xmm0 = COPY %2(<8 x s16>)40# ALL-NEXT:     RET 0, implicit $xmm041body:             |42  bb.1 (%ir-block.0):43    liveins: $xmm0, $xmm144 45    %0(<8 x s16>) = COPY $xmm046    %1(<8 x s16>) = COPY $xmm147    %2(<8 x s16>) = G_MUL %0, %148    $xmm0 = COPY %2(<8 x s16>)49    RET 0, implicit $xmm050 51...52---53name:            test_mul_v4i3254# ALL-LABEL: name:  test_mul_v4i3255alignment:       1656legalized:       false57regBankSelected: false58# ALL:      registers:59# ALL-NEXT:   - { id: 0, class: _, preferred-register: '', flags: [   ] }60# ALL-NEXT:   - { id: 1, class: _, preferred-register: '', flags: [   ] }61# ALL-NEXT:   - { id: 2, class: _, preferred-register: '', flags: [   ] }62registers:63  - { id: 0, class: _ }64  - { id: 1, class: _ }65  - { id: 2, class: _ }66# ALL:          %0:_(<4 x s32>) = COPY $xmm067# ALL-NEXT:     %1:_(<4 x s32>) = COPY $xmm168# ALL-NEXT:     %2:_(<4 x s32>) = G_MUL %0, %169# ALL-NEXT:     $xmm0 = COPY %2(<4 x s32>)70# ALL-NEXT:     RET 0, implicit $xmm071body:             |72  bb.1 (%ir-block.0):73    liveins: $xmm0, $xmm174 75    %0(<4 x s32>) = COPY $xmm076    %1(<4 x s32>) = COPY $xmm177    %2(<4 x s32>) = G_MUL %0, %178    $xmm0 = COPY %2(<4 x s32>)79    RET 0, implicit $xmm080 81...82---83name:            test_mul_v2i6484# ALL-LABEL: name:  test_mul_v2i6485alignment:       1686legalized:       false87regBankSelected: false88# ALL:      registers:89# ALL-NEXT:   - { id: 0, class: _, preferred-register: '', flags: [   ] }90# ALL-NEXT:   - { id: 1, class: _, preferred-register: '', flags: [   ] }91# ALL-NEXT:   - { id: 2, class: _, preferred-register: '', flags: [   ] }92registers:93  - { id: 0, class: _ }94  - { id: 1, class: _ }95  - { id: 2, class: _ }96# ALL:          %0:_(<2 x s64>) = COPY $xmm097# ALL-NEXT:     %1:_(<2 x s64>) = COPY $xmm198# ALL-NEXT:     %2:_(<2 x s64>) = G_MUL %0, %199# ALL-NEXT:     $xmm0 = COPY %2(<2 x s64>)100# ALL-NEXT:     RET 0, implicit $xmm0101body:             |102  bb.1 (%ir-block.0):103    liveins: $xmm0, $xmm1104 105    %0(<2 x s64>) = COPY $xmm0106    %1(<2 x s64>) = COPY $xmm1107    %2(<2 x s64>) = G_MUL %0, %1108    $xmm0 = COPY %2(<2 x s64>)109    RET 0, implicit $xmm0110 111...112