[InstCombine] Signed saturation patterns
[llvm-complete.git] / test / CodeGen / X86 / vec_round.ll
blob6bc38400aa34e464ac72ef45458a2d4a9b9d2775
1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mcpu=nehalem -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
3 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
6 declare void @use(<2 x double>)
8 ; Function Attrs: nounwind uwtable
9 define void @test() {
10 ; CHECK-LABEL: test:
11 ; CHECK:       # %bb.0: # %entry
12 ; CHECK-NEXT:    pushq %rax
13 ; CHECK-NEXT:    .cfi_def_cfa_offset 16
14 ; CHECK-NEXT:    callq round
15 ; CHECK-NEXT:    movddup {{.*#+}} xmm0 = xmm0[0,0]
16 ; CHECK-NEXT:    callq use
17 ; CHECK-NEXT:    popq %rax
18 ; CHECK-NEXT:    .cfi_def_cfa_offset 8
19 ; CHECK-NEXT:    retq
20 entry:
21   %tmp = call <2 x double> @llvm.round.v2f64(<2 x double> undef)
22   call void @use(<2 x double> %tmp)
23   ret void
26 ; Function Attrs: nounwind readonly
27 declare <2 x double> @llvm.round.v2f64(<2 x double>) #0
29 attributes #0 = { nounwind readonly }