Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
tests/tcg/tricore: Add test for all arith insns up to addx
Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Message-ID: <20230913105326.40832-5-kbastian@mail.uni-paderborn.de>
- Loading branch information
1 parent
ac8b435
commit fc0d69a
Showing
3 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| #include "macros.h" | ||
| .text | ||
| .global _start | ||
| _start: | ||
| TEST_D_D(abs, 1, 0x778636a7, 0x778636a7 ) | ||
| TEST_D_D(abs.b, 2, 0x497a4902, 0xb786b702 ) | ||
| TEST_D_D(abs.h, 3, 0x48331698, 0xb7cde968 ) | ||
| TEST_D_DI(absdif, 4, 0x22a52402, 0xdd5adc1a ,0x1c ) | ||
| TEST_D_DD(absdif, 5, 0x1e106273, 0x56f0cea3 ,0x75013116 ) | ||
| TEST_D_DD(absdif.b, 6, 0xa650a3b, 0xa7ee8b2a ,0x9d899565 ) | ||
| TEST_D_DD(absdif.h, 7, 0x7dd06888, 0x88292922 ,0x5f9c09a ) | ||
| TEST_D_DI(absdifs, 8, 0x79adddf7, 0x865222d1 ,0xc8 ) | ||
| TEST_D_DD(absdifs, 9, 0x7fffffff, 0x2ac1008b ,0x80032055 ) | ||
| TEST_D_DD(absdifs.h, 10, 0x65ae7fff, 0xf70a7a05 ,0x915cc1b3 ) | ||
| TEST_D_D(abss, 11, 0x2a671868, 0xd598e798 ) | ||
| TEST_D_D(abss.h, 12, 0x60fc7ce5, 0x9f04831b ) | ||
| TEST_D_DI(add, 13, 0x951ce738, 0x951ce6b4 ,0x84 ) | ||
| TEST_D_DD(add, 14, 0x53975df5, 0xc003e25a ,0x93937b9b ) | ||
| TEST_D_I(add, 15, 0x5, 0x5 ) | ||
| TEST_D_D15I(add, 16, 0x3c330214, 0x3c33020f ,0x5 ) | ||
| TEST_D15_DI(add, 17, 0x55eb1b8, 0x55eb1b8 ,0x0 ) | ||
| TEST_D_D(add, 18, 0xe66ead54, 0xe66ead54 ) | ||
| TEST_D_D15D(add, 19, 0xe450f787, 0xc7100fee ,0x1d40e799 ) | ||
| TEST_D15_DD(add, 20, 0x73f6d886, 0x27ca8a80 ,0x4c2c4e06 ) | ||
| TEST_D_DD(add.b, 21, 0x631bd462, 0xf9702965 ,0x6aababfd ) | ||
| TEST_D_DD(add.h, 22, 0x76ce127a, 0xf5402796 ,0x818eeae4 ) | ||
| TEST_D_DI(addc, 23, 0xcf8399c3, 0xcf839920 ,0xa3 ) | ||
| TEST_D_DD(addc, 24, 0xa455054c, 0x85d0b9ed ,0x1e844b5f ) | ||
| TEST_D_DI(addi, 25, 0xbf202fe6, 0xbf1fd903 ,0x56e3 ) | ||
| TEST_D_DI(addih, 26, 0xf28a99cc, 0xc10499cc ,12678 ) | ||
| TEST_D_DI(adds, 27, 0x233892ad, 0x233892ad ,0x0 ) | ||
| TEST_D_DD(adds, 28, 0xc1b1184d, 0x100a2339 ,0xb1a6f514 ) | ||
| TEST_D_D(adds, 29, 0x19143e9a, 0x19143e9a ) | ||
| TEST_D_DD(adds.h, 30, 0x7fff9de3, 0x668ebcc8 ,0x7462e11b ) | ||
| TEST_D_DD(adds.hu, 31, 0xffffffff, 0xbe0776eb ,0x5d69b388 ) | ||
| TEST_D_DI(adds.u, 32, 0x84c176ba, 0x84c176a9 ,0x11 ) | ||
| TEST_D_DD(adds.u, 33, 0xffffffff, 0xd4a91e39 ,0x55b1baed ) | ||
| TEST_D_DI(addx, 34, 0x38f63b5, 0x38f632b ,0x8a ) | ||
| TEST_D_DD(addx, 35, 0x8b9da5a4, 0x16e32e7 ,0x8a2f72bd ) | ||
|
|
||
| TEST_PASSFAIL |