1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
6 define i32 @and_1(i8 zeroext %a, i8 zeroext %b, i32 %x) {
9 ; CHECK-NEXT: xorl %eax, %eax
10 ; CHECK-NEXT: testb %dil, %sil
11 ; CHECK-NEXT: cmovnel %edx, %eax
15 %3 = select i1 %2, i32 %x, i32 0
19 define zeroext i1 @and_2(i8 zeroext %a, i8 zeroext %b) {
22 ; CHECK-NEXT: testb %dil, %sil
23 ; CHECK-NEXT: setne %al
30 define i32 @xor_1(i8 zeroext %a, i8 zeroext %b, i32 %x) {
33 ; CHECK-NEXT: xorl %eax, %eax
34 ; CHECK-NEXT: xorb %dil, %sil
35 ; CHECK-NEXT: cmovnel %edx, %eax
39 %3 = select i1 %2, i32 %x, i32 0
43 define zeroext i1 @xor_2(i8 zeroext %a, i8 zeroext %b) {
46 ; CHECK-NEXT: xorb %dil, %sil
47 ; CHECK-NEXT: setne %al