Eric Christopher | b025734 | 2011-07-26 21:42:32 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm -O1 -o - |
NAKAMURA Takumi | b774d73 | 2012-09-12 10:45:40 +0000 | [diff] [blame^] | 2 | // REQUIRES: LP64 |
Eric Christopher | b025734 | 2011-07-26 21:42:32 +0000 | [diff] [blame] | 3 | |
4 | typedef long intptr_t; | ||||
5 | int test(void *b) { | ||||
6 | intptr_t a; | ||||
7 | __asm__ __volatile__ ("%0 %1 " : "=r" (a): "0" (b)); | ||||
8 | return a; | ||||
9 | } |