brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · ecad35d Raw
47 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mcpu=pwr8 -mtriple=powerpc64le-unknown-unknown -verify-machineinstrs < %s | FileCheck %s3; RUN: llc -mcpu=pwr8 -mtriple=powerpc64-ibm-aix-xcoff -vec-extabi -verify-machineinstrs < %s | FileCheck %s4 5define <4 x float> @truncf32(<4 x float> %a) #0 {6; CHECK-LABEL: truncf32:7; CHECK:       # %bb.0:8; CHECK-NEXT:    xvrspiz 34, 349; CHECK-NEXT:    blr10  %t0 = fptosi <4 x float> %a to <4 x i32>11  %t1 = sitofp <4 x i32> %t0 to <4 x float>12  ret <4 x float> %t113}14 15define <2 x double> @truncf64(<2 x double> %a) #0 {16; CHECK-LABEL: truncf64:17; CHECK:       # %bb.0:18; CHECK-NEXT:    xvrdpiz 34, 3419; CHECK-NEXT:    blr20  %t0 = fptosi <2 x double> %a to <2 x i64>21  %t1 = sitofp <2 x i64> %t0 to <2 x double>22  ret <2 x double> %t123}24 25define <4 x float> @truncf32u(<4 x float> %a) #0 {26; CHECK-LABEL: truncf32u:27; CHECK:       # %bb.0:28; CHECK-NEXT:    xvrspiz 34, 3429; CHECK-NEXT:    blr30  %t0 = fptoui <4 x float> %a to <4 x i32>31  %t1 = uitofp <4 x i32> %t0 to <4 x float>32  ret <4 x float> %t133}34 35define <2 x double> @truncf64u(<2 x double> %a) #0 {36; CHECK-LABEL: truncf64u:37; CHECK:       # %bb.0:38; CHECK-NEXT:    xvrdpiz 34, 3439; CHECK-NEXT:    blr40  %t0 = fptoui <2 x double> %a to <2 x i64>41  %t1 = uitofp <2 x i64> %t0 to <2 x double>42  ret <2 x double> %t143}44 45attributes #0 = { "no-signed-zeros-fp-math"="true" }46 47