brintos

brintos / llvm-project-archived public Read only

0
0
Text · 565 B · 7980888 Raw
17 lines · plain
1; RUN: not llc -mtriple=i686-pc-win32 < %s 2>&1 | FileCheck %s2 3; FIXME: This is miscompiled due to our unconditional use of ESI as the base4; pointer.5; XFAIL: *6 7; CHECK: Stack realignment in presence of dynamic stack adjustments is not supported with inline assembly8 9define i32 @foo() {10entry:11  %r = alloca i32, align 1612  store i32 -1, ptr %r, align 1613  call void asm sideeffect "push %esi\0A\09xor %esi, %esi\0A\09mov %esi, $0\0A\09pop %esi", "=*m,~{flags},~{esi},~{esp},~{dirflag},~{fpsr},~{flags}"(ptr %r)14  %0 = load i32, ptr %r, align 1615  ret i32 %016}17