================
@@ -1,113 +1,130 @@
 // RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -x hlsl -triple \
 // RUN:   dxil-pc-shadermodel6.3-library %s -emit-llvm \
-// RUN:   -o - | FileCheck %s --check-prefixes=CHECK \
-// RUN:   -DTARGET=dx -DFNATTRS="hidden noundef nofpclass(nan inf)"
-// RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -x hlsl -triple \
-// RUN:   spirv-unknown-vulkan-library %s -emit-llvm \
-// RUN:   -o - | FileCheck %s --check-prefixes=CHECK \
-// RUN:   -DTARGET=spv -DFNATTRS="hidden spir_func noundef nofpclass(nan inf)"
+// RUN:   -Wdeprecated-declarations -o - | FileCheck %s
+// RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -x hlsl -triple 
dxil-pc-shadermodel6.3-library %s  \
+// RUN:   -verify -verify-ignore-unexpected=note
 
-// CHECK: define [[FNATTRS]] float @_Z19test_radians_doubled(
+// CHECK-LABEL: test_radians_double
 // CHECK:    [[CONVI:%.*]] = fptrunc {{.*}} double %{{.*}} to float
-// CHECK:    [[HLSLRADIANSI:%.*]] = call {{.*}} float 
@llvm.[[TARGET]].radians.f32(float [[CONVI]])
-// CHECK:    ret float [[HLSLRADIANSI]]
+// CHECK:    [[MUL:%.*]] = fmul reassoc nnan ninf nsz arcp afn float %{{.*}}, 
f0x3C8EFA35
----------------
kmpeng wrote:

Hmm I'd rather not put the comment inline between the CHECKs since it breaks up 
the IR (and it'd repeat a lot of times). But maybe adding a one-liner at the 
top of the test files saying `f0x3C8EFA35`/`1.745610e-02` is `pi / 180` would 
be good?

https://github.com/llvm/llvm-project/pull/215379
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to