diff options
author | Chris Lattner <sabre@nondot.org> | 2009-05-03 07:53:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-05-03 07:53:25 +0000 |
commit | 10f221f321a7c4d9dd46cbf718520991c413e96d (patch) | |
tree | 2be8c204adfe343d780fd414ce11c132a944432a /clang/test/CodeGen/asm.c | |
parent | d09551a376811e4bc9afb60f5482f16c9d2edd92 (diff) | |
download | bcm5719-llvm-10f221f321a7c4d9dd46cbf718520991c413e96d.tar.gz bcm5719-llvm-10f221f321a7c4d9dd46cbf718520991c413e96d.zip |
implement support for asm outputs targetting non-simple lvalue destinations
like bitfields. incidentally llvm-gcc crashes on this sort of thing also. :)
llvm-svn: 70675
Diffstat (limited to 'clang/test/CodeGen/asm.c')
-rw-r--r-- | clang/test/CodeGen/asm.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGen/asm.c b/clang/test/CodeGen/asm.c index 757a2740a7d..0e9c7b243fc 100644 --- a/clang/test/CodeGen/asm.c +++ b/clang/test/CodeGen/asm.c @@ -59,3 +59,14 @@ unsigned t11(signed char input) { : "0" (input)); return output; } + + + + +struct S { + int a : 4; +}; + +void test13(struct S *P) { + __asm__("abc %0" : "=r"(P->a) ); +} |