1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 %s -emit-llvm -O1 -o - 2*f4a2713aSLionel Sambuc // REQUIRES: LP64 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc typedef long intptr_t; test(void * b)5*f4a2713aSLionel Sambucint test(void *b) { 6*f4a2713aSLionel Sambuc intptr_t a; 7*f4a2713aSLionel Sambuc __asm__ __volatile__ ("%0 %1 " : "=r" (a): "0" (b)); 8*f4a2713aSLionel Sambuc return a; 9*f4a2713aSLionel Sambuc } 10