summaryrefslogtreecommitdiffstats
path: root/src/intel/tools/tests/gen9/math.asm
diff options
context:
space:
mode:
authorSagar Ghuge <[email protected]>2019-03-22 19:13:54 -0700
committerMatt Turner <[email protected]>2019-05-07 14:33:48 -0700
commit4e828bb48abf12d43c2b4a373b4b2125c90ea152 (patch)
tree71d021ec2939a0d9dcdb78a35ff3419ecfb8f78c /src/intel/tools/tests/gen9/math.asm
parent1fb5ce0a11ccb8a0f8d41d0499f8a16b1dfef379 (diff)
intel/tools: Add unit tests for assembler
v1: Pass executable object from meson to test(Dylan Baker) v2: Ignore generated output files from git status(Matt Turner) Signed-off-by: Sagar Ghuge <[email protected]> Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Dylan Baker <[email protected]>
Diffstat (limited to 'src/intel/tools/tests/gen9/math.asm')
-rw-r--r--src/intel/tools/tests/gen9/math.asm31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/intel/tools/tests/gen9/math.asm b/src/intel/tools/tests/gen9/math.asm
new file mode 100644
index 00000000000..d6a54d2c389
--- /dev/null
+++ b/src/intel/tools/tests/gen9/math.asm
@@ -0,0 +1,31 @@
+math sqrt(16) g20<1>F g18<8,8,1>F null<8,8,1>F { align1 1H };
+math inv(8) g95<1>F g94<8,8,1>F null<8,8,1>F { align1 1Q };
+math inv(16) g10<1>F g8<8,8,1>F null<8,8,1>F { align1 1H };
+math intmod(8) g3<1>UD g1<0,1,0>UD g1.2<0,1,0>UD { align1 1Q };
+math intmod(8) g4<1>UD g1<0,1,0>UD g1.2<0,1,0>UD { align1 2Q };
+math sqrt(8) g24<1>F g23<8,8,1>F null<8,8,1>F { align1 1Q };
+math rsq(8) g5<1>F g2<8,8,1>F null<8,8,1>F { align1 1Q };
+math pow(8) g11<1>F g10<8,8,1>F 0x42fc6666F /* 126.2F */ { align1 1Q };
+math pow(16) g18<1>F g16<8,8,1>F 0x42fc6666F /* 126.2F */ { align1 1H };
+math log(8) g7<1>F g6<8,8,1>F null<8,8,1>F { align1 1Q };
+math log(16) g11<1>F g9<8,8,1>F null<8,8,1>F { align1 1H };
+math cos(8) g3<1>F g2<8,8,1>F null<8,8,1>F { align1 1Q };
+math cos(16) g4<1>F g2<8,8,1>F null<8,8,1>F { align1 1H };
+math intdiv(8) g4<1>UD g1<0,1,0>UD g1.4<0,1,0>UD { align1 1Q };
+math intdiv(8) g5<1>UD g1<0,1,0>UD g1.4<0,1,0>UD { align1 2Q };
+math intdiv(8) g24<1>D g4<0,1,0>D g2.2<0,1,0>D { align1 1Q };
+math sin(8) g10<1>F g9<8,8,1>F null<8,8,1>F { align1 1Q };
+math rsq(16) g68<1>F g66<8,8,1>F null<8,8,1>F { align1 1H };
+math exp(8) g124<1>F g10<8,8,1>F null<8,8,1>F { align1 1Q };
+math exp(16) g120<1>F g7<8,8,1>F null<8,8,1>F { align1 1H };
+math intdiv(8) g5<1>D g2<0,1,0>D g2.4<0,1,0>D { align1 2Q };
+math sin(16) g3<1>F g2<0,1,0>F null<8,8,1>F { align1 1H };
+math.sat pow(8) g3<1>F g2<0,1,0>F g2.4<0,1,0>F { align1 1Q };
+math.sat pow(16) g3<1>F g2<0,1,0>F g2.4<0,1,0>F { align1 1H };
+math.sat sqrt(8) g3<1>F g2<0,1,0>F null<8,8,1>F { align1 1Q };
+math.sat sqrt(16) g3<1>F g2<0,1,0>F null<8,8,1>F { align1 1H };
+math.sat exp(8) g3<1>F g2<0,1,0>F null<8,8,1>F { align1 1Q };
+math.sat exp(16) g3<1>F g2<0,1,0>F null<8,8,1>F { align1 1H };
+math.sat rsq(8) g127<1>F (abs)g7<8,8,1>F null<8,8,1>F { align1 1Q };
+math.sat inv(8) g124<1>F g2<0,1,0>F null<8,8,1>F { align1 1Q };
+math.sat log(8) g127<1>F g7<8,8,1>F null<8,8,1>F { align1 1Q };