brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.9 KiB · b11ded8 Raw
41 lines · plain
1// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s \2// RUN:  -fnative-half-type -fnative-int16-type -emit-llvm -disable-llvm-passes -o - | \3// RUN:  FileCheck %s --check-prefixes=CHECK,NATIVE_HALF4// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.3-library %s \5// RUN:  -emit-llvm -disable-llvm-passes -o - | \6// RUN:  FileCheck %s --check-prefixes=CHECK,NO_HALF7 8// NATIVE_HALF-LABEL: define hidden noundef nofpclass(nan inf) half @_Z13test_pow_half9// NATIVE_HALF: call reassoc nnan ninf nsz arcp afn half @llvm.pow.f16(10// NO_HALF-LABEL: define hidden noundef nofpclass(nan inf) float @_Z13test_pow_half11// NO_HALF: call reassoc nnan ninf nsz arcp afn float @llvm.pow.f32(12half test_pow_half(half p0, half p1) { return pow(p0, p1); }13// NATIVE_HALF-LABEL: define hidden noundef nofpclass(nan inf) <2 x half> @_Z14test_pow_half214// NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <2 x half> @llvm.pow.v2f1615// NO_HALF-LABEL: define hidden noundef nofpclass(nan inf) <2 x float> @_Z14test_pow_half216// NO_HALF: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.pow.v2f32(17half2 test_pow_half2(half2 p0, half2 p1) { return pow(p0, p1); }18// NATIVE_HALF-LABEL: define hidden noundef nofpclass(nan inf) <3 x half> @_Z14test_pow_half319// NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <3 x half> @llvm.pow.v3f1620// NO_HALF-LABEL: define hidden noundef nofpclass(nan inf) <3 x float> @_Z14test_pow_half321// NO_HALF: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.pow.v3f32(22half3 test_pow_half3(half3 p0, half3 p1) { return pow(p0, p1); }23// NATIVE_HALF-LABEL: define hidden noundef nofpclass(nan inf) <4 x half> @_Z14test_pow_half424// NATIVE_HALF: call reassoc nnan ninf nsz arcp afn <4 x half> @llvm.pow.v4f1625// NO_HALF-LABEL: define hidden noundef nofpclass(nan inf) <4 x float> @_Z14test_pow_half426// NO_HALF: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.pow.v4f32(27half4 test_pow_half4(half4 p0, half4 p1) { return pow(p0, p1); }28 29// CHECK-LABEL: define hidden noundef nofpclass(nan inf) float @_Z14test_pow_float30// CHECK: call reassoc nnan ninf nsz arcp afn float @llvm.pow.f32(31float test_pow_float(float p0, float p1) { return pow(p0, p1); }32// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <2 x float> @_Z15test_pow_float233// CHECK: call reassoc nnan ninf nsz arcp afn <2 x float> @llvm.pow.v2f3234float2 test_pow_float2(float2 p0, float2 p1) { return pow(p0, p1); }35// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <3 x float> @_Z15test_pow_float336// CHECK: call reassoc nnan ninf nsz arcp afn <3 x float> @llvm.pow.v3f3237float3 test_pow_float3(float3 p0, float3 p1) { return pow(p0, p1); }38// CHECK-LABEL: define hidden noundef nofpclass(nan inf) <4 x float> @_Z15test_pow_float439// CHECK: call reassoc nnan ninf nsz arcp afn <4 x float> @llvm.pow.v4f3240float4 test_pow_float4(float4 p0, float4 p1) { return pow(p0, p1); }41