1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=i686-unknown | FileCheck %s
3 ; RUN: llc < %s -mtriple=i686-unknown -mattr=sse2 | FileCheck %s --check-prefix=SSE2
5 define i32 @testmsws_builtin(float %x) {
6 ; CHECK-LABEL: testmsws_builtin:
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: jmp lrintf # TAILCALL
10 ; SSE2-LABEL: testmsws_builtin:
11 ; SSE2: # %bb.0: # %entry
12 ; SSE2-NEXT: jmp lrintf # TAILCALL
14 %0 = tail call i32 @llvm.lrint.i32.f32(float %x)
18 define i32 @testmswd_builtin(double %x) {
19 ; CHECK-LABEL: testmswd_builtin:
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: jmp lrint # TAILCALL
23 ; SSE2-LABEL: testmswd_builtin:
24 ; SSE2: # %bb.0: # %entry
25 ; SSE2-NEXT: jmp lrint # TAILCALL
27 %0 = tail call i32 @llvm.lrint.i32.f64(double %x)
31 declare i32 @llvm.lrint.i32.f32(float) nounwind readnone
32 declare i32 @llvm.lrint.i32.f64(double) nounwind readnone