1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=avr -mcpu=atmega328p | FileCheck %s 3 4define i32 @testmsws_builtin(float %x) { 5; CHECK-LABEL: testmsws_builtin: 6; CHECK: ; %bb.0: ; %entry 7; CHECK-NEXT: call lrintf 8; CHECK-NEXT: ret 9entry: 10 %0 = tail call i32 @llvm.lrint.i32.f32(float %x) 11 ret i32 %0 12} 13 14define i32 @testmswd_builtin(double %x) { 15; CHECK-LABEL: testmswd_builtin: 16; CHECK: ; %bb.0: ; %entry 17; CHECK-NEXT: call lrint 18; CHECK-NEXT: ret 19entry: 20 %0 = tail call i32 @llvm.lrint.i32.f64(double %x) 21 ret i32 %0 22} 23 24declare i32 @llvm.lrint.i32.f32(float) nounwind readnone 25declare i32 @llvm.lrint.i32.f64(double) nounwind readnone 26