1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-26 14:33:02 +02:00
llvm-mirror/test/CodeGen/X86/pr23664.ll

15 lines
326 B
LLVM
Raw Normal View History

; 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: movb %dil, %al
; CHECK-NEXT: retq
}