summaryrefslogtreecommitdiff
path: root/test/CodeGen/ARM/mem.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/ARM/mem.ll')
-rw-r--r--test/CodeGen/ARM/mem.ll14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/CodeGen/ARM/mem.ll b/test/CodeGen/ARM/mem.ll
new file mode 100644
index 000000000000..e98316576d8a
--- /dev/null
+++ b/test/CodeGen/ARM/mem.ll
@@ -0,0 +1,14 @@
+; RUN: llvm-as < %s | llc -march=arm | grep strb
+; RUN: llvm-as < %s | llc -march=arm | grep strh
+
+define void @f1() {
+entry:
+ store i8 0, i8* null
+ ret void
+}
+
+define void @f2() {
+entry:
+ store i16 0, i16* null
+ ret void
+}