|
12 | 12 | // NO_HALF: define noundef float @"?test_frac_half@@YA$halff@$halff@@Z"(
|
13 | 13 | // NO_HALF: %dx.frac = call float @llvm.dx.frac.f32(
|
14 | 14 | // NO_HALF: ret float %dx.frac
|
15 |
| -half test_frac_half ( half p0 ) { |
16 |
| - return frac ( p0 ); |
17 |
| -} |
| 15 | +half test_frac_half(half p0) { return frac(p0); } |
18 | 16 | // NATIVE_HALF: define noundef <2 x half> @
|
19 | 17 | // NATIVE_HALF: %dx.frac = call <2 x half> @llvm.dx.frac.v2f16
|
20 | 18 | // NATIVE_HALF: ret <2 x half> %dx.frac
|
21 | 19 | // NO_HALF: define noundef <2 x float> @
|
22 | 20 | // NO_HALF: %dx.frac = call <2 x float> @llvm.dx.frac.v2f32(
|
23 | 21 | // NO_HALF: ret <2 x float> %dx.frac
|
24 |
| -half2 test_frac_half2 ( half2 p0 ) { |
25 |
| - return frac ( p0 ); |
26 |
| -} |
| 22 | +half2 test_frac_half2(half2 p0) { return frac(p0); } |
27 | 23 | // NATIVE_HALF: define noundef <3 x half> @
|
28 | 24 | // NATIVE_HALF: %dx.frac = call <3 x half> @llvm.dx.frac.v3f16
|
29 | 25 | // NATIVE_HALF: ret <3 x half> %dx.frac
|
30 | 26 | // NO_HALF: define noundef <3 x float> @
|
31 | 27 | // NO_HALF: %dx.frac = call <3 x float> @llvm.dx.frac.v3f32(
|
32 | 28 | // NO_HALF: ret <3 x float> %dx.frac
|
33 |
| -half3 test_frac_half3 ( half3 p0 ) { |
34 |
| - return frac ( p0 ); |
35 |
| -} |
| 29 | +half3 test_frac_half3(half3 p0) { return frac(p0); } |
36 | 30 | // NATIVE_HALF: define noundef <4 x half> @
|
37 | 31 | // NATIVE_HALF: %dx.frac = call <4 x half> @llvm.dx.frac.v4f16
|
38 | 32 | // NATIVE_HALF: ret <4 x half> %dx.frac
|
39 | 33 | // NO_HALF: define noundef <4 x float> @
|
40 | 34 | // NO_HALF: %dx.frac = call <4 x float> @llvm.dx.frac.v4f32(
|
41 | 35 | // NO_HALF: ret <4 x float> %dx.frac
|
42 |
| -half4 test_frac_half4 ( half4 p0 ) { |
43 |
| - return frac ( p0 ); |
44 |
| -} |
| 36 | +half4 test_frac_half4(half4 p0) { return frac(p0); } |
45 | 37 |
|
46 | 38 | // CHECK: define noundef float @
|
47 | 39 | // CHECK: %dx.frac = call float @llvm.dx.frac.f32(
|
48 | 40 | // CHECK: ret float %dx.frac
|
49 |
| -float test_frac_float ( float p0 ) { |
50 |
| - return frac ( p0 ); |
51 |
| -} |
| 41 | +float test_frac_float(float p0) { return frac(p0); } |
52 | 42 | // CHECK: define noundef <2 x float> @
|
53 | 43 | // CHECK: %dx.frac = call <2 x float> @llvm.dx.frac.v2f32
|
54 | 44 | // CHECK: ret <2 x float> %dx.frac
|
55 |
| -float2 test_frac_float2 ( float2 p0 ) { |
56 |
| - return frac ( p0 ); |
57 |
| -} |
| 45 | +float2 test_frac_float2(float2 p0) { return frac(p0); } |
58 | 46 | // CHECK: define noundef <3 x float> @
|
59 | 47 | // CHECK: %dx.frac = call <3 x float> @llvm.dx.frac.v3f32
|
60 | 48 | // CHECK: ret <3 x float> %dx.frac
|
61 |
| -float3 test_frac_float3 ( float3 p0 ) { |
62 |
| - return frac ( p0 ); |
63 |
| -} |
| 49 | +float3 test_frac_float3(float3 p0) { return frac(p0); } |
64 | 50 | // CHECK: define noundef <4 x float> @
|
65 | 51 | // CHECK: %dx.frac = call <4 x float> @llvm.dx.frac.v4f32
|
66 | 52 | // CHECK: ret <4 x float> %dx.frac
|
67 |
| -float4 test_frac_float4 ( float4 p0 ) { |
68 |
| - return frac ( p0 ); |
69 |
| -} |
| 53 | +float4 test_frac_float4(float4 p0) { return frac(p0); } |
0 commit comments