[PATCH] D22857: [ARM] Add a test for inline assembly when targeting armv7-windows

Martin Storsjö via cfe-commits cfe-commits at lists.llvm.org
Wed Jul 27 05:53:09 PDT 2016


mstorsjo created this revision.
mstorsjo added a subscriber: cfe-commits.
Herald added subscribers: samparker, rengolin, aemerson.

This test uses an immediate constant, which was previously broken in inline assembly, prior to LLVM r276859.


https://reviews.llvm.org/D22857

Files:
  test/CodeGen/arm-inline-asm-windows.c

Index: test/CodeGen/arm-inline-asm-windows.c
===================================================================
--- /dev/null
+++ test/CodeGen/arm-inline-asm-windows.c
@@ -0,0 +1,8 @@
+// REQUIRES: arm-registered-target
+// RUN: %clang -target armv7-windows -c -o - %s
+
+int t1 (void) {
+  int var;
+  asm("mov %0, #42" : "=r"(var));
+  return var;
+}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22857.65715.patch
Type: text/x-patch
Size: 354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160727/2d68f6ff/attachment.bin>


More information about the cfe-commits mailing list