brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.6 KiB · cc87084 Raw
124 lines · plain
1// RUN: %clang_cc1 -std=hlsl202x -finclude-default-header -x hlsl -triple \2// RUN:   spirv-unknown-vulkan-compute %s -emit-llvm -disable-llvm-passes \3// RUN:   -o - | FileCheck %s --check-prefixes=CHECK4 5// CHECK-LABEL: test_atan_double6// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.atan.f327float test_atan_double ( double p0 ) {8  return atan ( p0 );9}10 11// CHECK-LABEL: test_atan_double212// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.atan.v2f3213float2 test_atan_double2 ( double2 p0 ) {14  return atan ( p0 );15}16 17// CHECK-LABEL: test_atan_double318// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.atan.v3f3219float3 test_atan_double3 ( double3 p0 ) {20  return atan ( p0 );21}22 23// CHECK-LABEL: test_atan_double424// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.atan.v4f3225float4 test_atan_double4 ( double4 p0 ) {26  return atan ( p0 );27}28 29// CHECK-LABEL: test_atan_int30// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.atan.f3231float test_atan_int ( int p0 ) {32  return atan ( p0 );33}34 35// CHECK-LABEL: test_atan_int236// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.atan.v2f3237float2 test_atan_int2 ( int2 p0 ) {38  return atan ( p0 );39}40 41// CHECK-LABEL: test_atan_int342// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.atan.v3f3243float3 test_atan_int3 ( int3 p0 ) {44  return atan ( p0 );45}46 47// CHECK-LABEL: test_atan_int448// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.atan.v4f3249float4 test_atan_int4 ( int4 p0 ) {50  return atan ( p0 );51}52 53// CHECK-LABEL: test_atan_uint54// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.atan.f3255float test_atan_uint ( uint p0 ) {56  return atan ( p0 );57}58 59// CHECK-LABEL: test_atan_uint260// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.atan.v2f3261float2 test_atan_uint2 ( uint2 p0 ) {62  return atan ( p0 );63}64 65// CHECK-LABEL: test_atan_uint366// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.atan.v3f3267float3 test_atan_uint3 ( uint3 p0 ) {68  return atan ( p0 );69}70 71// CHECK-LABEL: test_atan_uint472// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.atan.v4f3273float4 test_atan_uint4 ( uint4 p0 ) {74  return atan ( p0 );75}76 77// CHECK-LABEL: test_atan_int64_t78// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.atan.f3279float test_atan_int64_t ( int64_t p0 ) {80  return atan ( p0 );81}82 83// CHECK-LABEL: test_atan_int64_t284// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.atan.v2f3285float2 test_atan_int64_t2 ( int64_t2 p0 ) {86  return atan ( p0 );87}88 89// CHECK-LABEL: test_atan_int64_t390// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.atan.v3f3291float3 test_atan_int64_t3 ( int64_t3 p0 ) {92  return atan ( p0 );93}94 95// CHECK-LABEL: test_atan_int64_t496// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.atan.v4f3297float4 test_atan_int64_t4 ( int64_t4 p0 ) {98  return atan ( p0 );99}100 101// CHECK-LABEL: test_atan_uint64_t102// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.atan.f32103float test_atan_uint64_t ( uint64_t p0 ) {104  return atan ( p0 );105}106 107// CHECK-LABEL: test_atan_uint64_t2108// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.atan.v2f32109float2 test_atan_uint64_t2 ( uint64_t2 p0 ) {110  return atan ( p0 );111}112 113// CHECK-LABEL: test_atan_uint64_t3114// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.atan.v3f32115float3 test_atan_uint64_t3 ( uint64_t3 p0 ) {116  return atan ( p0 );117}118 119// CHECK-LABEL: test_atan_uint64_t4120// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.atan.v4f32121float4 test_atan_uint64_t4 ( uint64_t4 p0 ) {122  return atan ( p0 );123}124