mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +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
22 lines
700 B
LLVM
22 lines
700 B
LLVM
; RUN: llc < %s -march=x86 -mcpu=yonah | FileCheck %s
|
|
|
|
%struct.S = type { <2 x i64>, <2 x i64>, <2 x i64>, <2 x i64>,
|
|
<2 x i64>, <2 x i64>, <2 x i64>, <2 x i64>,
|
|
<2 x i64> }
|
|
|
|
define i32 @main() nounwind {
|
|
entry:
|
|
; CHECK-LABEL: main:
|
|
; CHECK: movl $1, (%esp)
|
|
; CHECK: leal 16(%esp), %edi
|
|
; CHECK: leal 160(%esp), %esi
|
|
; CHECK: rep;movsl
|
|
%s = alloca %struct.S ; <%struct.S*> [#uses=2]
|
|
%tmp15 = getelementptr %struct.S* %s, i32 0, i32 0 ; <<2 x i64>*> [#uses=1]
|
|
store <2 x i64> < i64 8589934595, i64 1 >, <2 x i64>* %tmp15, align 16
|
|
call void @t( i32 1, %struct.S* byval %s ) nounwind
|
|
ret i32 0
|
|
}
|
|
|
|
declare void @t(i32, %struct.S* byval )
|