1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s
4 ; Make sure that we are zeroing one memory location at a time using xorl and
5 ; not both using XMM registers.
7 define i32 @foo (i64* %so) nounwind uwtable ssp {
10 ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax
11 ; CHECK-NEXT: movl $0, 28(%eax)
12 ; CHECK-NEXT: movl $0, 24(%eax)
13 ; CHECK-NEXT: xorl %ecx, %ecx
14 ; CHECK-NEXT: cmpl 16(%eax), %ecx
15 ; CHECK-NEXT: movl $0, 16(%eax)
16 ; CHECK-NEXT: sbbl 20(%eax), %ecx
17 ; CHECK-NEXT: movl $0, 20(%eax)
18 ; CHECK-NEXT: setl %al
19 ; CHECK-NEXT: movzbl %al, %eax
20 ; CHECK-NEXT: negl %eax
22 %used = getelementptr inbounds i64, i64* %so, i32 3
23 store i64 0, i64* %used, align 8
24 %fill = getelementptr inbounds i64, i64* %so, i32 2
25 %L = load i64, i64* %fill, align 8
26 store i64 0, i64* %fill, align 8
27 %cmp28 = icmp sgt i64 %L, 0
28 %R = sext i1 %cmp28 to i32