brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 64f8f98 Raw
31 lines · plain
1; RUN: llc -verify-machineinstrs -mcpu=pwr9  < %s -mtriple=powerpc64le-unknown-linux-gnu -mattr=-power9-vector | FileCheck -check-prefixes=CHECK-PWR8,CHECK-ALL %s 2; RUN: llc -verify-machineinstrs -mcpu=pwr8  < %s -mtriple=powerpc64le-unknown-linux-gnu -mattr=+power9-vector | FileCheck -check-prefixes=CHECK-PWR9,CHECK-ALL %s 3 4declare <2 x double> @__cbrtd2(<2 x double>)5declare <4 x float> @__cbrtf4(<4 x float>)6 7; cbrt without the power9-vector attribute on the caller8; check massv calls are correctly targeted for Power89define <2 x double>  @cbrt_f64_massv_nopwr9(<2 x double> %opnd) #0 {10; CHECK-ALL-LABEL: @cbrt_f64_massv_nopwr911; CHECK-PWR8: bl __cbrtd2_P812; CHECK-NOT: bl __cbrtd2_massv13; CHECK-ALL: blr14;15  %1 = call <2 x double> @__cbrtd2(<2 x double> %opnd)16  ret <2 x double> %1 17}18 19; cbrt with the power9-vector attribute on the caller20; check massv calls are correctly targeted for Power921define <2 x double>  @cbrt_f64_massv_pwr9(<2 x double> %opnd) #1 {22; CHECK-ALL-LABEL: @cbrt_f64_massv_pwr923; CHECK-PWR9: bl __cbrtd2_P924; CHECK-NOT: bl __cbrtd2_massv25; CHECK-NOT: bl __cbrtd2_P826; CHECK-ALL: blr27;28  %1 = call <2 x double> @__cbrtd2(<2 x double> %opnd)29  ret <2 x double> %1 30}31