llvm.org GIT mirror llvm / release_50 test / CodeGen / X86 / pr23664.ll
release_50

Tree @release_50 (Download .tar.gz)

pr23664.ll @release_50raw · history · blame

; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s

define i2 @f(i32 %arg) {
  %trunc = trunc i32 %arg to i1
  %sext = sext i1 %trunc to i2
  %or = or i2 %sext, 1
  ret i2 %or

; CHECK-LABEL: f:
; CHECK:      addb    %dil, %dil
; CHECK-NEXT: orb     $1, %dil
; CHECK-NEXT: movl    %edi, %eax
; CHECK-NEXT: retq
}