[ARM] Better OR's for MVE compares
[llvm-core.git] / test / MC / AMDGPU / add-sub-no-carry.s
blob8398199a89568fe5af739e96eabfce6b8233c34b
1 // RUN: llvm-mc -arch=amdgcn -mcpu=gfx900 -show-encoding %s | FileCheck -check-prefixes=GFX9 %s
3 // RUN: not llvm-mc -arch=amdgcn -mcpu=fiji %s 2>&1 | FileCheck -check-prefixes=ERR-SICIVI %s
4 // RUN: not llvm-mc -arch=amdgcn -mcpu=bonaire %s 2>&1 | FileCheck -check-prefixes=ERR-SICIVI %s
5 // FIXME: pre-gfx9 errors should be more useful
8 v_add_u32 v1, v2, v3
9 // GFX9: v_add_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x68]
10 // ERR-SICIVI: error: instruction not supported on this GPU
12 v_add_u32 v1, v2, s1
13 // GFX9: v_add_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x34,0xd1,0x02,0x03,0x00,0x00]
14 // ERR-SICIVI: error: instruction not supported on this GPU
16 v_add_u32 v1, s1, v2
17 // GFX9: v_add_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x68]
18 // ERR-SICIVI: error: instruction not supported on this GPU
20 v_add_u32 v1, 4.0, v2
21 // GFX9: v_add_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x68]
22 // ERR-SICIVI: error: instruction not supported on this GPU
24 v_add_u32 v1, v2, 4.0
25 // GFX9: v_add_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x34,0xd1,0x02,0xed,0x01,0x00]
26 // ERR-SICIVI: error: instruction not supported on this GPU
28 v_add_u32_e32 v1, v2, v3
29 // GFX9: v_add_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x68]
30 // ERR-SICIVI: error: instruction not supported on this GPU
32 v_add_u32_e32 v1, s1, v3
33 // GFX9: v_add_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x68]
34 // ERR-SICIVI: error: instruction not supported on this GPU
38 v_sub_u32 v1, v2, v3
39 // GFX9: v_sub_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6a]
40 // ERR-SICIVI: error: instruction not supported on this GPU
42 v_sub_u32 v1, v2, s1
43 // GFX9: v_sub_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x35,0xd1,0x02,0x03,0x00,0x00]
44 // ERR-SICIVI: error: instruction not supported on this GPU
46 v_sub_u32 v1, s1, v2
47 // GFX9: v_sub_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x6a]
48 // ERR-SICIVI: error: instruction not supported on this GPU
50 v_sub_u32 v1, 4.0, v2
51 // GFX9: v_sub_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x6a]
52 // ERR-SICIVI: error: instruction not supported on this GPU
54 v_sub_u32 v1, v2, 4.0
55 // GFX9: v_sub_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x35,0xd1,0x02,0xed,0x01,0x00]
56 // ERR-SICIVI: error: instruction not supported on this GPU
58 v_sub_u32_e32 v1, v2, v3
59 // GFX9: v_sub_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6a]
60 // ERR-SICIVI: error: instruction not supported on this GPU
62 v_sub_u32_e32 v1, s1, v3
63 // GFX9: v_sub_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x6a]
64 // ERR-SICIVI: error: instruction not supported on this GPU
68 v_subrev_u32 v1, v2, v3
69 // GFX9: v_subrev_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6c]
70 // ERR-SICIVI: error: instruction not supported on this GPU
72 v_subrev_u32 v1, v2, s1
73 // GFX9: v_subrev_u32_e64 v1, v2, s1 ; encoding: [0x01,0x00,0x36,0xd1,0x02,0x03,0x00,0x00]
74 // ERR-SICIVI: error: instruction not supported on this GPU
76 v_subrev_u32 v1, s1, v2
77 // GFX9: v_subrev_u32_e32 v1, s1, v2 ; encoding: [0x01,0x04,0x02,0x6c]
78 // ERR-SICIVI: error: instruction not supported on this GPU
80 v_subrev_u32 v1, 4.0, v2
81 // GFX9: v_subrev_u32_e32 v1, 4.0, v2 ; encoding: [0xf6,0x04,0x02,0x6c]
82 // ERR-SICIVI: error: instruction not supported on this GPU
84 v_subrev_u32 v1, v2, 4.0
85 // GFX9: v_subrev_u32_e64 v1, v2, 4.0 ; encoding: [0x01,0x00,0x36,0xd1,0x02,0xed,0x01,0x00]
86 // ERR-SICIVI: error: instruction not supported on this GPU
88 v_subrev_u32_e32 v1, v2, v3
89 // GFX9: v_subrev_u32_e32 v1, v2, v3 ; encoding: [0x02,0x07,0x02,0x6c]
90 // ERR-SICIVI: error: instruction not supported on this GPU
92 v_subrev_u32_e32 v1, s1, v3
93 // GFX9: v_subrev_u32_e32 v1, s1, v3 ; encoding: [0x01,0x06,0x02,0x6c]
94 // ERR-SICIVI: error: instruction not supported on this GPU