[llvm-commits] CVS: llvm/test/Assembler/2007-04-20-AlignedLoad.ll 2007-04-20-AlignedStore.ll

Christopher Lamb christopher.lamb at gmail.com
Sat Apr 21 01:17:12 PDT 2007



Changes in directory llvm/test/Assembler:

2007-04-20-AlignedLoad.ll added (r1.1)
2007-04-20-AlignedStore.ll added (r1.1)
---
Log message:


add support for alignment attributes on load/store instructions


---
Diffs of the changes:  (+14 -0)

 2007-04-20-AlignedLoad.ll  |    7 +++++++
 2007-04-20-AlignedStore.ll |    7 +++++++
 2 files changed, 14 insertions(+)


Index: llvm/test/Assembler/2007-04-20-AlignedLoad.ll
diff -c /dev/null llvm/test/Assembler/2007-04-20-AlignedLoad.ll:1.1
*** /dev/null	Sat Apr 21 03:16:35 2007
--- llvm/test/Assembler/2007-04-20-AlignedLoad.ll	Sat Apr 21 03:16:25 2007
***************
*** 0 ****
--- 1,7 ----
+ ; RUN: llvm-as < %s |& llvm-dis |& grep 'align 1024'
+ 
+ define i32 @test(i32* %arg) {
+ entry:
+         %tmp2 = load i32* %arg, align 1024      ; <i32> [#uses=1]
+         ret i32 %tmp2
+ }


Index: llvm/test/Assembler/2007-04-20-AlignedStore.ll
diff -c /dev/null llvm/test/Assembler/2007-04-20-AlignedStore.ll:1.1
*** /dev/null	Sat Apr 21 03:17:12 2007
--- llvm/test/Assembler/2007-04-20-AlignedStore.ll	Sat Apr 21 03:16:25 2007
***************
*** 0 ****
--- 1,7 ----
+ ; RUN: llvm-as < %s |& llvm-dis | grep 'align 1024'
+ 
+ define void @test(i32* %arg) {
+ entry:
+         store i32 0, i32* %arg, align 1024
+         ret void
+ }






More information about the llvm-commits mailing list