brintos

brintos / llvm-project-archived public Read only

0
0
Text · 784 B · 5c42c97 Raw
26 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-- | FileCheck %s3 4; Use an h register, but don't omit the explicit shift for5; non-address use(s).6 7define i32 @foo(ptr %x, i32 %y) nounwind {8; CHECK-LABEL: foo:9; CHECK:       # %bb.0:10; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %ecx11; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax12; CHECK-NEXT:    imull %eax, %eax13; CHECK-NEXT:    movzbl %ah, %eax14; CHECK-NEXT:    movb $77, (%ecx,%eax,8)15; CHECK-NEXT:    shll $3, %eax16; CHECK-NEXT:    retl17 18	%t4 = mul i32 %y, %y19	%t0 = lshr i32 %t4, 8		; <i32> [#uses=1]20	%t1 = and i32 %t0, 255		; <i32> [#uses=2]21  %t2 = shl i32 %t1, 322	%t3 = getelementptr i8, ptr %x, i32 %t2		; <ptr> [#uses=1]23	store i8 77, ptr %t3, align 424	ret i32 %t225}26