25 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=x86_64-apple-darwin -O0 | FileCheck %s3 4; Make sure we only use the less significant bit of the value that feeds the5; select. Otherwise, we may account for a non-zero value whereas the6; lsb is zero.7; <rdar://problem/15651765>8 9define i32 @fastisel_select(i1 %exchSub2211_, i1 %trunc_8766) {10; CHECK-LABEL: fastisel_select:11; CHECK: ## %bb.0:12; CHECK-NEXT: movb %sil, %al13; CHECK-NEXT: movb %dil, %dl14; CHECK-NEXT: xorb %al, %dl15; CHECK-NEXT: xorl %eax, %eax16; CHECK-NEXT: movl $1204476887, %ecx ## imm = 0x47CADBD717; CHECK-NEXT: testb $1, %dl18; CHECK-NEXT: cmovnel %ecx, %eax19; CHECK-NEXT: retq20 %shuffleInternal15257_8932 = sub i1 %exchSub2211_, %trunc_876621 %counter_diff1345 = select i1 %shuffleInternal15257_8932, i32 1204476887, i32 022 ret i32 %counter_diff134523}24 25