Skip to content

Commit 8bb2eca

Browse files
committed
Changes to repair rebase
1 parent 82e4ef3 commit 8bb2eca

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+134
-169
lines changed

clang/test/CodeGen/AArch64/neon-intrinsics-constrained.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ float64x1_t test_vrndx_f64(float64x1_t a) {
792792
// COMMON-LABEL: test_vrnd_f64
793793
// COMMONIR: [[TMP0:%.*]] = bitcast <1 x double> %a to <8 x i8>
794794
// UNCONSTRAINED: [[VRNDZ1_I:%.*]] = call <1 x double> @llvm.trunc.v1f64(<1 x double> %a)
795-
// CONSTRAINED: [[VRNDZ1_I:%.*]] = call <1 x double> @llvm.trunc.v1f64(<1 x double> %a) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
795+
// CONSTRAINED: [[VRNDZ1_I:%.*]] = call <1 x double> @llvm.trunc.v1f64(<1 x double> %a) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
796796
// COMMONIR: ret <1 x double> [[VRNDZ1_I]]
797797
float64x1_t test_vrnd_f64(float64x1_t a) {
798798
return vrnd_f64(a);

clang/test/CodeGen/AArch64/v8.2a-fp16-intrinsics-constrained.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ uint64_t test_vcvth_u64_f16 (float16_t a) {
150150

151151
// COMMON-LABEL: test_vrndh_f16
152152
// UNCONSTRAINED: [[RND:%.*]] = call half @llvm.trunc.f16(half %a)
153-
// CONSTRAINED: [[RND:%.*]] = call half @llvm.trunc.f16(half %a) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
153+
// CONSTRAINED: [[RND:%.*]] = call half @llvm.trunc.f16(half %a) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
154154
// COMMONIR: ret half [[RND]]
155155
float16_t test_vrndh_f16(float16_t a) {
156156
return vrndh_f16(a);

clang/test/CodeGen/PowerPC/builtins-ppc-fpconstrained.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ void test_float(void) {
8585
vf = __builtin_vsx_xvrspiz(vf);
8686
// CHECK-LABEL: try-xvrspiz
8787
// CHECK-UNCONSTRAINED: @llvm.trunc.v4f32(<4 x float> %{{.*}})
88-
// CHECK-CONSTRAINED: @llvm.trunc.v4f32(<4 x float> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
88+
// CHECK-CONSTRAINED: @llvm.trunc.v4f32(<4 x float> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
8989
// CHECK-ASM: xvrspiz
9090

9191
vd = __builtin_vsx_xvrdpiz(vd);
9292
// CHECK-LABEL: try-xvrdpiz
9393
// CHECK-UNCONSTRAINED: @llvm.trunc.v2f64(<2 x double> %{{.*}})
94-
// CHECK-CONSTRAINED: @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR]] [ "fpe.except"(metadata !"strict") ]
94+
// CHECK-CONSTRAINED: @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR]] [ "fp.except"(metadata !"strict") ]
9595
// CHECK-ASM: xvrdpiz
9696

9797
vf = __builtin_vsx_xvmaddasp(vf, vf, vf);

clang/test/CodeGen/SystemZ/builtins-systemz-vector-constrained.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void test_float(void) {
4747
vd = __builtin_s390_vfidb(vd, 4, 4);
4848
// CHECK: call <2 x double> @llvm.experimental.constrained.roundeven.v2f64(<2 x double> %{{.*}})
4949
vd = __builtin_s390_vfidb(vd, 4, 5);
50-
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
50+
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
5151
vd = __builtin_s390_vfidb(vd, 4, 6);
5252
// CHECK: call <2 x double> @llvm.experimental.constrained.ceil.v2f64(<2 x double> %{{.*}})
5353
vd = __builtin_s390_vfidb(vd, 4, 7);

clang/test/CodeGen/SystemZ/builtins-systemz-vector2-constrained.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void test_float(void) {
6262
vf = __builtin_s390_vfisb(vf, 4, 4);
6363
// CHECK: call <4 x float> @llvm.experimental.constrained.roundeven.v4f32(<4 x float> %{{.*}}, metadata !{{.*}})
6464
vf = __builtin_s390_vfisb(vf, 4, 5);
65-
// CHECK: call <4 x float> @llvm.trunc.v4f32(<4 x float> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
65+
// CHECK: call <4 x float> @llvm.trunc.v4f32(<4 x float> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
6666
vf = __builtin_s390_vfisb(vf, 4, 6);
6767
// CHECK: call <4 x float> @llvm.experimental.constrained.ceil.v4f32(<4 x float> %{{.*}}, metadata !{{.*}})
6868
vf = __builtin_s390_vfisb(vf, 4, 7);

clang/test/CodeGen/SystemZ/builtins-systemz-zvector-constrained.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,10 @@ void test_float(void) {
303303
// CHECK: call <2 x double> @llvm.experimental.constrained.floor.v2f64(<2 x double> %{{.*}}, metadata !{{.*}})
304304
// CHECK-ASM: vfidb %{{.*}}, %{{.*}}, 4, 7
305305
vd = vec_roundz(vd);
306-
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
306+
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
307307
// CHECK-ASM: vfidb %{{.*}}, %{{.*}}, 4, 5
308308
vd = vec_trunc(vd);
309-
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR]] [ "fpe.except"(metadata !"strict") ]
309+
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR]] [ "fp.except"(metadata !"strict") ]
310310
// CHECK-ASM: vfidb %{{.*}}, %{{.*}}, 4, 5
311311
vd = vec_roundc(vd);
312312
// CHECK: call <2 x double> @llvm.experimental.constrained.nearbyint.v2f64(<2 x double> %{{.*}}, metadata !{{.*}})

clang/test/CodeGen/SystemZ/builtins-systemz-zvector2-constrained.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,16 +495,16 @@ void test_float(void) {
495495
// CHECK-ASM: vfidb %{{.*}}, %{{.*}}, 4, 7
496496

497497
vf = vec_roundz(vf);
498-
// CHECK: call <4 x float> @llvm.trunc.v4f32(<4 x float> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
498+
// CHECK: call <4 x float> @llvm.trunc.v4f32(<4 x float> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
499499
// CHECK-ASM: vfisb %{{.*}}, %{{.*}}, 4, 5
500500
vf = vec_trunc(vf);
501-
// CHECK: call <4 x float> @llvm.trunc.v4f32(<4 x float> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
501+
// CHECK: call <4 x float> @llvm.trunc.v4f32(<4 x float> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
502502
// CHECK-ASM: vfisb %{{.*}}, %{{.*}}, 4, 5
503503
vd = vec_roundz(vd);
504-
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
504+
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
505505
// CHECK-ASM: vfidb %{{.*}}, %{{.*}}, 4, 5
506506
vd = vec_trunc(vd);
507-
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
507+
// CHECK: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
508508
// CHECK-ASM: vfidb %{{.*}}, %{{.*}}, 4, 5
509509

510510
vf = vec_roundc(vf);

clang/test/CodeGen/arm64-vrnd-constrained.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
float64x2_t rnd5(float64x2_t a) { return vrndq_f64(a); }
1515
// COMMON-LABEL: rnd5
1616
// UNCONSTRAINED: call <2 x double> @llvm.trunc.v2f64(<2 x double>
17-
// CONSTRAINED: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
17+
// CONSTRAINED: call <2 x double> @llvm.trunc.v2f64(<2 x double> %{{.*}}) #[[ATTR:[0-9]+]] [ "fp.except"(metadata !"strict") ]
1818
// CHECK-ASM: frintz.2d v{{[0-9]+}}, v{{[0-9]+}}
1919

2020
float64x2_t rnd13(float64x2_t a) { return vrndmq_f64(a); }

clang/test/CodeGen/constrained-math-builtins.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ __builtin_atan2(f,f); __builtin_atan2f(f,f); __builtin_atan2l(f,f);
242242

243243
__builtin_trunc(f); __builtin_truncf(f); __builtin_truncl(f); __builtin_truncf128(f);
244244

245-
// CHECK: call double @llvm.trunc.f64(double %{{.*}}) #[[ATTR_CALL:[0-9]+]] [ "fpe.except"(metadata !"strict") ]
246-
// CHECK: call float @llvm.trunc.f32(float %{{.*}}) #[[ATTR_CALL]] [ "fpe.except"(metadata !"strict") ]
247-
// CHECK: call x86_fp80 @llvm.trunc.f80(x86_fp80 %{{.*}}) #[[ATTR_CALL]] [ "fpe.except"(metadata !"strict") ]
248-
// CHECK: call fp128 @llvm.trunc.f128(fp128 %{{.*}}) #[[ATTR_CALL]] [ "fpe.except"(metadata !"strict") ]
245+
// CHECK: call double @llvm.trunc.f64(double %{{.*}}) #[[ATTR_CALL:[0-9]+]] [ "fp.except"(metadata !"strict") ]
246+
// CHECK: call float @llvm.trunc.f32(float %{{.*}}) #[[ATTR_CALL]] [ "fp.except"(metadata !"strict") ]
247+
// CHECK: call x86_fp80 @llvm.trunc.f80(x86_fp80 %{{.*}}) #[[ATTR_CALL]] [ "fp.except"(metadata !"strict") ]
248+
// CHECK: call fp128 @llvm.trunc.f128(fp128 %{{.*}}) #[[ATTR_CALL]] [ "fp.except"(metadata !"strict") ]
249249
};
250250

251251
// CHECK: declare double @llvm.experimental.constrained.frem.f64(double, double, metadata, metadata)

llvm/docs/LangRef.rst

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -28524,39 +28524,6 @@ This function returns the same values as the libm ``llround`` functions
2852428524
would and handles error conditions in the same way.
2852528525

2852628526

28527-
'``llvm.experimental.constrained.trunc``' Intrinsic
28528-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
28529-
28530-
Syntax:
28531-
"""""""
28532-
28533-
::
28534-
28535-
declare <type>
28536-
@llvm.experimental.constrained.trunc(<type> <op1>,
28537-
metadata <exception behavior>)
28538-
28539-
Overview:
28540-
"""""""""
28541-
28542-
The '``llvm.experimental.constrained.trunc``' intrinsic returns the first
28543-
argument rounded to the nearest integer not larger in magnitude than the
28544-
argument.
28545-
28546-
Arguments:
28547-
""""""""""
28548-
28549-
The first argument and the return value are floating-point numbers of the same
28550-
type.
28551-
28552-
The second argument specifies the exception behavior as described above.
28553-
28554-
Semantics:
28555-
""""""""""
28556-
28557-
This function returns the same values as the libm ``trunc`` functions
28558-
would and handles error conditions in the same way.
28559-
2856028527
.. _int_experimental_noalias_scope_decl:
2856128528

2856228529
'``llvm.experimental.noalias.scope.decl``' Intrinsic

0 commit comments

Comments
 (0)