1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Mips specific inline asm memory operand modifier test case

These changes are based on commit responses for r179135.

llvm-svn: 179315
This commit is contained in:
Jack Carter 2013-04-11 19:39:19 +00:00
parent 2b0ffc5124
commit 834846d7a8

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