Changes in directory llvm/test/CFrontend:
2007-04-11-InlineAsmStruct.c added (r1.1) 2007-04-11-InlineAsmUnion.c updated: 1.1 -> 1.2 --- Log message: new testcase. --- Diffs of the changes: (+10 -1) 2007-04-11-InlineAsmStruct.c | 9 +++++++++ 2007-04-11-InlineAsmUnion.c | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) Index: llvm/test/CFrontend/2007-04-11-InlineAsmStruct.c diff -c /dev/null llvm/test/CFrontend/2007-04-11-InlineAsmStruct.c:1.1 *** /dev/null Wed Apr 11 18:45:26 2007 --- llvm/test/CFrontend/2007-04-11-InlineAsmStruct.c Wed Apr 11 18:45:16 2007 *************** *** 0 **** --- 1,9 ---- + // RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call i32 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-11-InlineAsmUnion.c diff -u llvm/test/CFrontend/2007-04-11-InlineAsmUnion.c:1.1 llvm/test/CFrontend/2007-04-11-InlineAsmUnion.c:1.2 --- llvm/test/CFrontend/2007-04-11-InlineAsmUnion.c:1.1 Wed Apr 11 17:36:10 2007 +++ llvm/test/CFrontend/2007-04-11-InlineAsmUnion.c Wed Apr 11 18:45:16 2007 @@ -1,4 +1,4 @@ -// RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call void asm' +// RUN: %llvmgcc %s -S -emit-llvm -o - | grep 'call i32 asm' union U { int x; char* p; }; void foo() { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits