1 ; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s 2 3 define i2 @f(i32 %arg) { 4 %trunc = trunc i32 %arg to i1 5 %sext = sext i1 %trunc to i2 6 %or = or i2 %sext, 1 7 ret i2 %or 8 9 ; CHECK-LABEL: f: 10 ; CHECK: addb %dil, %dil 11 ; CHECK-NEXT: orb $1, %dil 12 ; CHECK-NEXT: movb %dil, %al 13 ; CHECK-NEXT: retq 14 } 15