Update tests that need to be run through llvm-upgrade. This is necessary

for upcoming changes to the llvm assembly grammar.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2006-12-29 20:01:32 +00:00
parent 0cc2bd12d2
commit 73e70822ae
41 changed files with 78 additions and 62 deletions

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -adce
; RUN: llvm-upgrade < %s | llvm-as | opt -adce
void "test"()
begin

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -indvars -disable-output
; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -disable-output
target datalayout = "e-p:32:32"
target endian = little

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep zext
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep zext
; Never merge these two conversions, even though it's possible: this is
; significantly more expensive than the two conversions on some targets

View File

@@ -1,5 +1,8 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'icmp' | wc -l | grep 1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'icmp ugt' | wc -l | grep 1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
; RUN: grep 'icmp' | wc -l | grep 1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
; RUN: grep 'icmp ugt' | wc -l | grep 1
;
; ModuleID = 'bugpoint-tooptimize.bc'
target datalayout = "e-p:32:32"
target endian = little

View File

@@ -1,6 +1,6 @@
; For PR1065. This causes an assertion in instcombine if a select with two cmp
; operands is encountered.
; RUN: llvm-as < %s | opt -instcombine -disable-output
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output
; ModuleID = 'PR1065.bc'
target datalayout = "e-p:32:32"
target endian = little

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | grep shl
bool %test(int %X, ubyte %A) {
%B = lshr int %X, ubyte %A

View File

@@ -2,7 +2,7 @@
; LevelRaise should eliminate all cast instructions from this testcase.
;
; XFAIL: *
; RUN: llvm-as < %s | opt -raise | llvm-dis | notcast
; RUN: llvm-upgrade < %s | llvm-as | opt -raise | llvm-dis | notcast
%Hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int } *
%hash = type { { uint, sbyte *, \2 } * *, int (uint) *, int }

View File

@@ -1,4 +1,5 @@
; RUN: llvm-as < %s | opt -sccp | llvm-dis | grep 'ret bool false'
; RUN: llvm-upgrade < %s | llvm-as | opt -sccp | llvm-dis | \
; RUN: grep 'ret bool false'
bool %foo() {
%X = and bool false, undef

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -scalarrepl -disable-output
; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -disable-output
; PR1045
target datalayout = "e-p:32:32"

View File

@@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis
; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis
; ModuleID = 'bugpoint-tooptimize.bc'
target datalayout = "e-p:32:32"
target endian = little