git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255788
91177308-0d34-0410-b5e6-
96231b3b80d8
report_fatal_error("There are no defined alternate asm variants");
if (!ExtraCode) {
- OS << regToString(MI->getOperand(OpNo));
+ // TODO: For now, we just hard-code 0 as the constant offset; teach
+ // SelectInlineAsmMemoryOperand how to do address mode matching.
+ OS << "0(" + regToString(MI->getOperand(OpNo)) + ')';
return false;
}
; CHECK-LABEL: bar:
; CHECK-NEXT: .param i32, i32{{$}}
; CHECK-NEXT: #APP{{$}}
-; CHECK-NEXT: # $1 = bbb($0){{$}}
+; CHECK-NEXT: # 0($1) = bbb(0($0)){{$}}
; CHECK-NEXT: #NO_APP{{$}}
; CHECK-NEXT: return{{$}}
define void @bar(i32* %r, i32* %s) {