mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Convert more tests to avoid llvm-as.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81545 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
|
||||
; RUN: grep {vspltish v.*, 10}
|
||||
|
||||
define void @test(<8 x i16>* %P) {
|
||||
|
@@ -1,5 +1,4 @@
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -combiner-alias-analysis | grep f5
|
||||
; RUN: llc < %s -march=ppc32 -combiner-alias-analysis | grep f5
|
||||
|
||||
target datalayout = "E-p:32:32"
|
||||
target triple = "powerpc-apple-darwin8.2.0"
|
||||
|
@@ -1,25 +1,21 @@
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -o %t1
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -o %t1
|
||||
; RUN not grep {stw r31, 20(r1)} %t1
|
||||
; RUN: grep {stwu r1, -16448(r1)} %t1
|
||||
; RUN: grep {addi r1, r1, 16448} %t1
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc < %s -march=ppc32 | \
|
||||
; RUN: not grep {lwz r31, 20(r1)}
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
|
||||
; RUN: -o %t2
|
||||
; 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-as < %s | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -o %t3
|
||||
; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -o %t3
|
||||
; 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-as < %s | \
|
||||
; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
|
||||
; RUN: llc < %s -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
|
||||
; RUN: -o %t4
|
||||
; RUN: grep {std r31, 40(r1)} %t4
|
||||
; RUN: grep {stdu r1, -16496(r1)} %t4
|
||||
|
@@ -1,11 +1,9 @@
|
||||
; There should be exactly one vxor here.
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | \
|
||||
; RUN: llc < %s -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | \
|
||||
; RUN: grep vxor | count 1
|
||||
|
||||
; There should be exactly one vsplti here.
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | \
|
||||
; RUN: llc < %s -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | \
|
||||
; RUN: grep vsplti | count 1
|
||||
|
||||
define void @VXOR(<4 x float>* %P1, <4 x i32>* %P2, <4 x float>* %P3) {
|
||||
|
@@ -1,17 +1,13 @@
|
||||
; fsqrt should be generated when the fsqrt feature is enabled, but not
|
||||
; otherwise.
|
||||
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | \
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | \
|
||||
; RUN: grep {fsqrt f1, f1}
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
|
||||
; RUN: grep {fsqrt f1, f1}
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | \
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
|
||||
; RUN: grep {fsqrt f1, f1}
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | \
|
||||
; RUN: not grep {fsqrt f1, f1}
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g4 | \
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g4 | \
|
||||
; RUN: not grep {fsqrt f1, f1}
|
||||
|
||||
declare double @llvm.sqrt.f64(double)
|
||||
|
@@ -1,5 +1,4 @@
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
|
||||
; RUN: grep {srwi r., r., 5}
|
||||
|
||||
define i32 @eq0(i32 %a) {
|
||||
|
@@ -1,9 +1,7 @@
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx -o %t1
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=stfiwx -o %t1
|
||||
; RUN: grep stfiwx %t1
|
||||
; RUN: not grep r1 %t1
|
||||
; RUN: llvm-as < %s | \
|
||||
; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx \
|
||||
; RUN: llc < %s -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-stfiwx \
|
||||
; RUN: -o %t2
|
||||
; RUN: not grep stfiwx %t2
|
||||
; RUN: grep r1 %t2
|
||||
|
Reference in New Issue
Block a user