mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-22 18:35:45 +00:00
For PR1319: Upgrade to new test harness.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97e287ef8a
commit
c58ef0185b
@ -1,6 +1,7 @@
|
||||
; This function should have exactly one call to fixdfdi, no more!
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | grep 'bl .*fixdfdi' | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | \
|
||||
; RUN: grep {bl .*fixdfdi} | wc -l | grep 1
|
||||
|
||||
double %test2(double %tmp.7705) {
|
||||
%mem_tmp.2.0.in = cast double %tmp.7705 to long ; <long> [#uses=1]
|
||||
|
@ -1,5 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc | not grep ', f1'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc | not grep {, f1}
|
||||
|
||||
target endian = big
|
||||
target pointersize = 32
|
||||
|
@ -1,4 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | grep 'vspltish v.*, 10'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
|
||||
; RUN: grep {vspltish v.*, 10}
|
||||
|
||||
void %test(<8 x short>* %P) {
|
||||
%tmp = load <8 x short>* %P ; <<8 x short>> [#uses=1]
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -combiner-alias-analysis | grep 'f5'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -combiner-alias-analysis | grep f5
|
||||
|
||||
target endian = big
|
||||
target pointersize = 32
|
||||
|
@ -1,3 +1,4 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep 'align.*3'
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | \
|
||||
; RUN: grep align.*3
|
||||
|
||||
@X = global <{i32, i32}> <{ i32 1, i32 123 }>
|
||||
|
@ -1,7 +1,12 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'rlwinm r0, r1, 0, 22, 31' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'subfic r0, r0, -16448' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'rldicl r0, r1, 0, 54'
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {rlwinm r0, r1, 0, 22, 31}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {subfic r0, r0, -16448}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {rldicl r0, r1, 0, 54}
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,19 +1,50 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'stw r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'stwu r1, -64(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'lwz r1, 0(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'lwz r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stwu r1, -64(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r1, 0(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'std r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'stdu r1, -112(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'ld r1, 0(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'ld r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'std r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stdu r1, -112(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r1, 0(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r31, 40(r1)'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {stw r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {stwu r1, -64(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep {lwz r1, 0(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {lwz r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {stw r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {stwu r1, -64(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {lwz r1, 0(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {lwz r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {std r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {stdu r1, -112(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {ld r1, 0(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {ld r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {std r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {stdu r1, -112(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {ld r1, 0(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {ld r31, 40(r1)}
|
||||
|
||||
|
||||
implementation
|
||||
|
@ -1,27 +1,74 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | not grep 'stw r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'lis r0, -1' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'ori r0, r0, 32704' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'stwux r1, r1, r0' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'lwz r1, 0(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | not grep 'lwz r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lis r0, -1' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ori r0, r0, 32704' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stwux r1, r1, r0' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r1, 0(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | not grep 'std r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'lis r0, -1' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'ori r0, r0, 32656' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'stdux r1, r1, r0' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'ld r1, 0(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | not grep 'ld r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'std r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lis r0, -1' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ori r0, r0, 32656' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stdux r1, r1, r0' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r1, 0(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r31, 40(r1)'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: not grep {stw r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep {lis r0, -1}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {ori r0, r0, 32704}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {stwux r1, r1, r0}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {lwz r1, 0(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: not grep {lwz r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {stw r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {lis r0, -1}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {ori r0, r0, 32704}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {stwux r1, r1, r0}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {lwz r1, 0(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {lwz r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: not grep {std r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {lis r0, -1}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {ori r0, r0, 32656}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {stdux r1, r1, r0}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {ld r1, 0(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: not grep {ld r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {std r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {lis r0, -1}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {ori r0, r0, 32656}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {stdux r1, r1, r0}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {ld r1, 0(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
|
||||
; RUN: grep {ld r31, 40(r1)}
|
||||
|
||||
|
||||
implementation
|
||||
|
@ -1,19 +1,35 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'stw r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'stwu r1, -.*(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'addi r1, r1, ' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'lwz r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | not grep 'stw r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | not grep 'stwu r1, -.*(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | not grep 'addi r1, r1, ' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | not grep 'lwz r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep 'std r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep 'stdu r1, -.*(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep 'addi r1, r1, ' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep 'ld r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | not grep 'stw r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | not grep 'stdu r1, -.*(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | not grep 'addi r1, r1, ' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | not grep 'ld r31, 40(r1)'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: not grep {stw r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: not grep {stwu r1, -.*(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: not grep {addi r1, r1, }
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: not grep {lwz r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | \
|
||||
; RUN: not grep {stw r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | \
|
||||
; RUN: not grep {stwu r1, -.*(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | \
|
||||
; RUN: not grep {addi r1, r1, }
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | \
|
||||
; RUN: not grep {lwz r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
|
||||
; RUN: not grep {std r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
|
||||
; RUN: not grep {stdu r1, -.*(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
|
||||
; RUN: not grep {addi r1, r1, }
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
|
||||
; RUN: not grep {ld r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | \
|
||||
; RUN: not grep {stw r31, 40(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | \
|
||||
; RUN: not grep {stdu r1, -.*(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | \
|
||||
; RUN: not grep {addi r1, r1, }
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | \
|
||||
; RUN: not grep {ld r31, 40(r1)}
|
||||
|
||||
|
||||
implementation
|
||||
|
@ -1,20 +1,30 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | not grep 'stw r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'stwu r1, -16448(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'addi r1, r1, 16448' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | not grep 'lwz r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stwu r1, -16448(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'addi r1, r1, 16448' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | not grep 'std r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'stdu r1, -16496(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'addi r1, r1, 16496' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | not grep 'ld r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'std r31, 40(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stdu r1, -16496(r1)' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'addi r1, r1, 16496' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r31, 40(r1)'
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -o %t1 -f
|
||||
; RUN not grep {stw r31, 20(r1)} %t1
|
||||
; RUN: grep {stwu r1, -16448(r1)} %t1
|
||||
; RUN: grep {addi r1, r1, 16448} %t1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: not grep {lwz r31, 20(r1)}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
|
||||
; RUN: -o %t2 -f
|
||||
; RUN: grep {stw r31, 20(r1)} %t2
|
||||
; RUN: grep {stwu r1, -16448(r1)} %t2
|
||||
; RUN: grep {addi r1, r1, 16448} %t2
|
||||
; RUN: grep {lwz r31, 20(r1)} %t2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -o %t3 -f
|
||||
; RUN: not grep {std r31, 40(r1)} %t3
|
||||
; RUN: grep {stdu r1, -16496(r1)} %t3
|
||||
; RUN: grep {addi r1, r1, 16496} %t3
|
||||
; RUN: not grep {ld r31, 40(r1)} %t3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
|
||||
; RUN: -o %t4 -f
|
||||
; RUN: grep {std r31, 40(r1)} %t4
|
||||
; RUN: grep {stdu r1, -16496(r1)} %t4
|
||||
; RUN: grep {addi r1, r1, 16496} %t4
|
||||
; RUN: grep {ld r31, 40(r1)} %t4
|
||||
|
||||
implementation
|
||||
|
||||
|
@ -1,7 +1,9 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin | grep 'stw r3, 32751' &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | grep 'stw r3, 32751' &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | grep 'std r2, 9024' &&
|
||||
; RUN: llvm-as < %s | llc
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin | \
|
||||
; RUN: grep {stw r3, 32751}
|
||||
; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | \
|
||||
; RUN: grep {stw r3, 32751}
|
||||
; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | \
|
||||
; RUN: grep {std r2, 9024}
|
||||
|
||||
define void @test() {
|
||||
store i32 0, i32* inttoptr (i64 48725999 to i32*)
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'b LBB.*' | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep {b LBB.*} | wc -l | grep 4
|
||||
|
||||
target endian = big
|
||||
target pointersize = 32
|
||||
|
@ -1,8 +1,10 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'stwbrx\|lwbrx\|sthbrx\|lhbrx' | wc -l | grep 4 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwinm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwimi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | grep 'stwbrx\|lwbrx\|sthbrx\|lhbrx' | wc -l | grep 4 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep rlwinm &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep {stwbrx\\|lwbrx\\|sthbrx\\|lhbrx} | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwinm
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwimi
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
|
||||
; RUN: grep {stwbrx\\|lwbrx\\|sthbrx\\|lhbrx} | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep rlwinm
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep rlwimi
|
||||
|
||||
void %STWBRX(uint %i, sbyte* %ptr, int %off) {
|
||||
|
@ -1,8 +1,11 @@
|
||||
; Test various forms of calls.
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'bl ' | wc -l | grep 2 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'bctrl' | wc -l | grep 1 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'bla ' | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep {bl } | wc -l | grep 2
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep {bctrl} | wc -l | grep 1
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep {bla } | wc -l | grep 1
|
||||
|
||||
declare void %foo()
|
||||
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'cmpwi cr0, r3, -1'
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {cmpwi cr0, r3, -1}
|
||||
|
||||
define i32 @test(i32 %x) {
|
||||
%c = icmp eq i32 %x, -1
|
||||
|
@ -1,7 +1,10 @@
|
||||
; All of these routines should be perform optimal load of constants.
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep lis | wc -l | grep 5 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep ori | wc -l | grep 3 &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'li ' | wc -l | grep 4
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep lis | wc -l | grep 5
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep ori | wc -l | grep 3
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: grep {li } | wc -l | grep 4
|
||||
|
||||
implementation ; Functions:
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
; Make sure this testcase does not use ctpop
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -i 'cntlzw'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -i cntlzw
|
||||
|
||||
declare uint %llvm.cttz.i32(uint)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc | grep 'foo bar":'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc | grep {foo bar":}
|
||||
|
||||
target endian = big
|
||||
target pointersize = 32
|
||||
|
@ -1,3 +1,3 @@
|
||||
load_lib llvm-dg.exp
|
||||
load_lib llvm.exp
|
||||
|
||||
llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
||||
|
@ -1,4 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | egrep 'fn?madd|fn?msub' | wc -l | grep 8
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
|
||||
; RUN: egrep {fn?madd|fn?msub} | wc -l | grep 8
|
||||
|
||||
double %test_FMADD1(double %A, double %B, double %C) {
|
||||
%D = mul double %A, %B
|
||||
|
@ -1,10 +1,18 @@
|
||||
; fsqrt should be generated when the fsqrt feature is enabled, but not
|
||||
; otherwise.
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | grep 'fsqrt f1, f1' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | grep 'fsqrt f1, f1' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | not grep 'fsqrt f1, f1' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g4 | not grep 'fsqrt f1, f1'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | \
|
||||
; RUN: grep {fsqrt f1, f1}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
|
||||
; RUN: grep {fsqrt f1, f1}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | \
|
||||
; RUN: not grep {fsqrt f1, f1}
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g4 | \
|
||||
; RUN: not grep {fsqrt f1, f1}
|
||||
|
||||
declare double %llvm.sqrt.f64(double)
|
||||
double %X(double %Y) {
|
||||
|
@ -1,14 +1,22 @@
|
||||
; fcfid and fctid should be generated when the 64bit feature is enabled, but not
|
||||
; fcfid and fctid should be generated when the 64bit feature is enabled, but not
|
||||
; otherwise.
|
||||
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=+64bit | grep 'fcfid' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=+64bit | grep 'fctidz' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep 'fcfid' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep 'fctidz' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | not grep 'fcfid' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | not grep 'fctidz' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | not grep 'fcfid' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | not grep 'fctidz'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=+64bit | \
|
||||
; RUN: grep fcfid
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=+64bit | \
|
||||
; RUN: grep fctidz
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | \
|
||||
; RUN: grep fcfid
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | \
|
||||
; RUN: grep fctidz
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | \
|
||||
; RUN: not grep fcfid
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | \
|
||||
; RUN: not grep fctidz
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | \
|
||||
; RUN: not grep fcfid
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | \
|
||||
; RUN: not grep fctidz
|
||||
|
||||
double %X(double %Y) {
|
||||
%A = cast double %Y to long
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep cntlzw &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep xori &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'li ' &&
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'mr '
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | grep cntlzw
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep xori
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep {li }
|
||||
; RUN: llvm-as < %s | llc -march=ppc32 | not grep {mr }
|
||||
|
||||
define i1 @test(i64 %x) {
|
||||
%tmp = icmp ult i64 %x, 4294967296
|
||||
|
@ -1,4 +1,4 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep 'li.*16' &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep li.*16
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep addi
|
||||
|
||||
; Codegen lvx (R+16) as t = li 16, lvx t,R
|
||||
|
@ -1,5 +1,5 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwimi &&
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'or '
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwimi
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep {or }
|
||||
|
||||
; Make sure there is no register-register copies here.
|
||||
|
||||
|
@ -1,4 +1,6 @@
|
||||
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'srwi r., r., 5'
|
||||
; RUN: llvm-upgrade < %s | llvm-as | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {srwi r., r., 5}
|
||||
|
||||
int %eq0(int %a) {
|
||||
%tmp.1 = seteq int %a, 0 ; <bool> [#uses=1]
|
||||
|
@ -1,3 +1,3 @@
|
||||
load_lib llvm-dg.exp
|
||||
load_lib llvm.exp
|
||||
|
||||
llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
||||
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
|
||||
|
Loading…
x
Reference in New Issue
Block a user