mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
fc82e4db13
commit
efc8740647
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user