vpermwi128 tests.
This commit is contained in:
parent
cd4e877ae1
commit
58107f3499
Binary file not shown.
|
@ -0,0 +1,21 @@
|
|||
|
||||
/vagrant/src/alloy/frontend/ppc/test/bin//instr_vpermwi128.o: file format elf64-powerpc
|
||||
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
0000000000100000 <test_vpermwi128_1>:
|
||||
100000: 18 9b 1a 10 vpermwi128 v4,v3,27
|
||||
100004: 4e 80 00 20 blr
|
||||
|
||||
0000000000100008 <test_vpermwi128_2>:
|
||||
100008: 18 84 1b d0 vpermwi128 v4,v3,228
|
||||
10000c: 4e 80 00 20 blr
|
||||
|
||||
0000000000100010 <test_vpermwi128_3>:
|
||||
100010: 18 80 1a 10 vpermwi128 v4,v3,0
|
||||
100014: 4e 80 00 20 blr
|
||||
|
||||
0000000000100018 <test_vpermwi128_4>:
|
||||
100018: 18 9f 1b d0 vpermwi128 v4,v3,255
|
||||
10001c: 4e 80 00 20 blr
|
|
@ -0,0 +1,4 @@
|
|||
0000000000000000 t test_vpermwi128_1
|
||||
0000000000000008 t test_vpermwi128_2
|
||||
0000000000000010 t test_vpermwi128_3
|
||||
0000000000000018 t test_vpermwi128_4
|
|
@ -0,0 +1,35 @@
|
|||
test_vpermwi128_1:
|
||||
#_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
# to 0,1,2,3
|
||||
# vpermwi128 v4, v3, 0x1B
|
||||
.long 0x189B1A10
|
||||
blr
|
||||
#_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
#_ REGISTER_OUT v4 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
|
||||
test_vpermwi128_2:
|
||||
#_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
# to 3,2,1,0
|
||||
# vpermwi128 v4, v3, 0xE4
|
||||
.long 0x18841BD0
|
||||
blr
|
||||
#_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
#_ REGISTER_OUT v4 [0C0D0E0F, 08090A0B, 04050607, 00010203]
|
||||
|
||||
test_vpermwi128_3:
|
||||
#_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
# to 0,0,0,0
|
||||
# vpermwi128 v4, v3, 0
|
||||
.long 0x18801A10
|
||||
blr
|
||||
#_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
#_ REGISTER_OUT v4 [00010203, 00010203, 00010203, 00010203]
|
||||
|
||||
test_vpermwi128_4:
|
||||
#_ REGISTER_IN v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
# to 3,3,3,3
|
||||
# vpermwi128 v4, v3, 0xFF
|
||||
.long 0x189F1BD0
|
||||
blr
|
||||
#_ REGISTER_OUT v3 [00010203, 04050607, 08090A0B, 0C0D0E0F]
|
||||
#_ REGISTER_OUT v4 [0C0D0E0F, 0C0D0E0F, 0C0D0E0F, 0C0D0E0F]
|
Loading…
Reference in New Issue