31 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s3 4; Make sure that we are zeroing one memory location at a time using xorl and5; not both using XMM registers.6 7define i32 @foo (ptr %so) nounwind uwtable ssp {8; CHECK-LABEL: foo:9; CHECK: # %bb.0:10; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax11; CHECK-NEXT: movl $0, 28(%eax)12; CHECK-NEXT: movl $0, 24(%eax)13; CHECK-NEXT: xorl %ecx, %ecx14; CHECK-NEXT: cmpl 16(%eax), %ecx15; CHECK-NEXT: movl $0, 16(%eax)16; CHECK-NEXT: sbbl 20(%eax), %ecx17; CHECK-NEXT: movl $0, 20(%eax)18; CHECK-NEXT: setl %al19; CHECK-NEXT: movzbl %al, %eax20; CHECK-NEXT: negl %eax21; CHECK-NEXT: retl22 %used = getelementptr inbounds i64, ptr %so, i32 323 store i64 0, ptr %used, align 824 %fill = getelementptr inbounds i64, ptr %so, i32 225 %L = load i64, ptr %fill, align 826 store i64 0, ptr %fill, align 827 %cmp28 = icmp sgt i64 %L, 028 %R = sext i1 %cmp28 to i3229 ret i32 %R30}31