xref: /llvm-project/llvm/test/CodeGen/X86/legalize-shift.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2; RUN: llc < %s -mtriple=i686-unknown-unknown | FileCheck %s --check-prefix=X86
3; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=X64
4
5define void @PR36250() nounwind {
6; X86-LABEL: PR36250:
7; X86:       # %bb.0:
8; X86-NEXT:    cmpl $0, (%eax)
9; X86-NEXT:    sete (%eax)
10; X86-NEXT:    retl
11;
12; X64-LABEL: PR36250:
13; X64:       # %bb.0:
14; X64-NEXT:    cmpq $0, (%rax)
15; X64-NEXT:    sete (%rax)
16; X64-NEXT:    retq
17   %1 = load i448, ptr undef
18   %2 = sub i448 0, %1
19   %3 = icmp eq i448 %1, %2
20   store i1 %3, ptr undef
21   ret void
22}
23