1 ; RUN: llc -mtriple=i686-- -no-integrated-as < %s | FileCheck %s
3 declare void @bar(ptr %junk)
5 define i32 @foo(i1 %cond) {
7 %r = alloca i32, align 128
8 store i32 -1, ptr %r, align 128
9 br i1 %cond, label %doit, label %skip
12 call void asm sideeffect "xor %ecx, %ecx\0A\09mov %ecx, $0", "=*m,~{ecx},~{flags}"(ptr elementtype(i32) %r)
14 call void @bar(ptr %junk)
18 %0 = load i32, ptr %r, align 128
24 ; CHECK: andl $-128, %esp
25 ; CHECK: xor %ecx, %ecx
26 ; CHECK-NEXT: mov %ecx, (%esi)
27 ; CHECK: movl (%esi), %eax