blob: 9258f9ee522eb08bea70dc0d472b974706cf1444 [file] [log] [blame]
Hal Finkel8ec43c62013-08-09 04:13:44 +00001; RUN: llc -mcpu=nehalem -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s
2target 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"
3target triple = "x86_64-unknown-linux-gnu"
4
5declare void @use(<2 x double>)
6
7; CHECK-LABEL: @test
Benjamin Kramerc10563d2014-01-11 21:06:00 +00008; CHECK: callq round
Hal Finkel8ec43c62013-08-09 04:13:44 +00009
10; Function Attrs: nounwind uwtable
11define void @test() {
12entry:
13 %tmp = call <2 x double> @llvm.round.v2f64(<2 x double> undef)
14 call void @use(<2 x double> %tmp)
15 ret void
16}
17
18; Function Attrs: nounwind readonly
19declare <2 x double> @llvm.round.v2f64(<2 x double>) #0
20
21attributes #0 = { nounwind readonly }
22