69 lines · plain
1// RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s \2// RUN: -emit-llvm -disable-llvm-passes -o - | \3// RUN: FileCheck %s --check-prefixes=CHECK4 5// CHECK-LABEL: define hidden noundef nofpclass(nan inf) float {{.*}}test_log10_double6// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.log10.f32(7float test_log10_double(double p0) { return log10(p0); }8// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <2 x float> {{.*}}test_log10_double29// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.log10.v2f3210float2 test_log10_double2(double2 p0) { return log10(p0); }11// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <3 x float> {{.*}}test_log10_double312// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.log10.v3f3213float3 test_log10_double3(double3 p0) { return log10(p0); }14// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <4 x float> {{.*}}test_log10_double415// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.log10.v4f3216float4 test_log10_double4(double4 p0) { return log10(p0); }17 18// CHECK-LABEL: define hidden noundef nofpclass(nan inf) float {{.*}}test_log10_int19// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.log10.f32(20float test_log10_int(int p0) { return log10(p0); }21// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <2 x float> {{.*}}test_log10_int222// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.log10.v2f3223float2 test_log10_int2(int2 p0) { return log10(p0); }24// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <3 x float> {{.*}}test_log10_int325// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.log10.v3f3226float3 test_log10_int3(int3 p0) { return log10(p0); }27// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <4 x float> {{.*}}test_log10_int428// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.log10.v4f3229float4 test_log10_int4(int4 p0) { return log10(p0); }30 31// CHECK-LABEL: define hidden noundef nofpclass(nan inf) float {{.*}}test_log10_uint32// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.log10.f32(33float test_log10_uint(uint p0) { return log10(p0); }34// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <2 x float> {{.*}}test_log10_uint235// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.log10.v2f3236float2 test_log10_uint2(uint2 p0) { return log10(p0); }37// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <3 x float> {{.*}}test_log10_uint338// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.log10.v3f3239float3 test_log10_uint3(uint3 p0) { return log10(p0); }40// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <4 x float> {{.*}}test_log10_uint441// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.log10.v4f3242float4 test_log10_uint4(uint4 p0) { return log10(p0); }43 44// CHECK-LABEL: define hidden noundef nofpclass(nan inf) float {{.*}}test_log10_int64_t45// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.log10.f32(46float test_log10_int64_t(int64_t p0) { return log10(p0); }47// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <2 x float> {{.*}}test_log10_int64_t248// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.log10.v2f3249float2 test_log10_int64_t2(int64_t2 p0) { return log10(p0); }50// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <3 x float> {{.*}}test_log10_int64_t351// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.log10.v3f3252float3 test_log10_int64_t3(int64_t3 p0) { return log10(p0); }53// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <4 x float> {{.*}}test_log10_int64_t454// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.log10.v4f3255float4 test_log10_int64_t4(int64_t4 p0) { return log10(p0); }56 57// CHECK-LABEL: define hidden noundef nofpclass(nan inf) float {{.*}}test_log10_uint64_t58// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.log10.f32(59float test_log10_uint64_t(uint64_t p0) { return log10(p0); }60// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <2 x float> {{.*}}test_log10_uint64_t261// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.log10.v2f3262float2 test_log10_uint64_t2(uint64_t2 p0) { return log10(p0); }63// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <3 x float> {{.*}}test_log10_uint64_t364// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.log10.v3f3265float3 test_log10_uint64_t3(uint64_t3 p0) { return log10(p0); }66// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <4 x float> {{.*}}test_log10_uint64_t467// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.log10.v4f3268float4 test_log10_uint64_t4(uint64_t4 p0) { return log10(p0); }69