summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2010-10-14 15:24:03 -0700
committerDavid Schleef <ds@schleef.org>2010-10-14 15:24:03 -0700
commitda8da5fb9b26c19910f01d2ca6f501986e46f6f8 (patch)
treeecd37c266b08ba8e61be6c48678f8bd84c7968f3 /testsuite
parent733dc5a1230c867e631665c689dc42e11704d886 (diff)
test.orc: Add function that checks 'x2 mulll'
Triggers bug fixed in previous commit.
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/test.orc31
1 files changed, 31 insertions, 0 deletions
diff --git a/testsuite/test.orc b/testsuite/test.orc
index 01d854d..ca30e21 100644
--- a/testsuite/test.orc
+++ b/testsuite/test.orc
@@ -2266,3 +2266,34 @@ copyq d, s
copyq d, s
+.function param64_2
+.dest 8 d
+.longparam 8 p
+.temp 8 t
+
+loadpq t, p
+copyq d, t
+
+
+.function pa_volume_s16ne_orc_2ch
+.dest 4 samples int16_t
+.longparam 8 vols
+.temp 8 v
+.temp 8 s
+.temp 8 ss
+.temp 8 m
+.temp 8 signc
+
+loadpq v, vols
+x2 convuwl s, samples
+x2 convswl ss, samples
+x4 cmpgtsw signc, 0, s
+x4 andw signc, signc, v
+x4 mulhuw m, s, v
+x2 subl m, m, signc
+x2 shrul v, v, 16
+x2 mulll ss, ss, v
+x2 addl m, m, ss
+x2 convssslw samples, m
+
+