mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-11 23:05:31 +00:00
6c822eea47
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163298 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
852 B
LLVM
36 lines
852 B
LLVM
; RUN: llc %s -o - -march=arm -mattr=+neon | FileCheck %s
|
|
|
|
; This test checks that when inserting one (integer) element into a vector,
|
|
; the vector is not spuriously copied. "vorr dX, dY, dY" is the way of moving
|
|
; one DPR to another that we check for.
|
|
|
|
; CHECK: @f
|
|
; CHECK-NOT: vorr d
|
|
; CHECK: vmov s
|
|
; CHECK-NOT: vorr d
|
|
; CHECK: mov pc, lr
|
|
define <4 x i32> @f(<4 x i32> %in) {
|
|
%1 = insertelement <4 x i32> %in, i32 255, i32 3
|
|
ret <4 x i32> %1
|
|
}
|
|
|
|
; CHECK: @g
|
|
; CHECK-NOT: vorr d
|
|
; CHECK: vmov.16 d
|
|
; CHECK-NOT: vorr d
|
|
; CHECK: mov pc, lr
|
|
define <8 x i16> @g(<8 x i16> %in) {
|
|
%1 = insertelement <8 x i16> %in, i16 255, i32 7
|
|
ret <8 x i16> %1
|
|
}
|
|
|
|
; CHECK: @h
|
|
; CHECK-NOT: vorr d
|
|
; CHECK: vmov.8 d
|
|
; CHECK-NOT: vorr d
|
|
; CHECK: mov pc, lr
|
|
define <16 x i8> @h(<16 x i8> %in) {
|
|
%1 = insertelement <16 x i8> %in, i8 255, i32 15
|
|
ret <16 x i8> %1
|
|
}
|