mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-27 00:21:03 +00:00
For PR1319:
Fix test syntax per new rules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36133 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic -mattr=+v6 -stats 2>&1 | grep 'asm-printer' | grep 41
|
||||
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic \
|
||||
; RUN: -mattr=+v6 -stats |& grep asm-printer | grep 41
|
||||
|
||||
define void @test(i32 %tmp56222, i32 %tmp36224, i32 %tmp46223, i32 %i.0196.0.ph, i32 %tmp8, i32* %tmp1011, i32** %tmp1, i32* %d2.1.out, i32* %d3.1.out, i32* %d0.1.out, i32* %d1.1.out) {
|
||||
newFuncRoot:
|
||||
|
@@ -1,5 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm &&
|
||||
; RUN: llvm-as < %s | llc -march=arm -stats 2>&1 | grep 'asm-printer' | grep 4
|
||||
; RUN: llvm-as < %s | llc -march=arm -stats |& grep asm-printer | grep 4
|
||||
|
||||
define i32 @t1(i32 %a) {
|
||||
%b = mul i32 %a, 9
|
||||
|
@@ -1,5 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm -stats 2>&1 | grep '3 .*Number of machine instrs printed' &&
|
||||
; RUN: llvm-as < %s | llc -march=thumb -stats 2>&1 | grep '4 .*Number of machine instrs printed'
|
||||
; RUN: llvm-as < %s | llc -march=arm -stats |& \
|
||||
; RUN: grep {3 .*Number of machine instrs printed}
|
||||
; RUN: llvm-as < %s | llc -march=thumb -stats |& \
|
||||
; RUN: grep {4 .*Number of machine instrs printed}
|
||||
|
||||
;; Integer absolute value, should produce something as good as: ARM:
|
||||
;; add r3, r0, r0, asr #31
|
||||
|
@@ -1,7 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -stats 2>&1 | grep '40.*Number of machine instrs printed'
|
||||
; This test really wants to check that the resultant "cond_true" block only has a single
|
||||
; store in it, and that cond_true55 only has code to materialize the constant and do
|
||||
; a store. We do *not* want something like this:
|
||||
; RUN: llvm-as < %s | llc -stats |& grep {40.*Number of machine instrs printed}
|
||||
; This test really wants to check that the resultant "cond_true" block only
|
||||
; has a single store in it, and that cond_true55 only has code to materialize
|
||||
; the constant and do a store. We do *not* want something like this:
|
||||
;
|
||||
;LBB1_3: @cond_true
|
||||
; add r8, r0, r6
|
||||
|
@@ -1,4 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -stats 2>&1 | grep '4 .*Number of machine instrs printed'
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -stats |& \
|
||||
; RUN: grep {4 .*Number of machine instrs printed}
|
||||
|
||||
;; Integer absolute value, should produce something as good as:
|
||||
;; srawi r2, r3, 31
|
||||
|
@@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -stats 2>&1 | grep 'Number of machine instrs printed' | grep 12
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -stats |& \
|
||||
; RUN: grep {Number of machine instrs printed} | grep 12
|
||||
|
||||
ushort %Trans16Bit(uint %srcA, uint %srcB, uint %alpha) {
|
||||
%tmp1 = shl uint %srcA, ubyte 15 ; <uint> [#uses=1]
|
||||
|
@@ -3,7 +3,7 @@
|
||||
; it makes a ton of annoying overlapping live ranges. This code should not
|
||||
; cause spills!
|
||||
;
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | not grep spilled
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& not grep spilled
|
||||
|
||||
target endian = little
|
||||
target pointersize = 32
|
||||
|
@@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | grep 'asm-printer' | grep 7
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& \
|
||||
; RUN: grep asm-printer | grep 7
|
||||
|
||||
int %g(int %a, int %b) {
|
||||
%tmp.1 = shl int %b, ubyte 1
|
||||
|
@@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -stats 2>&1 | not grep 'Number of register spills'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -stats |& \
|
||||
; RUN: not grep {Number of register spills}
|
||||
|
||||
int %foo(<4 x float>* %a, <4 x float>* %b, <4 x float>* %c, <4 x float>* %d) {
|
||||
%tmp44 = load <4 x float>* %a ; <<4 x float>> [#uses=9]
|
||||
|
@@ -1,4 +1,7 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static -stats 2>&1 | grep "asm-printer" | grep 14
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=x86 -relocation-model=static -stats |& \
|
||||
; RUN: grep asm-printer | grep 14
|
||||
;
|
||||
%size20 = external global uint ; <uint*> [#uses=1]
|
||||
%in5 = external global ubyte* ; <ubyte**> [#uses=1]
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | grep "asm-printer" | grep 18
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& \
|
||||
; RUN: grep asm-printer | grep 18
|
||||
|
||||
void %_ZN9__gnu_cxx9hashtableISt4pairIKPKciES3_NS_4hashIS3_EESt10_Select1stIS5_E5eqstrSaIiEE14find_or_insertERKS5__cond_true456.i(sbyte* %tmp435.i, uint* %tmp449.i.out) {
|
||||
newFuncRoot:
|
||||
|
@@ -1,4 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -march=x86-64 -stats 2>&1 | grep '6 .*Number of machine instrs printed'
|
||||
; RUN: llvm-as < %s | llc -march=x86-64 -stats |& \
|
||||
; RUN: grep {6 .*Number of machine instrs printed}
|
||||
|
||||
;; Integer absolute value, should produce something at least as good as:
|
||||
;; movl %edi, %eax
|
||||
|
Reference in New Issue
Block a user