mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-30 17:33:24 +00:00
Test for llvm-gcc patch 119392.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119393 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ac139f19d9
commit
e8ff69fcb5
16
test/FrontendC/2010-11-16-asmblock.c
Normal file
16
test/FrontendC/2010-11-16-asmblock.c
Normal file
@ -0,0 +1,16 @@
|
||||
// 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user