[llvm] r179315 - Mips specific inline asm memory operand modifier test case

Jack Carter jack.carter at imgtec.com
Thu Apr 11 12:39:20 PDT 2013


Author: jacksprat
Date: Thu Apr 11 14:39:19 2013
New Revision: 179315

URL: http://llvm.org/viewvc/llvm-project?rev=179315&view=rev
Log:
Mips specific inline asm memory operand modifier test case

These changes are based on commit responses for r179135.


Modified:
    llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll

Modified: llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll?rev=179315&r1=179314&r2=179315&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll (original)
+++ llvm/trunk/test/CodeGen/Mips/inlineasmmemop.ll Thu Apr 11 14:39:19 2013
@@ -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() {





More information about the llvm-commits mailing list