brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 0800373 Raw
44 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- | FileCheck %s3 4@X = weak global i16 0		; <ptr> [#uses=1]5@Y = weak global i16 0		; <ptr> [#uses=1]6 7define void @foo(i32 %N) nounwind {8; CHECK-LABEL: foo:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax11; CHECK-NEXT:    testl %eax, %eax12; CHECK-NEXT:    jle .LBB0_313; CHECK-NEXT:  # %bb.1: # %bb.preheader14; CHECK-NEXT:    xorl %ecx, %ecx15; CHECK-NEXT:    xorl %edx, %edx16; CHECK-NEXT:    .p2align 417; CHECK-NEXT:  .LBB0_2: # %bb18; CHECK-NEXT:    # =>This Inner Loop Header: Depth=119; CHECK-NEXT:    movw %cx, X20; CHECK-NEXT:    movw %dx, Y21; CHECK-NEXT:    incl %ecx22; CHECK-NEXT:    addl $4, %edx23; CHECK-NEXT:    cmpl %ecx, %eax24; CHECK-NEXT:    jne .LBB0_225; CHECK-NEXT:  .LBB0_3: # %return26; CHECK-NEXT:    retl27entry:28	%tmp1019 = icmp sgt i32 %N, 0		; <i1> [#uses=1]29	br i1 %tmp1019, label %bb, label %return30 31bb:		; preds = %bb, %entry32	%i.014.0 = phi i32 [ 0, %entry ], [ %indvar.next, %bb ]		; <i32> [#uses=2]33	%tmp1 = trunc i32 %i.014.0 to i16		; <i16> [#uses=2]34	store volatile i16 %tmp1, ptr @X, align 235	%tmp34 = shl i16 %tmp1, 2		; <i16> [#uses=1]36	store volatile i16 %tmp34, ptr @Y, align 237	%indvar.next = add i32 %i.014.0, 1		; <i32> [#uses=2]38	%exitcond = icmp eq i32 %indvar.next, %N		; <i1> [#uses=1]39	br i1 %exitcond, label %return, label %bb40 41return:		; preds = %bb, %entry42	ret void43}44