[PATCH] D21615: [inlineasm] Propagate operand constraints to the backend

Daniel Sanders via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 05:02:22 PDT 2016


dsanders accepted this revision.
dsanders added a comment.
This revision is now accepted and ready to land.

LGTM with the pre-R6 test and the addiu check


================
Comment at: test/CodeGen/Mips/inlineasm-constraint_ZC_2.ll:2-3
@@ +1,4 @@
+; RUN: llc -march=mips -mcpu=mips32r6 < %s | FileCheck %s
+; RUN: llc -march=mips -mcpu=mips64r6 -target-abi=n64 < %s | FileCheck %s
+
+%struct.anon = type { [63 x i32], i32, i32 }
----------------
This hasn't been done

================
Comment at: test/CodeGen/Mips/inlineasm-constraint_ZC_2.ll:15-18
@@ +14,6 @@
+; CHECK: #APP
+; CHECK: ll ${{[0-9]+}}, 0(${{[0-9a-z]+}})
+; CHECK: sc ${{[0-9]+}}, 0(${{[0-9a-z]+}})
+; CHECK: #NO_APP
+
+  %1 = call { i32, i32 } asm sideeffect ".set push\0A.set noreorder\0A1:\0All $0, $2\0Aaddu $1, $0, $3\0Asc $1, $2\0Abeqz $1, 1b\0Aaddu $1, $0, $3\0A.set pop\0A", "=&r,=&r,=*^ZC,Ir,*^ZC,~{memory},~{$1}"(i32* %count, i32 10, i32* %count)
----------------
This hasn't been done.


Repository:
  rL LLVM

http://reviews.llvm.org/D21615





More information about the llvm-commits mailing list