aboutsummaryrefslogtreecommitdiffstats
path: root/test/Assembler
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
parent1b7f584fd81b4c0df42e06be79af7d7401d3b01d (diff)
downloadexternal_llvm-2330e4d4c4f8008d17f5a38ac0d7b04e139d4131.zip
external_llvm-2330e4d4c4f8008d17f5a38ac0d7b04e139d4131.tar.gz
external_llvm-2330e4d4c4f8008d17f5a38ac0d7b04e139d4131.tar.bz2
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')
-rw-r--r--test/Assembler/2007-04-20-AlignedLoad.ll7
-rw-r--r--test/Assembler/2007-04-20-AlignedStore.ll7
2 files changed, 14 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 0000000..a01fdf0
--- /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
+}
diff --git a/test/Assembler/2007-04-20-AlignedStore.ll b/test/Assembler/2007-04-20-AlignedStore.ll
new file mode 100644
index 0000000..c3681fc
--- /dev/null
+++ b/test/Assembler/2007-04-20-AlignedStore.ll
@@ -0,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
+}