1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2 ; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
4 define i8 @PR108728(i1 %a0) {
5 ; CHECK-LABEL: PR108728:
7 ; CHECK-NEXT: xorl %eax, %eax
9 %sel = select i1 %a0, i8 0, i8 1
10 %not = xor i8 %sel, -1
11 %udiv = udiv i8 1, %not
12 %cnt = tail call i8 @llvm.ctpop.i8(i8 %udiv)