mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 03:29:40 +00:00
Remove && from the end of the lines to prevent tests from throwing run lines into the background. Also, clean up places where the same command is run multiple times by using a temporary file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36142 91177308-0d34-0410-b5e6-96231b3b80d8
35 lines
1.1 KiB
LLVM
35 lines
1.1 KiB
LLVM
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
|
; RUN: grep ldmia | wc -l | grep 2
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
|
|
; RUN: grep ldmib | wc -l | grep 1
|
|
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | \
|
|
; RUN: grep {ldmfd sp\!} | wc -l | grep 3
|
|
|
|
%X = external global [0 x int]
|
|
|
|
int %t1() {
|
|
%tmp = load int* getelementptr ([0 x int]* %X, int 0, int 0)
|
|
%tmp3 = load int* getelementptr ([0 x int]* %X, int 0, int 1)
|
|
%tmp4 = tail call int %f1( int %tmp, int %tmp3 )
|
|
ret int %tmp4
|
|
}
|
|
|
|
int %t2() {
|
|
%tmp = load int* getelementptr ([0 x int]* %X, int 0, int 2)
|
|
%tmp3 = load int* getelementptr ([0 x int]* %X, int 0, int 3)
|
|
%tmp5 = load int* getelementptr ([0 x int]* %X, int 0, int 4)
|
|
%tmp6 = tail call int %f2( int %tmp, int %tmp3, int %tmp5 )
|
|
ret int %tmp6
|
|
}
|
|
|
|
int %t3() {
|
|
%tmp = load int* getelementptr ([0 x int]* %X, int 0, int 1)
|
|
%tmp3 = load int* getelementptr ([0 x int]* %X, int 0, int 2)
|
|
%tmp5 = load int* getelementptr ([0 x int]* %X, int 0, int 3)
|
|
%tmp6 = tail call int %f2( int %tmp, int %tmp3, int %tmp5 )
|
|
ret int %tmp6
|
|
}
|
|
|
|
declare int %f1(int, int)
|
|
declare int %f2(int, int, int)
|