summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh22
-rw-r--r--src/gallium/tests/python/tests/regress/vertex-shader/vertex-shader.py1
2 files changed, 23 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh
new file mode 100644
index 0000000000..3de53ebab5
--- /dev/null
+++ b/src/gallium/state_trackers/python/tests/regress/fragment-shader/frag-ldexp-frexp.sh
@@ -0,0 +1,22 @@
+FRAG
+
+DCL IN[0], COLOR, LINEAR
+DCL OUT[0], COLOR
+DCL TEMP[0..5]
+
+F2D TEMP[0], IN[0]
+F2D TEMP[1], IN[0].zwzw
+
+DFRACEXP TEMP[4], TEMP[5], TEMP[1]
+DLDEXP TEMP[1], TEMP[4], TEMP[5]
+
+MOV TEMP[2].zw, TEMP[0]
+MOV TEMP[3].xy, TEMP[1].zwzw
+D2F OUT[0].x, TEMP[0]
+D2F OUT[0].y, TEMP[2]
+D2F TEMP[0].x, TEMP[1]
+D2F TEMP[1].x, TEMP[3]
+MOV OUT[0].z, TEMP[0].zzxz
+MOV OUT[0].w, TEMP[1].xxxx
+
+END
diff --git a/src/gallium/tests/python/tests/regress/vertex-shader/vertex-shader.py b/src/gallium/tests/python/tests/regress/vertex-shader/vertex-shader.py
index 5adccebdff..89facc01a7 100644
--- a/src/gallium/tests/python/tests/regress/vertex-shader/vertex-shader.py
+++ b/src/gallium/tests/python/tests/regress/vertex-shader/vertex-shader.py
@@ -264,6 +264,7 @@ def main():
'dslt',
'dsqrt',
'dmad',
+ 'ldexp-frexp',
'dp3',
'dp4',
'dst',