@@ -22,31 +22,28 @@ extern const __constant bool __oclc_wavefrontsize64;
22
22
extern const __constant int __oclc_ISA_version ;
23
23
extern const __constant int __oclc_ABI_version ;
24
24
25
- void kernel device_libs (__global float * status ) {
25
+ void kernel device_libs (__global float * status , float x , float y , float z ) {
26
26
27
27
if (__oclc_finite_only_opt ) status [0 ] = 1.0 ;
28
28
if (__oclc_unsafe_math_opt ) status [1 ] = 1.0 ;
29
- if (__oclc_correctly_rounded_sqrt32 ) status [3 ] = 1.0 ;
30
- if (__oclc_wavefrontsize64 ) status [4 ] = 1.0 ;
31
- if (__oclc_ISA_version ) status [5 ] = 1.0 ;
32
- if (__oclc_ABI_version ) status [6 ] = 1.0 ;
29
+ if (__oclc_correctly_rounded_sqrt32 ) status [2 ] = 1.0 ;
30
+ if (__oclc_wavefrontsize64 ) status [3 ] = 1.0 ;
31
+ if (__oclc_ISA_version ) status [4 ] = 1.0 ;
32
+ if (__oclc_ABI_version ) status [5 ] = 1.0 ;
33
33
34
34
// Math functions to test AMDGPULibCalls Folding optimizations
35
35
// fold_sincos()
36
- float x = 0.25 ;
37
- status [7 ] = sin (x ) + cos (x );
38
- status [8 ] = cos (x ) + sin (x );
36
+ status [6 ] = sin (x ) + cos (x );
37
+ status [7 ] = cos (x ) + sin (x );
39
38
40
39
// fold_rootn()
41
- float y = 725.0 ;
42
- status [9 ] = rootn (y , 3 );
43
- status [10 ] = rootn (y , -1 );
44
- status [11 ] = rootn (y , -2 );
40
+ status [8 ] = rootn (y , 3 );
41
+ status [9 ] = rootn (y , -1 );
42
+ status [10 ] = rootn (y , -2 );
45
43
46
44
// fold_pow()
47
- float z = 12.16 ;
48
- status [12 ] = pow (z , (float ) 0.5 );
49
- status [13 ] = powr (y , (float ) 7.23 );
45
+ status [11 ] = pow (z , (float ) 0.5 );
46
+ status [12 ] = powr (y , (float ) 7.23 );
50
47
51
48
// printf()
52
49
printf ("testy\n" );
0 commit comments