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
This commit is contained in:
Jack Carter 2013-04-11 19:39:19 +00:00
parent fc82e4db13
commit efc8740647

View File

@ -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() {