blob: 45e58d5fe3d32074b1a7ac1f46b592591fd8c2b8 [file] [edit]
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 < %s | FileCheck %s
define <4 x float> @test_vec_splats_v4f32() {
; CHECK-LABEL: test_vec_splats_v4f32:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: vspltisw 2, 10
; CHECK-NEXT: xvcvsxwsp 34, 34
; CHECK-NEXT: blr
entry:
ret <4 x float> splat (float 1.000000e+01)
}
define <2 x double> @test_vec_splats_v2f64() {
; CHECK-LABEL: test_vec_splats_v2f64:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: vspltisw 2, 10
; CHECK-NEXT: xvcvsxwdp 34, 34
; CHECK-NEXT: blr
entry:
ret <2 x double> splat (double 1.000000e+01)
}