[llvm-commits] [llvm] r61380 - /llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c

Chris Lattner sabre at nondot.org
Tue Dec 23 10:52:27 PST 2008


Author: lattner
Date: Tue Dec 23 12:52:26 2008
New Revision: 61380

URL: http://llvm.org/viewvc/llvm-project?rev=61380&view=rev
Log:
Testcase to show we can tie together integers and pointers of
the same size.

Added:
    llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c

Added: llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c?rev=61380&view=auto

==============================================================================
--- llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c (added)
+++ llvm/trunk/test/FrontendC/2008-12-23-AsmIntPointerTie.c Tue Dec 23 12:52:26 2008
@@ -0,0 +1,9 @@
+// RUN: %llvmgcc %s -S -emit-llvm -O1 -o - 
+
+#include <stdint.h>
+
+int test(void *b) {
+ intptr_t a;
+ __asm__ __volatile__ ("%0 %1 " : "=r" (a): "0" (b));
+  return a;
+}





More information about the llvm-commits mailing list