1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-unknown | FileCheck %s --check-prefixes=X86
3 ; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s --check-prefixes=X64
5 define zeroext i1 @PR22473(i8*, i8) {
8 ; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
9 ; X86-NEXT: movb (%eax), %al
10 ; X86-NEXT: cmpb {{[0-9]+}}(%esp), %al
16 ; X64-NEXT: cmpb %sil, (%rdi)
19 %3 = load i8, i8* %0, align 1
20 %4 = icmp eq i8 %3, %1