diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2010-09-17 15:54:40 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2010-09-17 15:54:40 +0000 | 
| commit | 3d1dcd9bfdb15c49ee34d576a065079ac5c4d29f (patch) | |
| tree | 0bbe07708f7571f8b5291f6d7b96c102b7c99dee /test/CodeGen/asm.c | |
| parent | a0482fa4e7fa27b01184f938097f0666b78016dd (diff) | |
Notes
Diffstat (limited to 'test/CodeGen/asm.c')
| -rw-r--r-- | test/CodeGen/asm.c | 22 | 
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/asm.c b/test/CodeGen/asm.c index 507702887866..eb112858718c 100644 --- a/test/CodeGen/asm.c +++ b/test/CodeGen/asm.c @@ -168,3 +168,25 @@ float t21(long double x) {    // CHECK: call x86_fp80 asm sideeffect "frndint"    // CHECK-NEXT: fptrunc x86_fp80 {{.*}} to float  } + +// <rdar://problem/8348447> - accept 'l' constraint +unsigned char t22(unsigned char a, unsigned char b) { +  unsigned int la = a; +  unsigned int lb = b; +  unsigned int bigres; +  unsigned char res; +  __asm__ ("0:\n1:\n" : [bigres] "=la"(bigres) : [la] "0"(la), [lb] "c"(lb) : +                        "edx", "cc"); +  res = bigres; +  return res; +} + +// <rdar://problem/8348447> - accept 'l' constraint +unsigned char t23(unsigned char a, unsigned char b) { +  unsigned int la = a; +  unsigned int lb = b; +  unsigned char res; +  __asm__ ("0:\n1:\n" : [res] "=la"(res) : [la] "0"(la), [lb] "c"(lb) : +                        "edx", "cc"); +  return res; +}  | 
