Changes in directory llvm/test/CFrontend:
2007-04-13-InlineAsmStruct2.c added (r1.1) 2007-04-13-InlineAsmUnion2.c added (r1.1) --- Log message: tests for struct/union as input operands to asm. --- Diffs of the changes: (+16 -0) 2007-04-13-InlineAsmStruct2.c | 9 +++++++++ 2007-04-13-InlineAsmUnion2.c | 7 +++++++ 2 files changed, 16 insertions(+) Index: llvm/test/CFrontend/2007-04-13-InlineAsmStruct2.c diff -c /dev/null llvm/test/CFrontend/2007-04-13-InlineAsmStruct2.c:1.1 *** /dev/null Fri Apr 13 17:54:21 2007 --- llvm/test/CFrontend/2007-04-13-InlineAsmStruct2.c Fri Apr 13 17:54:11 2007 *************** *** 0 **** --- 1,9 ---- + // RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call void asm' + + struct V { short X, Y; }; + int bar() { + struct V bar; + __asm__ volatile("foo %0\n" :: "r"(bar)); + return bar.X; + } + Index: llvm/test/CFrontend/2007-04-13-InlineAsmUnion2.c diff -c /dev/null llvm/test/CFrontend/2007-04-13-InlineAsmUnion2.c:1.1 *** /dev/null Fri Apr 13 17:54:29 2007 --- llvm/test/CFrontend/2007-04-13-InlineAsmUnion2.c Fri Apr 13 17:54:11 2007 *************** *** 0 **** --- 1,7 ---- + // RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call void asm' + + union U { int x; char* p; }; + void foo() { + union U bar; + __asm__ volatile("foo %0\n" :: "r"(bar)); + } _______________________________________________ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits