summaryrefslogtreecommitdiffstats
path: root/llvm/test/Feature/alignment.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-01 07:38:40 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-01 07:38:40 +0000
commitb7e02fc0bf18ec1d026291aab48d125a455b3ec5 (patch)
treec8363a654a595a92d7917b036128aa4555ab1c56 /llvm/test/Feature/alignment.ll
parentbb2090018474648c03f16b5db8b7cf8987fcb9ed (diff)
downloadbcm5719-llvm-b7e02fc0bf18ec1d026291aab48d125a455b3ec5.tar.gz
bcm5719-llvm-b7e02fc0bf18ec1d026291aab48d125a455b3ec5.zip
Remove llvm-upgrade and update tests.
llvm-svn: 47784
Diffstat (limited to 'llvm/test/Feature/alignment.ll')
-rw-r--r--llvm/test/Feature/alignment.ll27
1 files changed, 14 insertions, 13 deletions
diff --git a/llvm/test/Feature/alignment.ll b/llvm/test/Feature/alignment.ll
index 9277dbc8bd6..409efebe84b 100644
--- a/llvm/test/Feature/alignment.ll
+++ b/llvm/test/Feature/alignment.ll
@@ -1,20 +1,21 @@
-; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll
+; RUN: llvm-as < %s | llvm-dis > %t1.ll
; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
; RUN: diff %t1.ll %t2.ll
-%X = global int 4, align 16
+@X = global i32 4, align 16 ; <i32*> [#uses=0]
-int *%test() align 32 {
- %X = alloca int, align 4
- %Y = alloca int, uint 42, align 16
- %Z = alloca int, align 0
- ret int *%X
+define i32* @test() align 32 {
+ %X = alloca i32, align 4 ; <i32*> [#uses=1]
+ %Y = alloca i32, i32 42, align 16 ; <i32*> [#uses=0]
+ %Z = alloca i32 ; <i32*> [#uses=0]
+ ret i32* %X
}
-int *%test2() {
- %X = malloc int, align 4
- %Y = malloc int, uint 42, align 16
- %Z = malloc int, align 0
- %T = malloc int, align 256
- ret int *%X
+define i32* @test2() {
+ %X = malloc i32, align 4 ; <i32*> [#uses=1]
+ %Y = malloc i32, i32 42, align 16 ; <i32*> [#uses=0]
+ %Z = malloc i32 ; <i32*> [#uses=0]
+ %T = malloc i32, align 256 ; <i32*> [#uses=0]
+ ret i32* %X
}
+
OpenPOWER on IntegriCloud