mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
These tests should have been added as part of the patch for bug 595728.
--HG-- extra : convert_revision : f31ee612d65e224424ae24d1852491c1b1698388
This commit is contained in:
parent
6cc88ddd4f
commit
4b1f77accc
32
js/src/lirasm/tests/64-bit/shq.in
Normal file
32
js/src/lirasm/tests/64-bit/shq.in
Normal file
@ -0,0 +1,32 @@
|
||||
; Only the bottom 6 bits of the shift amount in lshq/rshq/rshuq are used.
|
||||
|
||||
two = immq 2
|
||||
|
||||
sh1 = immi 1
|
||||
sh2 = immi 65 ; 0100_0001b
|
||||
sh3 = immi 268435393 ; 0000_1111_1111_1111_1111_1111_1100_0001b
|
||||
|
||||
a1 = lshq two sh1 ; --> 4
|
||||
a2 = lshq two sh2 ; --> 4
|
||||
a3 = lshq two sh3 ; --> 4
|
||||
|
||||
b1 = rshq two sh1 ; --> 1
|
||||
b2 = rshq two sh2 ; --> 1
|
||||
b3 = rshq two sh3 ; --> 1
|
||||
|
||||
c1 = rshuq two sh1 ; --> 1
|
||||
c2 = rshuq two sh2 ; --> 1
|
||||
c3 = rshuq two sh3 ; --> 1
|
||||
|
||||
s0 = immq 0
|
||||
s1 = addq s0 a1
|
||||
s2 = addq s1 a2
|
||||
s3 = addq s2 a3
|
||||
s4 = addq s3 b1
|
||||
s5 = addq s4 b2
|
||||
s6 = addq s5 b3
|
||||
s7 = addq s6 c1
|
||||
s8 = addq s7 c2
|
||||
s9 = addq s8 c2 ; --> 18
|
||||
|
||||
retq s9
|
1
js/src/lirasm/tests/64-bit/shq.out
Normal file
1
js/src/lirasm/tests/64-bit/shq.out
Normal file
@ -0,0 +1 @@
|
||||
Output is: 18
|
32
js/src/lirasm/tests/shi.in
Normal file
32
js/src/lirasm/tests/shi.in
Normal file
@ -0,0 +1,32 @@
|
||||
; Only the bottom 5 bits of the shift amount in lshi/rshi/rshui are used.
|
||||
|
||||
two = immi 2
|
||||
|
||||
sh1 = immi 1
|
||||
sh2 = immi 33 ; 0010_0001b
|
||||
sh3 = immi 268435425 ; 0000_1111_1111_1111_1111_1111_1110_0001b
|
||||
|
||||
a1 = lshi two sh1 ; --> 4
|
||||
a2 = lshi two sh2 ; --> 4
|
||||
a3 = lshi two sh3 ; --> 4
|
||||
|
||||
b1 = rshi two sh1 ; --> 1
|
||||
b2 = rshi two sh2 ; --> 1
|
||||
b3 = rshi two sh3 ; --> 1
|
||||
|
||||
c1 = rshui two sh1 ; --> 1
|
||||
c2 = rshui two sh2 ; --> 1
|
||||
c3 = rshui two sh3 ; --> 1
|
||||
|
||||
s0 = immi 0
|
||||
s1 = addi s0 a1
|
||||
s2 = addi s1 a2
|
||||
s3 = addi s2 a3
|
||||
s4 = addi s3 b1
|
||||
s5 = addi s4 b2
|
||||
s6 = addi s5 b3
|
||||
s7 = addi s6 c1
|
||||
s8 = addi s7 c2
|
||||
s9 = addi s8 c2 ; --> 18
|
||||
|
||||
reti s9
|
1
js/src/lirasm/tests/shi.out
Normal file
1
js/src/lirasm/tests/shi.out
Normal file
@ -0,0 +1 @@
|
||||
Output is: 18
|
Loading…
Reference in New Issue
Block a user