summaryrefslogtreecommitdiff
path: root/test/Assembler/2007-04-20-AlignedLoad.ll
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2007-04-21 08:16:25 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2007-04-21 08:16:25 +0000
commit2330e4d4c4f8008d17f5a38ac0d7b04e139d4131 (patch)
tree50e224364619b5ef673361d3c9535b97f75473a1 /test/Assembler/2007-04-20-AlignedLoad.ll
parent1b7f584fd81b4c0df42e06be79af7d7401d3b01d (diff)
downloadllvm-2330e4d4c4f8008d17f5a38ac0d7b04e139d4131.tar.gz
llvm-2330e4d4c4f8008d17f5a38ac0d7b04e139d4131.tar.bz2
llvm-2330e4d4c4f8008d17f5a38ac0d7b04e139d4131.tar.xz
add support for alignment attributes on load/store instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36301 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Assembler/2007-04-20-AlignedLoad.ll')
-rw-r--r--test/Assembler/2007-04-20-AlignedLoad.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Assembler/2007-04-20-AlignedLoad.ll b/test/Assembler/2007-04-20-AlignedLoad.ll
new file mode 100644
index 0000000000..a01fdf0271
--- /dev/null
+++ b/test/Assembler/2007-04-20-AlignedLoad.ll
@@ -0,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
+}