brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 617b485 Raw
45 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=x86_64 < %s | FileCheck %s3 4define void @bool_eq(i1 zeroext %a, i1 zeroext %b, ptr nocapture %c) nounwind {5; CHECK-LABEL: bool_eq:6; CHECK:       # %bb.0: # %entry7; CHECK-NEXT:    xorl %esi, %edi8; CHECK-NEXT:    je .LBB0_29; CHECK-NEXT:  # %bb.1: # %if.end10; CHECK-NEXT:    retq11; CHECK-NEXT:  .LBB0_2: # %if.then12; CHECK-NEXT:    jmpq *%rdx # TAILCALL13entry:14  %0 = xor i1 %a, %b15  br i1 %0, label %if.end, label %if.then16 17if.then:18  tail call void %c() #119  br label %if.end20 21if.end:22  ret void23}24 25define void @bool_ne(i1 zeroext %a, i1 zeroext %b, ptr nocapture %c) nounwind {26; CHECK-LABEL: bool_ne:27; CHECK:       # %bb.0: # %entry28; CHECK-NEXT:    cmpb %sil, %dil29; CHECK-NEXT:    je .LBB1_130; CHECK-NEXT:  # %bb.2: # %if.then31; CHECK-NEXT:    jmpq *%rdx # TAILCALL32; CHECK-NEXT:  .LBB1_1: # %if.end33; CHECK-NEXT:    retq34entry:35  %cmp = xor i1 %a, %b36  br i1 %cmp, label %if.then, label %if.end37 38if.then:39  tail call void %c() #140  br label %if.end41 42if.end:43  ret void44}45