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
  125
  126
  127
  128
  129
  130
  131
  132
  133
  134
  135
  136
  137
  138
  139
  140
  141
  142
  143
  144
  145
  146
  147
  148
  149
  150
  151
  152
  153
  154
  155
  156
  157
  158
  159
  160
  161
  162
  163
  164
  165
  166
  167
  168
  169
  170
  171
  172
  173
  174
  175
  176
  177
  178
  179
  180
  181
  182
  183
  184
  185
  186
  187
  188
  189
  190
  191
  192
  193
  194
  195
  196
  197
  198
  199
  200
  201
  202
  203
  204
  205
  206
  207
  208
  209
  210
  211
  212
  213
  214
  215
  216
  217
  218
  219
  220
  221
  222
  223
  224
  225
  226
  227
  228
  229
  230
  231
  232
  233
  234
  235
  236
  237
  238
  239
  240
  241
  242
  243
  244
  245
  246
  247
  248
  249
  250
  251
  252
  253
  254
  255
  256
  257
  258
  259
  260
  261
  262
  263
  264
  265
  266
  267
  268
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -mtriple=thumbv8.1-m.main-none-eabi -mattr=+mve -run-pass arm-mve-vpt %s -o - | FileCheck %s

--- |

  define arm_aapcs_vfpcc <4 x i32> @vpnot(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
  entry:
    %0 = icmp slt <4 x i32> %a, zeroinitializer
    %c2 = icmp sgt <4 x i32> %b, zeroinitializer
    %c3 = icmp eq <4 x i32> %c, zeroinitializer
    %o1 = and <4 x i1> %0, %c2
    %o2 = xor <4 x i1> %o1, <i1 true, i1 true, i1 true, i1 true>
    %o = and <4 x i1> %c3, %o2
    %s = select <4 x i1> %o, <4 x i32> %a, <4 x i32> %b
    ret <4 x i32> %s
  }

  define arm_aapcs_vfpcc <4 x i32> @vpnot_end(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
  entry:
    %0 = icmp slt <4 x i32> %a, zeroinitializer
    %c2 = icmp sgt <4 x i32> %b, zeroinitializer
    %c3 = icmp eq <4 x i32> %c, zeroinitializer
    %o1 = and <4 x i1> %0, %c2
    %o2 = xor <4 x i1> %o1, <i1 true, i1 true, i1 true, i1 true>
    br label %bb2
  bb2:
    %o = and <4 x i1> %c3, %o2
    %s = select <4 x i1> %o, <4 x i32> %a, <4 x i32> %b
    ret <4 x i32> %s
  }

  define arm_aapcs_vfpcc <4 x i32> @vpnot_two(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
  entry:
    unreachable
  }
  define arm_aapcs_vfpcc <4 x i32> @vpnot_lots(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
  entry:
    unreachable
  }
  define arm_aapcs_vfpcc <4 x i32> @vpnot_first(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
  entry:
    unreachable
  }
  define arm_aapcs_vfpcc <4 x i32> @vpnot_many(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) {
  entry:
    unreachable
  }

...
---
name:            vpnot
alignment:       4
tracksRegLiveness: true
liveins:
  - { reg: '$q0', virtual-reg: '' }
  - { reg: '$q1', virtual-reg: '' }
  - { reg: '$q2', virtual-reg: '' }
