llvm.org GIT mirror llvm / 89a3066
Add an explicit triple to the big-endian tests so that the assembly output format is always consistent with what the greps are looking for. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37943 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 12 years ago
2 changed file(s) with 12 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
None ; RUN: llvm-as < %s | llc -march=ppc32 | grep {addc 4, 4, 6}
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep {adde 3, 3, 5}
0 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
1 ; RUN: grep {addc 4, 4, 6}
2 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
3 ; RUN: grep {adde 3, 3, 5}
24
35 define i64 @foo(i64 %x, i64 %y) {
46 %z = add i64 %x, %y
None ; RUN: llvm-as < %s | llc -march=ppc32 | grep {li 6, 3}
1 ; RUN: llvm-as < %s | llc -march=ppc32 | grep {li 4, 2}
2 ; RUN: llvm-as < %s | llc -march=ppc32 | grep {li 3, 0}
3 ; RUN: llvm-as < %s | llc -march=ppc32 | grep {mr 5, 3}
0 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
1 ; RUN: grep {li 6, 3}
2 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
3 ; RUN: grep {li 4, 2}
4 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
5 ; RUN: grep {li 3, 0}
6 ; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-unknown-linux-gnu | \
7 ; RUN: grep {mr 5, 3}
48
59 declare void @bar(i64 %x, i64 %y)
610