1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

For PR1319: Upgrade to new test harness.

llvm-svn: 36086
This commit is contained in:
Reid Spencer 2007-04-15 20:48:50 +00:00
parent 3d7ba2fb96
commit 47d1aeeb51
10 changed files with 18 additions and 18 deletions

View File

@ -16,6 +16,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
; RUN: grep sbc | wc -l | grep 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep __muldi3
; END.
long %f1() {
entry:

View File

@ -1,6 +1,5 @@
; RUN: llvm-as < %s | llc &&
; RUN: llvm-as < %s | llc | grep jmp | wc -l | grep 0
; PR 1200
; RUN: llvm-as < %s | llc | not grep jmp
; ModuleID = '<stdin>'
target datalayout = "e-p:32:32"

View File

@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=x86 | grep 'movl $1, %eax'
; PR1219
; RUN: llvm-as < %s | llc -march=x86 | grep {movl \$1, %eax}
define i32 @test(i1 %X) {
old_entry1:

View File

@ -1,6 +1,5 @@
; RUN: llvm-as < %s | llc &&
; RUN: llvm-as < %s | llc -march=x86 | grep 'add' &&
; RUN: llvm-as < %s | llc -march=x86 | not grep 'adc'
; RUN: llvm-as < %s | llc -march=x86 | grep add
; RUN: llvm-as < %s | llc -march=x86 | not grep adc
define i64 @test(i64 %A, i32 %B) {
%tmp12 = zext i32 %B to i64 ; <i64> [#uses=1]

View File

@ -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}]]

View File

@ -1,7 +1,8 @@
; RUN: llvm-as < %s | llc -march=x86 | grep shrl.*31 &&
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'srwi r3, r3, 31' &&
; RUN: llvm-as < %s | llc -march=arm | grep 'mov r0, r0, lsr #31' &&
; RUN: llvm-as < %s | llc -march=thumb | grep 'lsr r0, r0, #31'
; RUN: llvm-as < %s | llc -march=x86 | grep {shrl.*31}
; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
; RUN: grep {srwi r3, r3, 31}
; RUN: llvm-as < %s | llc -march=arm | grep {mov r0, r0, lsr #31}
; RUN: llvm-as < %s | llc -march=thumb | grep {lsr r0, r0, #31}
define i32 @test1(i32 %X) {
entry:

View File

@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=x86 | grep 'movl $1' | wc -l | grep 1
; PR1296
; RUN: llvm-as < %s | llc -march=x86 | grep {movl \$1} | wc -l | grep 1
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
target triple = "i686-apple-darwin8"

View File

@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 'mov.*str1' | wc -l | grep 1
; PR925
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
; RUN: grep mov.*str1 | wc -l | grep 1
target endian = little
target pointersize = 32

View File

@ -1,5 +1,5 @@
; this should turn into shladd
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ia64 | grep 'shladd'
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ia64 | grep shladd
implementation ; Functions:

View File

@ -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}]]