=?utf-8?q?João?= Saffran <[email protected]>,
=?utf-8?q?João?= Saffran <[email protected]>,
=?utf-8?q?João?= Saffran <[email protected]>,
=?utf-8?q?João?= Saffran <[email protected]>,
=?utf-8?q?João?= Saffran <[email protected]>,
=?utf-8?q?João?= Saffran <[email protected]>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/[email protected]>
================
@@ -1,88 +1,108 @@
// RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -triple
dxil-pc-shadermodel6.3-library %s \
-// RUN: -emit-llvm -disable-llvm-passes -o - | \
-// RUN: FileCheck %s --check-prefixes=CHECK
+// RUN: -emit-llvm -o - | \
+// RUN: FileCheck %s --check-prefixes=CHECK -DFNATTRS="hidden noundef
nofpclass(nan inf)"
-// CHECK-LABEL: define hidden noundef nofpclass(nan inf) float
{{.*}}test_exp2_double
-// CHECK: [[EXP2:%.*]] = call reassoc nnan ninf nsz arcp afn float
@llvm.exp2.f32(
-// CHECK: ret float [[EXP2]]
+// CHECK: define [[FNATTRS]] float @_Z16test_exp2_doubled(
+// CHECK: [[CONVI:%.*]] = fptrunc {{.*}} double %{{.*}} to float
+// CHECK: [[V2:%.*]] = call {{.*}} float @llvm.exp2.f32(float [[CONVI]])
----------------
bogner wrote:
As far as I can tell this is testing that we *don't* have a double overload for
`exp2`. This is really just testing standard conversions and nothing to do we
exp2 overloads.
https://github.com/llvm/llvm-project/pull/177495
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits