brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · bc77a20 Raw
89 lines · plain
1; RUN: llc < %s -mtriple=powerpc64le | FileCheck %s2; RUN: llc < %s -mtriple=powerpc | FileCheck %s3 4; FIXME: crash "Input type needs to be promoted!"5; define signext i32 @testmswh(half %x) {6; entry:7;   %0 = tail call i64 @llvm.lrint.i64.f16(half %x)8;   %conv = trunc i64 %0 to i329;   ret i32 %conv10; }11 12; define i64 @testmsxh(half %x) {13; entry:14;   %0 = tail call i64 @llvm.lrint.i64.f16(half %x)15;   ret i64 %016; }17 18; CHECK-LABEL: testmsws:19; CHECK:       bl      lrintf20define signext i32 @testmsws(float %x) {21entry:22  %0 = tail call i64 @llvm.lrint.i64.f32(float %x)23  %conv = trunc i64 %0 to i3224  ret i32 %conv25}26 27; CHECK-LABEL: testmsxs:28; CHECK:       bl      lrintf29define i64 @testmsxs(float %x) {30entry:31  %0 = tail call i64 @llvm.lrint.i64.f32(float %x)32  ret i64 %033}34 35; CHECK-LABEL: testmswd:36; CHECK:       bl      lrint37define signext i32 @testmswd(double %x) {38entry:39  %0 = tail call i64 @llvm.lrint.i64.f64(double %x)40  %conv = trunc i64 %0 to i3241  ret i32 %conv42}43 44; CHECK-LABEL: testmsxd:45; CHECK:       bl      lrint46define i64 @testmsxd(double %x) {47entry:48  %0 = tail call i64 @llvm.lrint.i64.f64(double %x)49  ret i64 %050}51 52; CHECK-LABEL: testmswl:53; CHECK:       bl      lrintl54define signext i32 @testmswl(ppc_fp128 %x) {55entry:56  %0 = tail call i64 @llvm.lrint.i64.ppcf128(ppc_fp128 %x)57  %conv = trunc i64 %0 to i3258  ret i32 %conv59}60 61; CHECK-LABEL: testmsll:62; CHECK:       bl      lrintl63define i64 @testmsll(ppc_fp128 %x) {64entry:65  %0 = tail call i64 @llvm.lrint.i64.ppcf128(ppc_fp128 %x)66  ret i64 %067}68 69; CHECK-LABEL: testmswq:70; CHECK:       bl      lrintf12871define signext i32 @testmswq(fp128 %x) {72entry:73  %0 = tail call i64 @llvm.lrint.i64.f128(fp128 %x)74  %conv = trunc i64 %0 to i3275  ret i32 %conv76}77 78; CHECK-LABEL: testmslq:79; CHECK:       bl      lrintf12880define i64 @testmslq(fp128 %x) {81entry:82  %0 = tail call i64 @llvm.lrint.i64.f128(fp128 %x)83  ret i64 %084}85 86declare i64 @llvm.lrint.i64.f32(float) nounwind readnone87declare i64 @llvm.lrint.i64.f64(double) nounwind readnone88declare i64 @llvm.lrint.i64.ppcf128(ppc_fp128) nounwind readnone89