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: movl %edi, %eax
10 ; CHECK-NEXT: andl %esi, %eax
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: testl %edi, %esi
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: xorl %esi, %edi
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: xorl %esi, %edi
47 ; CHECK-NEXT: setne %al