32 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=wasm32 | FileCheck %s3 4define i64 @testmsxs_builtin(float %x) {5; CHECK-LABEL: testmsxs_builtin:6; CHECK: .functype testmsxs_builtin (f32) -> (i64)7; CHECK-NEXT: # %bb.0: # %entry8; CHECK-NEXT: local.get 09; CHECK-NEXT: call llroundf10; CHECK-NEXT: # fallthrough-return11; CHECK-NEXT: end_function12entry:13 %0 = tail call i64 @llvm.llround.f32(float %x)14 ret i64 %015}16 17define i64 @testmsxd_builtin(double %x) {18; CHECK-LABEL: testmsxd_builtin:19; CHECK: .functype testmsxd_builtin (f64) -> (i64)20; CHECK-NEXT: # %bb.0: # %entry21; CHECK-NEXT: local.get 022; CHECK-NEXT: call llround23; CHECK-NEXT: # fallthrough-return24; CHECK-NEXT: end_function25entry:26 %0 = tail call i64 @llvm.llround.f64(double %x)27 ret i64 %028}29 30declare i64 @llvm.llround.f32(float) nounwind readnone31declare i64 @llvm.llround.f64(double) nounwind readnone32