body:             |
  bb.0.entry:
    liveins: $q0, $q1, $q2

    ; CHECK-LABEL: name: vpnot
    ; CHECK: liveins: $q0, $q1, $q2
    ; CHECK: BUNDLE implicit-def $vpr, implicit $q0, implicit $zr, implicit $q1 {
    ; CHECK:   MVE_VPTv4s32r 8, renamable $q0, $zr, 11, implicit-def $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: BUNDLE implicit-def $vpr, implicit killed $vpr, implicit killed $q2, implicit $zr {
    ; CHECK:   MVE_VPST 8, implicit $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    ; CHECK: tBX_RET 14, $noreg, implicit $q0
    renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
    renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    tBX_RET 14, $noreg, implicit $q0

...
---
name:            vpnot_end
alignment:       4
tracksRegLiveness: true
liveins:
  - { reg: '$q0', virtual-reg: '' }
  - { reg: '$q1', virtual-reg: '' }
  - { reg: '$q2', virtual-reg: '' }
body:             |
  ; CHECK-LABEL: name: vpnot_end
  ; CHECK: bb.0.entry:
  ; CHECK:   successors: %bb.1(0x80000000)
  ; CHECK:   liveins: $q0, $q1, $q2
  ; CHECK:   BUNDLE implicit-def $vpr, implicit $q0, implicit $zr, implicit $q1 {
  ; CHECK:     MVE_VPTv4s32r 8, renamable $q0, $zr, 11, implicit-def $vpr
  ; CHECK:     renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
  ; CHECK:   }
  ; CHECK:   renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
  ; CHECK: bb.1.bb2:
  ; CHECK:   liveins: $q0, $q1, $q2, $vpr
  ; CHECK:   BUNDLE implicit-def $vpr, implicit killed $vpr, implicit killed $q2, implicit $zr {
  ; CHECK:     MVE_VPST 8, implicit $vpr
  ; CHECK:     renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
  ; CHECK:   }
  ; CHECK:   renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
  ; CHECK:   tBX_RET 14, $noreg, implicit $q0
  bb.0.entry:
    liveins: $q0, $q1, $q2

    renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
    renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg

  bb.1.bb2:
    liveins: $q0, $q1, $q2, $vpr

    renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    tBX_RET 14, $noreg, implicit $q0

...
---
name:            vpnot_two
alignment:       4
tracksRegLiveness: true
liveins:
  - { reg: '$q0', virtual-reg: '' }
  - { reg: '$q1', virtual-reg: '' }
  - { reg: '$q2', virtual-reg: '' }
body:             |
  bb.0.entry:
    liveins: $q0, $q1, $q2

    ; CHECK-LABEL: name: vpnot_two
    ; CHECK: liveins: $q0, $q1, $q2
    ; CHECK: BUNDLE implicit-def $vpr, implicit $q0, implicit $zr, implicit $q1 {
    ; CHECK:   MVE_VPTv4s32r 8, renamable $q0, $zr, 11, implicit-def $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: BUNDLE implicit-def $vpr, implicit killed $vpr, implicit killed $q2, implicit $zr {
    ; CHECK:   MVE_VPST 8, implicit $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    ; CHECK: tBX_RET 14, $noreg, implicit $q0
    renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
    renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    tBX_RET 14, $noreg, implicit $q0

...
---
name:            vpnot_lots
alignment:       4
tracksRegLiveness: true
liveins:
  - { reg: '$q0', virtual-reg: '' }
  - { reg: '$q1', virtual-reg: '' }
  - { reg: '$q2', virtual-reg: '' }
body:             |
  bb.0.entry:
    liveins: $q0, $q1, $q2

    ; CHECK-LABEL: name: vpnot_lots
    ; CHECK: liveins: $q0, $q1, $q2
    ; CHECK: BUNDLE implicit-def $vpr, implicit $q0, implicit $zr, implicit $q1 {
    ; CHECK:   MVE_VPTv4s32r 8, renamable $q0, $zr, 11, implicit-def $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, internal killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: BUNDLE implicit-def $vpr, implicit killed $vpr, implicit killed $q2, implicit $zr {
    ; CHECK:   MVE_VPST 8, implicit $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    ; CHECK: tBX_RET 14, $noreg, implicit $q0
    renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
    renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    tBX_RET 14, $noreg, implicit $q0

...
---
name:            vpnot_first
alignment:       4
tracksRegLiveness: true
liveins:
  - { reg: '$q0', virtual-reg: '' }
  - { reg: '$q1', virtual-reg: '' }
  - { reg: '$q2', virtual-reg: '' }
body:             |
  bb.0.entry:
    liveins: $q0, $q1, $q2

    ; CHECK-LABEL: name: vpnot_first
    ; CHECK: liveins: $q0, $q1, $q2
    ; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: BUNDLE implicit-def $vpr, implicit killed $vpr, implicit $q1, implicit $zr, implicit killed $q2 {
    ; CHECK:   MVE_VPST 4, implicit $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, internal killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    ; CHECK: tBX_RET 14, $noreg, implicit $q0
    renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
    renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    tBX_RET 14, $noreg, implicit $q0

...
---
name:            vpnot_many
alignment:       4
tracksRegLiveness: true
liveins:
  - { reg: '$q0', virtual-reg: '' }
  - { reg: '$q1', virtual-reg: '' }
  - { reg: '$q2', virtual-reg: '' }
body:             |
  bb.0.entry:
    liveins: $q0, $q1, $q2

    ; CHECK-LABEL: name: vpnot_many
    ; CHECK: liveins: $q0, $q1, $q2
    ; CHECK: renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: BUNDLE implicit-def $vpr, implicit killed $vpr, implicit $q1, implicit $zr {
    ; CHECK:   MVE_VPST 8, implicit $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: BUNDLE implicit-def $vpr, implicit killed $vpr, implicit killed $q2, implicit $zr {
    ; CHECK:   MVE_VPST 8, implicit $vpr
    ; CHECK:   renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    ; CHECK: }
    ; CHECK: renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    ; CHECK: renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    ; CHECK: tBX_RET 14, $noreg, implicit $q0
    renamable $vpr = MVE_VCMPs32r renamable $q0, $zr, 11, 0, $noreg
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VCMPs32r renamable $q1, $zr, 12, 1, killed renamable $vpr
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $vpr = MVE_VCMPi32r killed renamable $q2, $zr, 0, 1, killed renamable $vpr
    renamable $vpr = MVE_VPNOT killed renamable $vpr, 0, $noreg
    renamable $q0 = MVE_VPSEL killed renamable $q0, killed renamable $q1, 0, killed renamable $vpr
    tBX_RET 14, $noreg, implicit $q0

...