projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow BackpatchWord to be called for non-32-bit aligned words, and
[oota-llvm.git]
/
test
/
Feature
/
alignment.ll
diff --git
a/test/Feature/alignment.ll
b/test/Feature/alignment.ll
index 9277dbc8bd688b9be9cba280fead80cd38808e1c..f6dbe33b24ba0ccf15a8ccdf01dc600eb4442910 100644
(file)
--- a/
test/Feature/alignment.ll
+++ b/
test/Feature/alignment.ll
@@
-1,20
+1,16
@@
-; RUN: llvm-
upgrade < %s | llvm-a
s | 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
; 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 void @test3() alignstack(16) {
+ ret void
}
}
+