summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Carter <jack.carter@imgtec.com>2013-04-11 19:39:19 +0000
committerJack Carter <jack.carter@imgtec.com>2013-04-11 19:39:19 +0000
commita16fa808d35d2c24dd212ce88b810518074cf8bb (patch)
treec3a67e0d7b182d4ae7dc8f412dc96ca15435c26a
parent4f1130eb66ff01128c0061ace377c10b74128a45 (diff)
downloadbcm5719-llvm-a16fa808d35d2c24dd212ce88b810518074cf8bb.tar.gz
bcm5719-llvm-a16fa808d35d2c24dd212ce88b810518074cf8bb.zip
Mips specific inline asm memory operand modifier test case
These changes are based on commit responses for r179135. llvm-svn: 179315
-rw-r--r--llvm/test/CodeGen/Mips/inlineasmmemop.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Mips/inlineasmmemop.ll b/llvm/test/CodeGen/Mips/inlineasmmemop.ll
index a87cab3eb4c..a08a0243b8b 100644
--- a/llvm/test/CodeGen/Mips/inlineasmmemop.ll
+++ b/llvm/test/CodeGen/Mips/inlineasmmemop.ll
@@ -34,6 +34,22 @@ entry:
; CHECK-NEXT: lw ${{[0-9]+}},0(${{[0-9]+}});
; CHECK-NEXT: #NO_APP
+;int b[8] = {0,1,2,3,4,5,6,7};
+;int main()
+;{
+; int i;
+;
+; // The first word. Notice, no 'D'
+; { asm (
+; "lw %0,%1;\n"
+; : "=r" (i) : "m" (*(b+4)));}
+;
+; // The second word
+; { asm (
+; "lw %0,%D1;\n"
+; : "=r" (i) "m" (*(b+4)));}
+;}
+
@b = common global [20 x i32] zeroinitializer, align 4
define void @main() {
OpenPOWER on IntegriCloud