brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 194f614 Raw
38 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=i686-unknown-unknown -mattr=+avx | FileCheck %s --check-prefix=X863; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=+avx | FileCheck %s --check-prefix=X644 5define <8 x i32> @test(<8 x float> %a, <8 x float> %b) {6; X86-LABEL: test:7; X86:       # %bb.0:8; X86-NEXT:    vaddps %ymm1, %ymm0, %ymm29; X86-NEXT:    vmulps %ymm0, %ymm1, %ymm110; X86-NEXT:    vsubps %ymm2, %ymm1, %ymm311; X86-NEXT:    vcmpltps %ymm1, %ymm0, %ymm012; X86-NEXT:    vcmpltps %ymm3, %ymm2, %ymm113; X86-NEXT:    vandps %ymm1, %ymm0, %ymm014; X86-NEXT:    vandps {{\.?LCPI[0-9]+_[0-9]+}}, %ymm0, %ymm015; X86-NEXT:    retl16;17; X64-LABEL: test:18; X64:       # %bb.0:19; X64-NEXT:    vaddps %ymm1, %ymm0, %ymm220; X64-NEXT:    vmulps %ymm0, %ymm1, %ymm121; X64-NEXT:    vsubps %ymm2, %ymm1, %ymm322; X64-NEXT:    vcmpltps %ymm1, %ymm0, %ymm023; X64-NEXT:    vcmpltps %ymm3, %ymm2, %ymm124; X64-NEXT:    vandps %ymm1, %ymm0, %ymm025; X64-NEXT:    vandps {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %ymm0, %ymm026; X64-NEXT:    retq27 %c1 = fadd <8 x float> %a, %b28 %b1 = fmul <8 x float> %b, %a29 %d  = fsub <8 x float> %b1, %c130 %res1 = fcmp olt <8 x float> %a, %b131 %res2 = fcmp olt <8 x float> %c1, %d32 %andr = and <8 x i1>%res1, %res233 %ex = zext <8 x i1> %andr to <8 x i32>34 ret <8 x i32>%ex35}36 37 38