reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33
   34
   35
   36
   37
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=atom | FileCheck %s
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mcpu=atom -filetype=obj -o /dev/null

define void @HUF_writeCTable_wksp()  {
; CHECK-LABEL: HUF_writeCTable_wksp:
; CHECK:       # %bb.0: # %entry
; CHECK-NEXT:    movl $2, %eax
; CHECK-NEXT:    movb $-2, %cl
; CHECK-NEXT:    .p2align 4, 0x90
; CHECK-NEXT:  .LBB0_1: # %for.body
; CHECK-NEXT:    # =>This Inner Loop Header: Depth=1
; CHECK-NEXT:    leal 1(%rcx), %edx
; CHECK-NEXT:    movb %dl, (%rax)
; CHECK-NEXT:    movb %cl, (%rax)
; CHECK-NEXT:    leaq 2(%rax), %rax
; CHECK-NEXT:    addb $-2, %cl
; CHECK-NEXT:    jmp .LBB0_1
entry:
  br label %for.body

for.body:                                         ; preds = %for.body, %entry
  %indvars.iv8 = phi i64 [ 1, %entry ], [ %indvars.iv.next9.1, %for.body ]
  %0 = trunc i64 %indvars.iv8 to i8
  %conv = sub i8 0, %0
  store i8 %conv, i8* undef, align 1
  %indvars.iv.next9 = add nuw nsw i64 %indvars.iv8, 1
  %1 = trunc i64 %indvars.iv.next9 to i8
  %conv.1 = sub i8 0, %1
  %arrayidx.1 = getelementptr inbounds i8, i8* null, i64 %indvars.iv.next9
  store i8 %conv.1, i8* %arrayidx.1, align 1
  %indvars.iv.next9.1 = add nuw nsw i64 %indvars.iv8, 2
  br i1 false, label %for.end, label %for.body

for.end:                                          ; preds = %for.body
  ret void
}