1 ; RUN: llc < %s -mtriple=powerpc64le | FileCheck %s
3 ; CHECK-LABEL: testmsws:
5 define signext i32 @testmsws(float %x) {
7 %0 = tail call i64 @llvm.lround.i64.f32(float %x)
8 %conv = trunc i64 %0 to i32
12 ; CHECK-LABEL: testmsxs:
14 define i64 @testmsxs(float %x) {
16 %0 = tail call i64 @llvm.lround.i64.f32(float %x)
20 ; CHECK-LABEL: testmswd:
22 define signext i32 @testmswd(double %x) {
24 %0 = tail call i64 @llvm.lround.i64.f64(double %x)
25 %conv = trunc i64 %0 to i32
29 ; CHECK-LABEL: testmsxd:
31 define i64 @testmsxd(double %x) {
33 %0 = tail call i64 @llvm.lround.i64.f64(double %x)
37 ; CHECK-LABEL: testmswl:
39 define signext i32 @testmswl(ppc_fp128 %x) {
41 %0 = tail call i64 @llvm.lround.i64.ppcf128(ppc_fp128 %x)
42 %conv = trunc i64 %0 to i32
46 ; CHECK-LABEL: testmsll:
48 define i64 @testmsll(ppc_fp128 %x) {
50 %0 = tail call i64 @llvm.lround.i64.ppcf128(ppc_fp128 %x)
54 declare i64 @llvm.lround.i64.f32(float) nounwind readnone
55 declare i64 @llvm.lround.i64.f64(double) nounwind readnone
56 declare i64 @llvm.lround.i64.ppcf128(ppc_fp128) nounwind readnone