Skip to content

Commit 945d018

Browse files
author
Bruno Larsen (billionai)
committed
tests/tcg/ppc64le: tests for blendvb
Signed-off-by: Bruno Larsen (billionai) <[email protected]>
1 parent 9184b85 commit 945d018

File tree

3 files changed

+49216
-0
lines changed

3 files changed

+49216
-0
lines changed

tests/tcg/ppc64le/blendvb.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include "inputs.h"
2+
#include "blendvb_outputs.h"
3+
4+
void blendvb(quadword *a, quadword *b, quadword *c, quadword *ret)
5+
{
6+
asm("xxblendvb %[xt], %[xa], %[xb], %[xc]"
7+
: [xt] "=v" (*ret)
8+
: [xa] "v" (*a)
9+
, [xb] "v" (*b)
10+
, [xc] "v" (*c));
11+
}
12+
13+
int main(){
14+
return vtest4(blendvb, blendvb_outputs);
15+
}

0 commit comments

Comments
 (0)