1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mcpu=pwr8 -mtriple=powerpc64le-unknown-unknown -verify-machineinstrs < %s | FileCheck %s
4 define <4 x float> @truncf32(<4 x float> %a) #0 {
5 ; CHECK-LABEL: truncf32:
7 ; CHECK-NEXT: xvrspiz 34, 34
9 %t0 = fptosi <4 x float> %a to <4 x i32>
10 %t1 = sitofp <4 x i32> %t0 to <4 x float>
14 define <2 x double> @truncf64(<2 x double> %a) #0 {
15 ; CHECK-LABEL: truncf64:
17 ; CHECK-NEXT: xvrdpiz 34, 34
19 %t0 = fptosi <2 x double> %a to <2 x i64>
20 %t1 = sitofp <2 x i64> %t0 to <2 x double>
24 define <4 x float> @truncf32u(<4 x float> %a) #0 {
25 ; CHECK-LABEL: truncf32u:
27 ; CHECK-NEXT: xvrspiz 34, 34
29 %t0 = fptoui <4 x float> %a to <4 x i32>
30 %t1 = uitofp <4 x i32> %t0 to <4 x float>
34 define <2 x double> @truncf64u(<2 x double> %a) #0 {
35 ; CHECK-LABEL: truncf64u:
37 ; CHECK-NEXT: xvrdpiz 34, 34
39 %t0 = fptoui <2 x double> %a to <2 x i64>
40 %t1 = uitofp <2 x i64> %t0 to <2 x double>
44 attributes #0 = { "no-signed-zeros-fp-math"="true" }