brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.4 KiB · f5d1064 Raw
63 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s3; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s4; RUN: llc < %s -mtriple=powerpc64-unknown-aix -mcpu=pwr9 -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-AIX-645; RUN: llc < %s -mtriple=powerpc-unknown-aix -mcpu=pwr9 -verify-machineinstrs | FileCheck %s --check-prefix=CHECK-AIX-326 7define dso_local signext i32 @test(<4 x i32> %a, <4 x i32> %b, <4 x i32> %c) local_unnamed_addr {8; CHECK-LABEL: test:9; CHECK:       # %bb.0: # %entry10; CHECK-NEXT:    vcmpgtsw. 2, 2, 311; CHECK-NEXT:    bge 6, .LBB0_212; CHECK-NEXT:  # %bb.1: # %land.rhs13; CHECK-NEXT:    vcmpgtsw. 2, 4, 314; CHECK-NEXT:    mfocrf 3, 215; CHECK-NEXT:    rlwinm 3, 3, 25, 31, 3116; CHECK-NEXT:    blr17; CHECK-NEXT:  .LBB0_2:18; CHECK-NEXT:    li 3, 019; CHECK-NEXT:    blr20;21; CHECK-AIX-64-LABEL: test:22; CHECK-AIX-64:       # %bb.0: # %entry23; CHECK-AIX-64-NEXT:    vcmpgtsw. 2, 2, 324; CHECK-AIX-64-NEXT:    bge 6, L..BB0_225; CHECK-AIX-64-NEXT:  # %bb.1: # %land.rhs26; CHECK-AIX-64-NEXT:    vcmpgtsw. 2, 4, 327; CHECK-AIX-64-NEXT:    mfocrf 3, 228; CHECK-AIX-64-NEXT:    rlwinm 3, 3, 25, 31, 3129; CHECK-AIX-64-NEXT:    blr30; CHECK-AIX-64-NEXT:  L..BB0_2:31; CHECK-AIX-64-NEXT:    li 3, 032; CHECK-AIX-64-NEXT:    blr33;34; CHECK-AIX-32-LABEL: test:35; CHECK-AIX-32:       # %bb.0: # %entry36; CHECK-AIX-32-NEXT:    vcmpgtsw. 2, 2, 337; CHECK-AIX-32-NEXT:    bge 6, L..BB0_238; CHECK-AIX-32-NEXT:  # %bb.1: # %land.rhs39; CHECK-AIX-32-NEXT:    vcmpgtsw. 2, 4, 340; CHECK-AIX-32-NEXT:    mfocrf 3, 241; CHECK-AIX-32-NEXT:    rlwinm 3, 3, 25, 31, 3142; CHECK-AIX-32-NEXT:    blr43; CHECK-AIX-32-NEXT:  L..BB0_2:44; CHECK-AIX-32-NEXT:    li 3, 045; CHECK-AIX-32-NEXT:    blr46entry:47  %0 = tail call i32 @llvm.ppc.altivec.vcmpgtsw.p(i32 2, <4 x i32> %a, <4 x i32> %b)48  %tobool.not = icmp eq i32 %0, 049  br i1 %tobool.not, label %land.end, label %land.rhs50 51land.rhs:                                         ; preds = %entry52  %1 = tail call i32 @llvm.ppc.altivec.vcmpgtsw.p(i32 2, <4 x i32> %c, <4 x i32> %b)53  %tobool1 = icmp ne i32 %1, 054  %phi.cast = zext i1 %tobool1 to i3255  br label %land.end56 57land.end:                                         ; preds = %land.rhs, %entry58  %2 = phi i32 [ 0, %entry ], [ %phi.cast, %land.rhs ]59  ret i32 %260}61 62declare i32 @llvm.ppc.altivec.vcmpgtsw.p(i32, <4 x i32>, <4 x i32>)63