mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
12fb5c667f
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163473 91177308-0d34-0410-b5e6-96231b3b80d8
39 lines
1019 B
LLVM
39 lines
1019 B
LLVM
; RUN: llc < %s -mtriple=x86_64-apple-darwin -march=x86 -mcpu=corei7-avx | FileCheck %s
|
|
|
|
|
|
define <2 x double> @floor_v2f64(<2 x double> %p)
|
|
{
|
|
; CHECK: floor_v2f64
|
|
; CHECK: vroundpd
|
|
%t = call <2 x double> @llvm.floor.v2f64(<2 x double> %p)
|
|
ret <2 x double> %t
|
|
}
|
|
declare <2 x double> @llvm.floor.v2f64(<2 x double> %p)
|
|
|
|
define <4 x float> @floor_v4f32(<4 x float> %p)
|
|
{
|
|
; CHECK: floor_v4f32
|
|
; CHECK: vroundps
|
|
%t = call <4 x float> @llvm.floor.v4f32(<4 x float> %p)
|
|
ret <4 x float> %t
|
|
}
|
|
declare <4 x float> @llvm.floor.v4f32(<4 x float> %p)
|
|
|
|
define <4 x double> @floor_v4f64(<4 x double> %p)
|
|
{
|
|
; CHECK: floor_v4f64
|
|
; CHECK: vroundpd
|
|
%t = call <4 x double> @llvm.floor.v4f64(<4 x double> %p)
|
|
ret <4 x double> %t
|
|
}
|
|
declare <4 x double> @llvm.floor.v4f64(<4 x double> %p)
|
|
|
|
define <8 x float> @floor_v8f32(<8 x float> %p)
|
|
{
|
|
; CHECK: floor_v8f32
|
|
; CHECK: vroundps
|
|
%t = call <8 x float> @llvm.floor.v8f32(<8 x float> %p)
|
|
ret <8 x float> %t
|
|
}
|
|
declare <8 x float> @llvm.floor.v8f32(<8 x float> %p)
|