2019-05-16 15:15:27 +02:00
|
|
|
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
2020-11-16 02:44:06 +01:00
|
|
|
; RUN: llc < %s -mtriple=i686-unknown | FileCheck %s
|
|
|
|
; RUN: llc < %s -mtriple=i686-unknown -mattr=sse2 | FileCheck %s
|
|
|
|
; RUN: llc < %s -mtriple=x86_64-unknown | FileCheck %s
|
2019-05-16 15:15:27 +02:00
|
|
|
|
2020-02-02 19:24:35 +01:00
|
|
|
define i32 @testmsws(float %x) {
|
|
|
|
; CHECK-LABEL: testmsws:
|
2019-05-16 15:15:27 +02:00
|
|
|
; CHECK: # %bb.0: # %entry
|
|
|
|
; CHECK-NEXT: jmp lroundf # TAILCALL
|
|
|
|
entry:
|
|
|
|
%0 = tail call i32 @llvm.lround.i32.f32(float %x)
|
|
|
|
ret i32 %0
|
|
|
|
}
|
|
|
|
|
2020-02-02 19:24:35 +01:00
|
|
|
define i32 @testmswd(double %x) {
|
|
|
|
; CHECK-LABEL: testmswd:
|
2019-05-16 15:15:27 +02:00
|
|
|
; CHECK: # %bb.0: # %entry
|
|
|
|
; CHECK-NEXT: jmp lround # TAILCALL
|
|
|
|
entry:
|
|
|
|
%0 = tail call i32 @llvm.lround.i32.f64(double %x)
|
|
|
|
ret i32 %0
|
|
|
|
}
|
|
|
|
|
2020-02-02 19:24:35 +01:00
|
|
|
define i32 @testmsll(x86_fp80 %x) {
|
|
|
|
; CHECK-LABEL: testmsll:
|
|
|
|
; CHECK: # %bb.0: # %entry
|
|
|
|
; CHECK-NEXT: jmp lroundl # TAILCALL
|
|
|
|
entry:
|
|
|
|
%0 = tail call i32 @llvm.lround.i32.f80(x86_fp80 %x)
|
|
|
|
ret i32 %0
|
|
|
|
}
|
|
|
|
|
2019-05-16 15:15:27 +02:00
|
|
|
declare i32 @llvm.lround.i32.f32(float) nounwind readnone
|
|
|
|
declare i32 @llvm.lround.i32.f64(double) nounwind readnone
|
2020-02-02 19:24:35 +01:00
|
|
|
declare i32 @llvm.lround.i32.f80(x86_fp80) nounwind readnone
|