summaryrefslogtreecommitdiff
path: root/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential
diff options
context:
space:
mode:
Diffstat (limited to 'tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential')
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec2.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec3.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec4.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec2.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec3.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec4.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec2.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec3.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec4.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec2.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec3.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec4.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec2.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec3.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec4.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec2.vert18
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec3.vert18
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec4.vert18
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow.vert18
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec2.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec3.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec4.vert17
-rw-r--r--tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt.vert17
28 files changed, 480 insertions, 0 deletions
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec2.vert
new file mode 100644
index 000000000..da4447648
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec2.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with exp() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec2 test() {
+
+ float16_t x = 0.999HF;
+
+ return exp(f16vec2(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec3.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec3.vert
new file mode 100644
index 000000000..d6ba70cda
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec3.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with exp() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec3 test() {
+
+ float16_t x = 0.999HF;
+
+ return exp(f16vec3(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec4.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec4.vert
new file mode 100644
index 000000000..76b49a919
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp-f16vec4.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with exp() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec4 test() {
+
+ float16_t x = 0.999HF;
+
+ return exp(f16vec4(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp.vert
new file mode 100644
index 000000000..9f7f9d8e5
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with exp() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+float16_t test() {
+
+ float16_t x = 0.999HF;
+
+ return exp(x);
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec2.vert
new file mode 100644
index 000000000..95f200663
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec2.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with exp2() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec2 test() {
+
+ float16_t x = 0.999HF;
+
+ return exp2(f16vec2(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec3.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec3.vert
new file mode 100644
index 000000000..dbcce88a4
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec3.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with exp2() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec3 test() {
+
+ float16_t x = 0.999HF;
+
+ return exp2(f16vec3(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec4.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec4.vert
new file mode 100644
index 000000000..483b98e80
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2-f16vec4.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with exp2() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec4 test() {
+
+ float16_t x = 0.999HF;
+
+ return exp2(f16vec4(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2.vert
new file mode 100644
index 000000000..3967d97f9
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/exp2.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with exp2() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+float16_t test() {
+
+ float16_t x = 0.999HF;
+
+ return exp2(x);
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec2.vert
new file mode 100644
index 000000000..2c951abda
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec2.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with inversesqrt() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec2 test() {
+
+ float16_t x = 0.999HF;
+
+ return inversesqrt(f16vec2(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec3.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec3.vert
new file mode 100644
index 000000000..2fb4f159b
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec3.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with inversesqrt() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec3 test() {
+
+ float16_t x = 0.999HF;
+
+ return inversesqrt(f16vec3(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec4.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec4.vert
new file mode 100644
index 000000000..cd52dd2ce
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt-f16vec4.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with inversesqrt() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec4 test() {
+
+ float16_t x = 0.999HF;
+
+ return inversesqrt(f16vec4(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt.vert
new file mode 100644
index 000000000..b62f641c3
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/inversesqrt.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with inversesqrt() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+float16_t test() {
+
+ float16_t x = 0.999HF;
+
+ return inversesqrt(x);
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec2.vert
new file mode 100644
index 000000000..93cdb4cb4
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec2.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with log() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec2 test() {
+
+ float16_t x = 0.999HF;
+
+ return log(f16vec2(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec3.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec3.vert
new file mode 100644
index 000000000..f2fb1b549
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec3.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with log() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec3 test() {
+
+ float16_t x = 0.999HF;
+
+ return log(f16vec3(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec4.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec4.vert
new file mode 100644
index 000000000..6af05793e
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log-f16vec4.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with log() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec4 test() {
+
+ float16_t x = 0.999HF;
+
+ return log(f16vec4(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log.vert
new file mode 100644
index 000000000..ebb7a0299
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with log() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+float16_t test() {
+
+ float16_t x = 0.999HF;
+
+ return log(x);
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec2.vert
new file mode 100644
index 000000000..cce6db214
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec2.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with log2() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec2 test() {
+
+ float16_t x = 0.999HF;
+
+ return log2(f16vec2(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec3.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec3.vert
new file mode 100644
index 000000000..1f0306c98
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec3.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with log2() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec3 test() {
+
+ float16_t x = 0.999HF;
+
+ return log2(f16vec3(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec4.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec4.vert
new file mode 100644
index 000000000..358dc4696
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2-f16vec4.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with log2() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec4 test() {
+
+ float16_t x = 0.999HF;
+
+ return log2(f16vec4(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2.vert
new file mode 100644
index 000000000..827501f87
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/log2.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with log2() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+float16_t test() {
+
+ float16_t x = 0.999HF;
+
+ return log2(x);
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec2.vert
new file mode 100644
index 000000000..cd15c8e67
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec2.vert
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with pow() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec2 test() {
+
+ float16_t x = 0.999HF;
+ float16_t y = 0.567HF;
+
+ return pow(f16vec2(x), f16vec2(y));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec3.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec3.vert
new file mode 100644
index 000000000..8080ecfa0
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec3.vert
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with pow() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec3 test() {
+
+ float16_t x = 0.999HF;
+ float16_t y = 0.567HF;
+
+ return pow(f16vec3(x), f16vec3(y));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec4.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec4.vert
new file mode 100644
index 000000000..6832d3fba
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow-f16vec4.vert
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with pow() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec4 test() {
+
+ float16_t x = 0.999HF;
+ float16_t y = 0.567HF;
+
+ return pow(f16vec4(x), f16vec4(y));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow.vert
new file mode 100644
index 000000000..243837df3
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/pow.vert
@@ -0,0 +1,18 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with pow() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+float16_t test() {
+
+ float16_t x = 0.999HF;
+ float16_t y = 0.567HF;
+
+ return pow(x, y);
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec2.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec2.vert
new file mode 100644
index 000000000..f892cc88f
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec2.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with sqrt() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec2 test() {
+
+ float16_t x = 0.999HF;
+
+ return sqrt(f16vec2(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec3.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec3.vert
new file mode 100644
index 000000000..b17813787
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec3.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with sqrt() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec3 test() {
+
+ float16_t x = 0.999HF;
+
+ return sqrt(f16vec3(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec4.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec4.vert
new file mode 100644
index 000000000..7aae88d05
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt-f16vec4.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with sqrt() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+f16vec4 test() {
+
+ float16_t x = 0.999HF;
+
+ return sqrt(f16vec4(x));
+}
diff --git a/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt.vert b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt.vert
new file mode 100644
index 000000000..d2c62745f
--- /dev/null
+++ b/tests/spec/amd_gpu_shader_half_float/compiler/builtin-functions/exponential/sqrt.vert
@@ -0,0 +1,17 @@
+// [config]
+// expect_result: pass
+// glsl_version: 4.00
+// require_extensions: GL_AMD_gpu_shader_half_float
+// [end config]
+//
+// Tests use of half float with sqrt() builtin
+
+#version 400
+#extension GL_AMD_gpu_shader_half_float : enable
+
+float16_t test() {
+
+ float16_t x = 0.999HF;
+
+ return sqrt(x);
+}