Add new testcase, rename pass

llvm-svn: 16799
This commit is contained in:
Chris Lattner 2004-10-07 04:07:08 +00:00
parent fc303099c9
commit 381fbf1616
4 changed files with 11 additions and 3 deletions

View File

@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep global
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global
%X = internal global int 4

View File

@ -0,0 +1,8 @@
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep internal
%G = internal global int 123
void %foo() {
store int 1, int* %G
ret void
}

View File

@ -1,7 +1,7 @@
; Test that PHI nodes and select instructions do not necessarily make stuff
; non-constant.
; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep global
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global
%X = internal global int 4
%Y = internal global int 5

View File

@ -1,4 +1,4 @@
; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep G
; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep G
%G = internal global int 17