mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 08:23:21 +01:00
0cd940f72b
llvm-svn: 119393
17 lines
434 B
C
17 lines
434 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: %asmtmp = call i32 asm sideeffect alignstack "sall $$3, $0", "={ecx},{ecx},~{dirflag},~{fpsr},~{flags},~{memory}"(i32 %0) nounwind
|
|
// CHECK: store i32 %asmtmp, i32* %"%ecx"
|
|
__asm {
|
|
sal ecx, 3;
|
|
add esi, ecx;
|
|
add edi, ecx;
|
|
}
|
|
}
|