]> git.proxmox.com Git - mirror_qemu.git/blame - tests/lm32/test_andhi.S
vga: optimize ppm_save() divisions
[mirror_qemu.git] / tests / lm32 / test_andhi.S
CommitLineData
d65f0831
MW
1.include "macros.inc"
2
3start
4
5test_name ANDHI_1
6mvi r1, 0
7andhi r3, r1, 0
8check_r3 0
9
10test_name ANDHI_2
11mvi r1, 1
12andhi r3, r1, 1
13check_r3 0
14
15test_name ANDHI_3
16load r1 0x000f0000
17andhi r3, r1, 1
18check_r3 0x00010000
19
20test_name ANDHI_4
21load r1 0xffffffff
22andhi r3, r1, 0xffff
23check_r3 0xffff0000
24
25test_name ANDHI_5
26load r1 0xffffffff
27andhi r3, r1, 0
28check_r3 0
29
30test_name ANDHI_6
31load r3 0x55aaffff
32andhi r3, r3, 0xaaaa
33check_r3 0x00aa0000
34
35end