aboutsummaryrefslogtreecommitdiffstats
path: root/test/Analysis/GlobalsModRef/modreftest.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-02-14 06:56:27 +0000
committerTanya Lattner <tonic@nondot.org>2008-02-14 06:56:27 +0000
commita695f0182c2f355ee88a6479ed72f58681602867 (patch)
treee443e360baad1556849b2bb86d4296b4c011b83e /test/Analysis/GlobalsModRef/modreftest.ll
parentbea5feb5dbbdd7874d23e1617102bfa9d24a5344 (diff)
downloadexternal_llvm-a695f0182c2f355ee88a6479ed72f58681602867.zip
external_llvm-a695f0182c2f355ee88a6479ed72f58681602867.tar.gz
external_llvm-a695f0182c2f355ee88a6479ed72f58681602867.tar.bz2
Remove llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47110 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Analysis/GlobalsModRef/modreftest.ll')
-rw-r--r--test/Analysis/GlobalsModRef/modreftest.ll18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/Analysis/GlobalsModRef/modreftest.ll b/test/Analysis/GlobalsModRef/modreftest.ll
index fadc747..9783664 100644
--- a/test/Analysis/GlobalsModRef/modreftest.ll
+++ b/test/Analysis/GlobalsModRef/modreftest.ll
@@ -1,13 +1,13 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load
-%X = internal global int 4
+; RUN: llvm-as < %s | opt -globalsmodref-aa -load-vn -gcse | llvm-dis | not grep load
+@X = internal global i32 4 ; <i32*> [#uses=2]
-int %test(int *%P) {
- store int 12, int* %X
- call void %doesnotmodX()
- %V = load int* %X
- ret int %V
+define i32 @test(i32* %P) {
+ store i32 12, i32* @X
+ call void @doesnotmodX( )
+ %V = load i32* @X ; <i32> [#uses=1]
+ ret i32 %V
}
-void %doesnotmodX() {
- ret void
+define void @doesnotmodX() {
+ ret void
}