[llvm-commits] [vector_llvm] CVS: llvm/test/Feature/alignment.ll global_section.ll
Robert Bocchino
bocchino at cs.uiuc.edu
Wed Nov 16 10:33:20 PST 2005
Changes in directory llvm/test/Feature:
alignment.ll added (r1.2.2.2)
global_section.ll added (r1.1.2.2)
---
Log message:
Merged mainline into Vector LLVM branch
---
Diffs of the changes: (+29 -0)
alignment.ll | 19 +++++++++++++++++++
global_section.ll | 10 ++++++++++
2 files changed, 29 insertions(+)
Index: llvm/test/Feature/alignment.ll
diff -c /dev/null llvm/test/Feature/alignment.ll:1.2.2.2
*** /dev/null Wed Nov 16 12:33:18 2005
--- llvm/test/Feature/alignment.ll Wed Nov 16 12:33:08 2005
***************
*** 0 ****
--- 1,19 ----
+ ; RUN: llvm-as %s -o - | 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
+
+ int *%test() align 32 {
+ %X = alloca int, align 4
+ %Y = alloca int, uint 42, align 16
+ %Z = alloca int, align 0
+ ret int *%X
+ }
+
+ int *%test2() {
+ %X = malloc int, align 4
+ %Y = malloc int, uint 42, align 16
+ %Z = malloc int, align 0
+ ret int *%X
+ }
Index: llvm/test/Feature/global_section.ll
diff -c /dev/null llvm/test/Feature/global_section.ll:1.1.2.2
*** /dev/null Wed Nov 16 12:33:20 2005
--- llvm/test/Feature/global_section.ll Wed Nov 16 12:33:08 2005
***************
*** 0 ****
--- 1,10 ----
+ ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
+ ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
+ ; RUN: diff %t1.ll %t2.ll
+
+ %X = global int 4, section "foo", align 16
+
+ void %test() section "bar" {
+ ret void
+ }
+
More information about the llvm-commits
mailing list