llvm-6502/test/FrontendC/2010-11-16-asmblock.c
Eric Christopher 465c7aa97b Finish propagating %asmtmp->%1 change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135330 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-16 00:26:07 +00:00

17 lines
422 B
C

// RUN: %llvmgcc -S %s -fasm-blocks -o - | FileCheck %s
// XFAIL: *
// XTARGET: x86,i386,i686
// 84282548
void foo()
{
// CHECK: %0 = call i32 asm sideeffect "", "={ecx}"() nounwind
// CHECK: %1 = call i32 asm sideeffect alignstack "sall $$3, $0", "={ecx},{ecx},~{dirflag},~{fpsr},~{flags},~{memory}"(i32 %0) nounwind
// CHECK: store i32 %1, i32* %"%ecx"
__asm {
sal ecx, 3;
add esi, ecx;
add edi, ecx;
}
}