aboutsummaryrefslogtreecommitdiff
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
commitefc8740647eeabbb1bd4fe876859ece47a6af9c1 (patch)
treecd958af619bb2665acf13f6c1a467a8f3a8b440d
parentfc82e4db13b46b2f14f5895d2a0b33524d55d06a (diff)
Mips specific inline asm memory operand modifier test case
These changes are based on commit responses for r179135. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179315 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/CodeGen/Mips/inlineasmmemop.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Mips/inlineasmmemop.ll b/test/CodeGen/Mips/inlineasmmemop.ll
index a87cab3eb4..a08a0243b8 100644
--- a/test/CodeGen/Mips/inlineasmmemop.ll
+++ b/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() {