blob: 04b285e6866cef7e546a4ae2ebdc031740e4c89b [file] [log] [blame]
Eric Christopherb0257342011-07-26 21:42:32 +00001// RUN: %clang_cc1 %s -emit-llvm -O1 -o -
NAKAMURA Takumib774d732012-09-12 10:45:40 +00002// REQUIRES: LP64
Eric Christopherb0257342011-07-26 21:42:32 +00003
4typedef long intptr_t;
5int test(void *b) {
6 intptr_t a;
7 __asm__ __volatile__ ("%0 %1 " : "=r" (a): "0" (b));
8 return a;
9}