mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-06 04:31:08 +00:00
Add new testcase, rename pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16799 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6856912f5b
commit
69406b06ad
@ -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
|
||||
|
||||
|
8
test/Transforms/GlobalConstifier/deadglobal.llx
Normal file
8
test/Transforms/GlobalConstifier/deadglobal.llx
Normal 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
|
||||
}
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user