2017-06-22 20:11:38 +08:00
|
|
|
# RUN: llc -mtriple=thumbv7 -start-before=if-converter -o - %s | FileCheck %s
|
|
|
|
---
|
|
|
|
name: NeonVdupMul
|
|
|
|
body: |
|
|
|
|
bb.0:
|
|
|
|
successors: %bb.2, %bb.1
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $d0, $r0, $r1
|
2017-06-22 20:11:38 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
t2CMPri killed $r1, 0, 14, $noreg, implicit-def $cpsr
|
|
|
|
t2Bcc %bb.2, 0, killed $cpsr
|
2017-06-22 20:11:38 +08:00
|
|
|
|
|
|
|
bb.1:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $d0, $r0
|
2017-06-22 20:11:38 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
$d16 = VDUP32d killed $r0, 14, $noreg
|
2017-06-22 20:11:38 +08:00
|
|
|
; Verify that the neon instructions haven't been conditionalized:
|
|
|
|
; CHECK-LABEL: NeonVdupMul
|
|
|
|
; CHECK: vdup.32
|
|
|
|
; CHECK: vmul.i32
|
2018-02-01 06:04:26 +08:00
|
|
|
$d0 = VMULv2i32 killed $d16, killed $d0, 14, $noreg
|
2017-06-22 20:11:38 +08:00
|
|
|
|
|
|
|
bb.2:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $d0
|
2017-06-22 20:11:38 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
tBX_RET 14, $noreg, implicit $d0
|
2017-06-22 20:11:38 +08:00
|
|
|
|
|
|
|
...
|
|
|
|
---
|
|
|
|
name: NeonVmovVfpLdr
|
|
|
|
body: |
|
|
|
|
bb.0.entry:
|
|
|
|
successors: %bb.1, %bb.2
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $r0, $r1
|
2017-06-22 20:11:38 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
t2CMPri killed $r1, 0, 14, $noreg, implicit-def $cpsr
|
|
|
|
t2Bcc %bb.2, 1, killed $cpsr
|
2017-06-22 20:11:38 +08:00
|
|
|
|
|
|
|
bb.1:
|
2018-02-01 06:04:26 +08:00
|
|
|
$d0 = VMOVv2i32 0, 14, $noreg
|
|
|
|
tBX_RET 14, $noreg, implicit $d0
|
2017-06-22 20:11:38 +08:00
|
|
|
|
|
|
|
bb.2:
|
2018-02-01 06:04:26 +08:00
|
|
|
liveins: $r0
|
2017-06-22 20:11:38 +08:00
|
|
|
|
2018-02-01 06:04:26 +08:00
|
|
|
$d0 = VLDRD killed $r0, 0, 14, $noreg
|
2017-06-22 20:11:38 +08:00
|
|
|
; Verify that the neon instruction VMOVv2i32 hasn't been conditionalized,
|
|
|
|
; but the VLDR instruction that is available both in the VFP and Advanced
|
|
|
|
; SIMD extensions has.
|
|
|
|
; CHECK-LABEL: NeonVmovVfpLdr
|
|
|
|
; CHECK-DAG: vmov.i32 d0, #0x0
|
|
|
|
; CHECK-DAG: vldr{{ne|eq}} d0, [r0]
|
2018-02-01 06:04:26 +08:00
|
|
|
tBX_RET 14, $noreg, implicit $d0
|
2017-06-22 20:11:38 +08:00
|
|
|
|
|
|
|
...
|