blob: 57061422b8f241c3d58d473b7ac5f295274fc58f [file] [log] [blame]
Duncan Sandsb32d19d2010-11-25 21:24:35 +00001// RUN: %llvmgcc %s -S -O1 -o -
Chris Lattnerc1830612008-12-23 18:52:26 +00002
3#include <stdint.h>
4
5int test(void *b) {
6 intptr_t a;
7 __asm__ __volatile__ ("%0 %1 " : "=r" (a): "0" (b));
8 return a;
9}