brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · c16e2ad Raw
50 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-unknown-unknown               | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-unknown-unknown             | FileCheck %s --check-prefix=X644 5; This tests interaction between MergeICmp and ExpandMemCmp.6 7%"struct.std::pair" = type { i32, i32 }8 9define zeroext i1 @opeq1(10; X86-LABEL: opeq1:11; X86:       # %bb.0: # %"entry+land.rhs.i"12; X86-NEXT:    movl {{[0-9]+}}(%esp), %eax13; X86-NEXT:    movl {{[0-9]+}}(%esp), %ecx14; X86-NEXT:    movl (%ecx), %edx15; X86-NEXT:    movl 4(%ecx), %ecx16; X86-NEXT:    xorl (%eax), %edx17; X86-NEXT:    xorl 4(%eax), %ecx18; X86-NEXT:    orl %edx, %ecx19; X86-NEXT:    sete %al20; X86-NEXT:    retl21;22; X64-LABEL: opeq1:23; X64:       # %bb.0: # %"entry+land.rhs.i"24; X64-NEXT:    movq (%rdi), %rax25; X64-NEXT:    cmpq (%rsi), %rax26; X64-NEXT:    sete %al27; X64-NEXT:    retq28  ptr nocapture readonly dereferenceable(8) %a,29  ptr nocapture readonly dereferenceable(8) %b) local_unnamed_addr nofree nosync {30entry:31  %0 = load i32, ptr %a, align 432  %1 = load i32, ptr %b, align 433  %cmp.i = icmp eq i32 %0, %134  br i1 %cmp.i, label %land.rhs.i, label %opeq1.exit35 36land.rhs.i:37  %second.i = getelementptr inbounds %"struct.std::pair", ptr %a, i64 0, i32 138  %2 = load i32, ptr %second.i, align 439  %second2.i = getelementptr inbounds %"struct.std::pair", ptr %b, i64 0, i32 140  %3 = load i32, ptr %second2.i, align 441  %cmp3.i = icmp eq i32 %2, %342  br label %opeq1.exit43 44opeq1.exit:45  %4 = phi i1 [ false, %entry ], [ %cmp3.i, %land.rhs.i ]46  ret i1 %447}48 49 50