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;
+}


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;
+}
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to