mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
8b2b8a1835
This update was done with the following bash script: find test/CodeGen -name "*.ll" | \ while read NAME; do echo "$NAME" if ! grep -q "^; *RUN: *llc.*debug" $NAME; then TEMP=`mktemp -t temp` cp $NAME $TEMP sed -n "s/^define [^@]*@\([A-Za-z0-9_]*\)(.*$/\1/p" < $NAME | \ while read FUNC; do sed -i '' "s/;\(.*\)\([A-Za-z0-9_-]*\):\( *\)$FUNC: *\$/;\1\2-LABEL:\3$FUNC:/g" $TEMP done sed -i '' "s/;\(.*\)-LABEL-LABEL:/;\1-LABEL:/" $TEMP sed -i '' "s/;\(.*\)-NEXT-LABEL:/;\1-NEXT:/" $TEMP sed -i '' "s/;\(.*\)-NOT-LABEL:/;\1-NOT:/" $TEMP sed -i '' "s/;\(.*\)-DAG-LABEL:/;\1-DAG:/" $TEMP mv $TEMP $NAME fi done git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186280 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
1.3 KiB
LLVM
39 lines
1.3 KiB
LLVM
; RUN: llc -O1 -mcpu=cortex-a15 -mtriple=armv7-linux-gnueabi -verify-machineinstrs < %s | FileCheck %s
|
|
|
|
; CHECK-LABEL: t1:
|
|
define <2 x float> @t1(float* %A, <2 x float> %B) {
|
|
; The generated code for this test uses a vld1.32 instruction
|
|
; to write the lane 1 of a D register containing the value of
|
|
; <2 x float> %B. Since the D register is defined, it would
|
|
; be incorrect to fully write it (with a vmov.f64) before the
|
|
; vld1.32 instruction. The test checks that a vmov.f64 was not
|
|
; generated.
|
|
|
|
; CHECK-NOT: vmov.{{.*}} d{{[0-9]+}},
|
|
%tmp2 = load float* %A, align 4
|
|
%tmp3 = insertelement <2 x float> %B, float %tmp2, i32 1
|
|
ret <2 x float> %tmp3
|
|
}
|
|
|
|
; CHECK-LABEL: t2:
|
|
define void @t2(<4 x i8> *%in, <4 x i8> *%out, i32 %n) {
|
|
entry:
|
|
br label %loop
|
|
loop:
|
|
; The code generated by this test uses a vld1.32 instruction.
|
|
; We check that a dependency breaking vmov* instruction was
|
|
; generated.
|
|
|
|
; CHECK: vmov.{{.*}} d{{[0-9]+}},
|
|
%oldcount = phi i32 [0, %entry], [%newcount, %loop]
|
|
%newcount = add i32 %oldcount, 1
|
|
%p1 = getelementptr <4 x i8> *%in, i32 %newcount
|
|
%p2 = getelementptr <4 x i8> *%out, i32 %newcount
|
|
%tmp1 = load <4 x i8> *%p1, align 4
|
|
store <4 x i8> %tmp1, <4 x i8> *%p2
|
|
%cmp = icmp eq i32 %newcount, %n
|
|
br i1 %cmp, label %loop, label %ret
|
|
ret:
|
|
ret void
|
|
}
|