From 34301e09f5dfb840d5cdd5a7167a68cd879da289 Mon Sep 17 00:00:00 2001 From: Matt Pharr Date: Fri, 26 Aug 2011 10:44:46 -0700 Subject: [PATCH] Fix incorrect comment in builtins definitions files. (And all of the places it was cut and pasted to. :-( ). --- builtins-avx-common.ll | 8 ++++---- builtins-avx.ll | 4 ++-- builtins-sse4.ll | 16 ++++++++-------- builtins-sse4x2.ll | 16 ++++++++-------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/builtins-avx-common.ll b/builtins-avx-common.ll index a632c40a..579e471d 100644 --- a/builtins-avx-common.ll +++ b/builtins-avx-common.ll @@ -86,7 +86,7 @@ define internal float @__round_uniform_float(float) nounwind readonly alwaysinli define internal float @__floor_uniform_float(float) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <4 x float> undef, float %0, i32 0 - ; roundps, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundps, round down 0b01 | don't signal precision exceptions 0b1001 = 9 %xr = call <4 x float> @llvm.x86.sse.round.ss(<4 x float> %xi, <4 x float> %xi, i32 9) %rs = extractelement <4 x float> %xr, i32 0 ret float %rs @@ -95,7 +95,7 @@ define internal float @__floor_uniform_float(float) nounwind readonly alwaysinli define internal float @__ceil_uniform_float(float) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <4 x float> undef, float %0, i32 0 - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundps, round up 0b10 | don't signal precision exceptions 0b1010 = 10 %xr = call <4 x float> @llvm.x86.sse.round.ss(<4 x float> %xi, <4 x float> %xi, i32 10) %rs = extractelement <4 x float> %xr, i32 0 ret float %rs @@ -116,7 +116,7 @@ define internal double @__round_uniform_double(double) nounwind readonly alwaysi define internal double @__floor_uniform_double(double) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <2 x double> undef, double %0, i32 0 - ; roundpd, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundpd, round down 0b01 | don't signal precision exceptions 0b1001 = 9 %xr = call <2 x double> @llvm.x86.sse41.round.sd(<2 x double> %xi, <2 x double> %xi, i32 9) %rs = extractelement <2 x double> %xr, i32 0 ret double %rs @@ -125,7 +125,7 @@ define internal double @__floor_uniform_double(double) nounwind readonly alwaysi define internal double @__ceil_uniform_double(double) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <2 x double> undef, double %0, i32 0 - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundpd, round up 0b10 | don't signal precision exceptions 0b1010 = 10 %xr = call <2 x double> @llvm.x86.sse41.round.sd(<2 x double> %xi, <2 x double> %xi, i32 10) %rs = extractelement <2 x double> %xr, i32 0 ret double %rs diff --git a/builtins-avx.ll b/builtins-avx.ll index 91aec080..41089abf 100644 --- a/builtins-avx.ll +++ b/builtins-avx.ll @@ -76,13 +76,13 @@ define internal <8 x float> @__round_varying_float(<8 x float>) nounwind readonl } define internal <8 x float> @__floor_varying_float(<8 x float>) nounwind readonly alwaysinline { - ; roundps, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundps, round down 0b01 | don't signal precision exceptions 0b1001 = 9 %call = call <8 x float> @llvm.x86.avx.round.ps.256(<8 x float> %0, i32 9) ret <8 x float> %call } define internal <8 x float> @__ceil_varying_float(<8 x float>) nounwind readonly alwaysinline { - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundps, round up 0b10 | don't signal precision exceptions 0b1010 = 10 %call = call <8 x float> @llvm.x86.avx.round.ps.256(<8 x float> %0, i32 10) ret <8 x float> %call } diff --git a/builtins-sse4.ll b/builtins-sse4.ll index 3f8d616e..710b48d4 100644 --- a/builtins-sse4.ll +++ b/builtins-sse4.ll @@ -77,7 +77,7 @@ define internal float @__round_uniform_float(float) nounwind readonly alwaysinli } define internal <4 x float> @__floor_varying_float(<4 x float>) nounwind readonly alwaysinline { - ; roundps, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundps, round down 0b01 | don't signal precision exceptions 0b1001 = 9 %call = call <4 x float> @llvm.x86.sse41.round.ps(<4 x float> %0, i32 9) ret <4 x float> %call } @@ -85,14 +85,14 @@ define internal <4 x float> @__floor_varying_float(<4 x float>) nounwind readonl define internal float @__floor_uniform_float(float) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <4 x float> undef, float %0, i32 0 - ; roundps, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundps, round down 0b01 | don't signal precision exceptions 0b1010 = 9 %xr = call <4 x float> @llvm.x86.sse41.round.ss(<4 x float> %xi, <4 x float> %xi, i32 9) %rs = extractelement <4 x float> %xr, i32 0 ret float %rs } define internal <4 x float> @__ceil_varying_float(<4 x float>) nounwind readonly alwaysinline { - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundps, round up 0b10 | don't signal precision exceptions 0b1010 = 10 %call = call <4 x float> @llvm.x86.sse41.round.ps(<4 x float> %0, i32 10) ret <4 x float> %call } @@ -100,7 +100,7 @@ define internal <4 x float> @__ceil_varying_float(<4 x float>) nounwind readonly define internal float @__ceil_uniform_float(float) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <4 x float> undef, float %0, i32 0 - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundps, round up 0b10 | don't signal precision exceptions 0b1010 = 10 %xr = call <4 x float> @llvm.x86.sse41.round.ss(<4 x float> %xi, <4 x float> %xi, i32 10) %rs = extractelement <4 x float> %xr, i32 0 ret float %rs @@ -124,28 +124,28 @@ define internal double @__round_uniform_double(double) nounwind readonly alwaysi } define internal <4 x double> @__floor_varying_double(<4 x double>) nounwind readonly alwaysinline { - ; roundpd, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundpd, round down 0b01 | don't signal precision exceptions 0b1001 = 9 round2to4double(%0, 9) } define internal double @__floor_uniform_double(double) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <2 x double> undef, double %0, i32 0 - ; roundpd, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundpd, round down 0b01 | don't signal precision exceptions 0b1001 = 9 %xr = call <2 x double> @llvm.x86.sse41.round.sd(<2 x double> %xi, <2 x double> %xi, i32 9) %rs = extractelement <2 x double> %xr, i32 0 ret double %rs } define internal <4 x double> @__ceil_varying_double(<4 x double>) nounwind readonly alwaysinline { - ; roundpd, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundpd, round up 0b10 | don't signal precision exceptions 0b1010 = 10 round2to4double(%0, 10) } define internal double @__ceil_uniform_double(double) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <2 x double> undef, double %0, i32 0 - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundps, round up 0b10 | don't signal precision exceptions 0b1010 = 10 %xr = call <2 x double> @llvm.x86.sse41.round.sd(<2 x double> %xi, <2 x double> %xi, i32 10) %rs = extractelement <2 x double> %xr, i32 0 ret double %rs diff --git a/builtins-sse4x2.ll b/builtins-sse4x2.ll index 6fc1b800..536ec3c5 100644 --- a/builtins-sse4x2.ll +++ b/builtins-sse4x2.ll @@ -498,28 +498,28 @@ define internal float @__round_uniform_float(float) nounwind readonly alwaysinli } define internal <8 x float> @__floor_varying_float(<8 x float>) nounwind readonly alwaysinline { - ; roundps, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundps, round down 0b01 | don't signal precision exceptions 0b1001 = 9 round4to8(%0, 9) } define internal float @__floor_uniform_float(float) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <4 x float> undef, float %0, i32 0 - ; roundps, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundps, round down 0b01 | don't signal precision exceptions 0b1001 = 9 %xr = call <4 x float> @llvm.x86.sse41.round.ss(<4 x float> %xi, <4 x float> %xi, i32 9) %rs = extractelement <4 x float> %xr, i32 0 ret float %rs } define internal <8 x float> @__ceil_varying_float(<8 x float>) nounwind readonly alwaysinline { - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundps, round up 0b10 | don't signal precision exceptions 0b1010 = 10 round4to8(%0, 10) } define internal float @__ceil_uniform_float(float) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <4 x float> undef, float %0, i32 0 - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundps, round up 0b10 | don't signal precision exceptions 0b1010 = 10 %xr = call <4 x float> @llvm.x86.sse41.round.ss(<4 x float> %xi, <4 x float> %xi, i32 10) %rs = extractelement <4 x float> %xr, i32 0 ret float %rs @@ -543,28 +543,28 @@ define internal double @__round_uniform_double(double) nounwind readonly alwaysi } define internal <8 x double> @__floor_varying_double(<8 x double>) nounwind readonly alwaysinline { - ; roundpd, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundpd, round down 0b01 | don't signal precision exceptions 0b1001 = 9 round2to8double(%0, 9) } define internal double @__floor_uniform_double(double) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <2 x double> undef, double %0, i32 0 - ; roundpd, round down 0b01 | don't signal precision exceptions 0b1000 = 9 + ; roundpd, round down 0b01 | don't signal precision exceptions 0b1001 = 9 %xr = call <2 x double> @llvm.x86.sse41.round.sd(<2 x double> %xi, <2 x double> %xi, i32 9) %rs = extractelement <2 x double> %xr, i32 0 ret double %rs } define internal <8 x double> @__ceil_varying_double(<8 x double>) nounwind readonly alwaysinline { - ; roundpd, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundpd, round up 0b10 | don't signal precision exceptions 0b1010 = 10 round2to8double(%0, 10) } define internal double @__ceil_uniform_double(double) nounwind readonly alwaysinline { ; see above for round_ss instrinsic discussion... %xi = insertelement <2 x double> undef, double %0, i32 0 - ; roundps, round up 0b10 | don't signal precision exceptions 0b1000 = 10 + ; roundps, round up 0b10 | don't signal precision exceptions 0b1010 = 10 %xr = call <2 x double> @llvm.x86.sse41.round.sd(<2 x double> %xi, <2 x double> %xi, i32 10) %rs = extractelement <2 x double> %xr, i32 0 ret double %rs