[PATCH] D45761: [Sparc] Fix addressing mode when using 64-bit values in inline assembly
Daniel Cederman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 20 00:01:05 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL330392: [Sparc] Fix addressing mode when using 64-bit values in inline assembly (authored by dcederman, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D45761?vs=142906&id=143237#toc
Repository:
rL LLVM
https://reviews.llvm.org/D45761
Files:
llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp
llvm/trunk/test/CodeGen/SPARC/inlineasm.ll
Index: llvm/trunk/test/CodeGen/SPARC/inlineasm.ll
===================================================================
--- llvm/trunk/test/CodeGen/SPARC/inlineasm.ll
+++ llvm/trunk/test/CodeGen/SPARC/inlineasm.ll
@@ -112,3 +112,11 @@
%2 = tail call double asm sideeffect "faddd $1, $2, $0;", "=f,f,e"(double %0, double %1) #7
ret double %2
}
+
+; CHECK-LABEL: test_addressing_mode_i64:
+; CHECK: std %l0, [%o0]
+define void @test_addressing_mode_i64(i64* %out) {
+entry:
+ call void asm "std %l0, $0", "=*m,r"(i64* nonnull %out, i64 0)
+ ret void
+}
Index: llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp
===================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp
+++ llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp
@@ -311,6 +311,8 @@
if (!Changed)
return false;
+ SelectInlineAsmMemoryOperands(AsmNodeOperands, SDLoc(N));
+
SDValue New = CurDAG->getNode(ISD::INLINEASM, SDLoc(N),
CurDAG->getVTList(MVT::Other, MVT::Glue), AsmNodeOperands);
New->setNodeId(-1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45761.143237.patch
Type: text/x-patch
Size: 1062 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180420/1f582266/attachment.bin>
More information about the llvm-commits
mailing list