brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · c3c15e7 Raw
45 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -o - -O0 < %s | FileCheck %s3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"4target triple = "x86_64-unknown-linux-gnu"5 6define void @test1(i32 %x) #0 {7; CHECK-LABEL: test1:8; CHECK:       # %bb.0: # %entry9; CHECK-NEXT:    pushq %rax10; CHECK-NEXT:    cmpl $0, %edi11; CHECK-NEXT:    setne %al12; CHECK-NEXT:    movzbl %al, %edi13; CHECK-NEXT:    andl $1, %edi14; CHECK-NEXT:    callq callee1@PLT15; CHECK-NEXT:    popq %rax16; CHECK-NEXT:    retq17entry:18  %tobool = icmp ne i32 %x, 019  call void @callee1(i1 zeroext %tobool)20  ret void21}22 23define void @test2(i32 %x) #0 {24; CHECK-LABEL: test2:25; CHECK:       # %bb.0: # %entry26; CHECK-NEXT:    pushq %rax27; CHECK-NEXT:    cmpl $0, %edi28; CHECK-NEXT:    setne %al29; CHECK-NEXT:    movzbl %al, %edi30; CHECK-NEXT:    andl $1, %edi31; CHECK-NEXT:    negl %edi32; CHECK-NEXT:    callq callee2@PLT33; CHECK-NEXT:    popq %rax34; CHECK-NEXT:    retq35entry:36  %tobool = icmp ne i32 %x, 037  call void @callee2(i1 signext %tobool)38  ret void39}40 41declare void @callee1(i1 zeroext)42declare void @callee2(i1 signext)43 44attributes #0 = { nounwind "target-cpu"="skylake-avx512" }45