reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
   38
   39
   40
   41
   42
   43
   44
   45
   46
   47
   48
   49
   50
   51
   52
   53
   54
   55
   56
   57
   58
   59
   60
   61
   62
   63
   64
   65
   66
   67
   68
   69
   70
   71
   72
   73
   74
   75
   76
   77
   78
   79
   80
   81
   82
   83
   84
   85
   86
   87
   88
   89
   90
   91
   92
   93
   94
   95
   96
   97
   98
   99
  100
  101
  102
  103
  104
  105
  106
  107
  108
  109
  110
  111
  112
  113
  114
  115
  116
  117
  118
  119
  120
  121
  122
  123
  124
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f,+avx512bw,+avx512vl,+avx512dq -O2 | FileCheck %s --check-prefix=AVX512-ALL
; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx512f -O2| FileCheck %s --check-prefix=AVX512-ONLY

define void @load_v1i2_trunc_v1i1_store(<1 x i2>* %a0,<1 x i1>* %a1) {
; AVX512-ALL-LABEL: load_v1i2_trunc_v1i1_store:
; AVX512-ALL:       # %bb.0:
; AVX512-ALL-NEXT:    movb (%rdi), %al
; AVX512-ALL-NEXT:    movb %al, (%rsi)
; AVX512-ALL-NEXT:    retq
;
; AVX512-ONLY-LABEL: load_v1i2_trunc_v1i1_store:
; AVX512-ONLY:       # %bb.0:
; AVX512-ONLY-NEXT:    movb (%rdi), %al
; AVX512-ONLY-NEXT:    movb %al, (%rsi)
; AVX512-ONLY-NEXT:    retq
    %d0 = load <1 x i2>, <1 x i2>* %a0
    %d1 = trunc <1 x i2> %d0 to <1 x i1>
    store <1 x i1> %d1, <1 x i1>* %a1
    ret void
}
define void @load_v1i3_trunc_v1i1_store(<1 x i3>* %a0,<1 x i1>* %a1) {
; AVX512-ALL-LABEL: load_v1i3_trunc_v1i1_store:
; AVX512-ALL:       # %bb.0:
; AVX512-ALL-NEXT:    movb (%rdi), %al
; AVX512-ALL-NEXT:    movb %al, (%rsi)
; AVX512-ALL-NEXT:    retq
;
; AVX512-ONLY-LABEL: load_v1i3_trunc_v1i1_store:
; AVX512-ONLY:       # %bb.0:
; AVX512-ONLY-NEXT:    movb (%rdi), %al
; AVX512-ONLY-NEXT:    movb %al, (%rsi)
; AVX512-ONLY-NEXT:    retq
    %d0 = load <1 x i3>, <1 x i3>* %a0
    %d1 = trunc <1 x i3> %d0 to <1 x i1>
    store <1 x i1> %d1, <1 x i1>* %a1
    ret void
}
define void @load_v1i4_trunc_v1i1_store(<1 x i4>* %a0,<1 x i1>* %a1) {
; AVX512-ALL-LABEL: load_v1i4_trunc_v1i1_store:
; AVX512-ALL:       # %bb.0:
; AVX512-ALL-NEXT:    movb (%rdi), %al
; AVX512-ALL-NEXT:    movb %al, (%rsi)
; AVX512-ALL-NEXT:    retq
;
; AVX512-ONLY-LABEL: load_v1i4_trunc_v1i1_store:
; AVX512-ONLY:       # %bb.0:
; AVX512-ONLY-NEXT:    movb (%rdi), %al
; AVX512-ONLY-NEXT:    movb %al, (%rsi)
; AVX512-ONLY-NEXT:    retq
    %d0 = load <1 x i4>, <1 x i4>* %a0
    %d1 = trunc <1 x i4> %d0 to <1 x i1>
    store <1 x i1> %d1, <1 x i1>* %a1
    ret void
}
define void @load_v1i8_trunc_v1i1_store(<1 x i8>* %a0,<1 x i1>* %a1) {
; AVX512-ALL-LABEL: load_v1i8_trunc_v1i1_store:
; AVX512-ALL:       # %bb.0:
; AVX512-ALL-NEXT:    movb (%rdi), %al
; AVX512-ALL-NEXT:    movb %al, (%rsi)
; AVX512-ALL-NEXT:    retq
;
; AVX512-ONLY-LABEL: load_v1i8_trunc_v1i1_store:
; AVX512-ONLY:       # %bb.0:
; AVX512-ONLY-NEXT:    movb (%rdi), %al
; AVX512-ONLY-NEXT:    movb %al, (%rsi)
; AVX512-ONLY-NEXT:    retq
    %d0 = load <1 x i8>, <1 x i8>* %a0
    %d1 = trunc <1 x i8> %d0 to <1 x i1>
    store <1 x i1> %d1, <1 x i1>* %a1
    ret void
}
define void @load_v1i16_trunc_v1i1_store(<1 x i16>* %a0,<1 x i1>* %a1) {
; AVX512-ALL-LABEL: load_v1i16_trunc_v1i1_store:
; AVX512-ALL:       # %bb.0:
; AVX512-ALL-NEXT:    movb (%rdi), %al
; AVX512-ALL-NEXT:    movb %al, (%rsi)
; AVX512-ALL-NEXT:    retq
;
; AVX512-ONLY-LABEL: load_v1i16_trunc_v1i1_store:
; AVX512-ONLY:       # %bb.0:
; AVX512-ONLY-NEXT:    movb (%rdi), %al
; AVX512-ONLY-NEXT:    movb %al, (%rsi)
; AVX512-ONLY-NEXT:    retq
    %d0 = load <1 x i16>, <1 x i16>* %a0
    %d1 = trunc <1 x i16> %d0 to <1 x i1>
    store <1 x i1> %d1, <1 x i1>* %a1
    ret void
}
define void @load_v1i32_trunc_v1i1_store(<1 x i32>* %a0,<1 x i1>* %a1) {
; AVX512-ALL-LABEL: load_v1i32_trunc_v1i1_store:
; AVX512-ALL:       # %bb.0:
; AVX512-ALL-NEXT:    movb (%rdi), %al
; AVX512-ALL-NEXT:    movb %al, (%rsi)
; AVX512-ALL-NEXT:    retq
;
; AVX512-ONLY-LABEL: load_v1i32_trunc_v1i1_store:
; AVX512-ONLY:       # %bb.0:
; AVX512-ONLY-NEXT:    movb (%rdi), %al
; AVX512-ONLY-NEXT:    movb %al, (%rsi)
; AVX512-ONLY-NEXT:    retq
    %d0 = load <1 x i32>, <1 x i32>* %a0
    %d1 = trunc <1 x i32> %d0 to <1 x i1>
    store <1 x i1> %d1, <1 x i1>* %a1
    ret void
}
define void @load_v1i64_trunc_v1i1_store(<1 x i64>* %a0,<1 x i1>* %a1) {
; AVX512-ALL-LABEL: load_v1i64_trunc_v1i1_store:
; AVX512-ALL:       # %bb.0:
; AVX512-ALL-NEXT:    movb (%rdi), %al
; AVX512-ALL-NEXT:    movb %al, (%rsi)
; AVX512-ALL-NEXT:    retq
;
; AVX512-ONLY-LABEL: load_v1i64_trunc_v1i1_store:
; AVX512-ONLY:       # %bb.0:
; AVX512-ONLY-NEXT:    movb (%rdi), %al
; AVX512-ONLY-NEXT:    movb %al, (%rsi)
; AVX512-ONLY-NEXT:    retq
    %d0 = load <1 x i64>, <1 x i64>* %a0
    %d1 = trunc <1 x i64> %d0 to <1 x i1>
    store <1 x i1> %d1, <1 x i1>* %a1
    ret void
}