|
2 | 2 | // RUN: llvm-mc -triple=amdgcn -mcpu=gfx1250 -show-encoding %s | FileCheck --check-prefixes=GFX1250 %s
|
3 | 3 | // RUN: not llvm-mc -triple=amdgcn -mcpu=gfx1200 %s 2>&1 | FileCheck --check-prefix=GFX1200-ERR --implicit-check-not=error: %s
|
4 | 4 |
|
| 5 | +v_fmac_f64 v[4:5], v[2:3], v[4:5] |
| 6 | +// GFX1250: v_fmac_f64_e32 v[4:5], v[2:3], v[4:5] ; encoding: [0x02,0x09,0x08,0x2e] |
| 7 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 8 | + |
| 9 | +v_fmac_f64 v[254:255], v[2:3], v[4:5] |
| 10 | +// GFX1250: v_fmac_f64_e32 v[254:255], v[2:3], v[4:5] ; encoding: [0x02,0x09,0xfc,0x2f] |
| 11 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 12 | + |
| 13 | +v_fmac_f64 v[4:5], v[254:255], v[4:5] |
| 14 | +// GFX1250: v_fmac_f64_e32 v[4:5], v[254:255], v[4:5] ; encoding: [0xfe,0x09,0x08,0x2e] |
| 15 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 16 | + |
| 17 | +v_fmac_f64 v[4:5], vcc, v[4:5] |
| 18 | +// GFX1250: v_fmac_f64_e32 v[4:5], vcc, v[4:5] ; encoding: [0x6a,0x08,0x08,0x2e] |
| 19 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 20 | + |
| 21 | +v_fmac_f64 v[4:5], exec, v[4:5] |
| 22 | +// GFX1250: v_fmac_f64_e32 v[4:5], exec, v[4:5] ; encoding: [0x7e,0x08,0x08,0x2e] |
| 23 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 24 | + |
| 25 | +v_fmac_f64 v[4:5], 0, v[4:5] |
| 26 | +// GFX1250: v_fmac_f64_e32 v[4:5], 0, v[4:5] ; encoding: [0x80,0x08,0x08,0x2e] |
| 27 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 28 | + |
| 29 | +v_fmac_f64 v[4:5], -1, v[4:5] |
| 30 | +// GFX1250: v_fmac_f64_e32 v[4:5], -1, v[4:5] ; encoding: [0xc1,0x08,0x08,0x2e] |
| 31 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 32 | + |
| 33 | +v_fmac_f64 v[4:5], 0.5, v[4:5] |
| 34 | +// GFX1250: v_fmac_f64_e32 v[4:5], 0.5, v[4:5] ; encoding: [0xf0,0x08,0x08,0x2e] |
| 35 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 36 | + |
| 37 | +v_fmac_f64 v[4:5], -4.0, v[4:5] |
| 38 | +// GFX1250: v_fmac_f64_e32 v[4:5], -4.0, v[4:5] ; encoding: [0xf7,0x08,0x08,0x2e] |
| 39 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 40 | + |
| 41 | +v_fmac_f64 v[4:5], 0xaf123456, v[4:5] |
| 42 | +// GFX1250: v_fmac_f64_e32 v[4:5], 0xaf123456, v[4:5] ; encoding: [0xff,0x08,0x08,0x2e,0x56,0x34,0x12,0xaf] |
| 43 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 44 | + |
| 45 | +v_fmac_f64 v[4:5], 0x3f717273, v[4:5] |
| 46 | +// GFX1250: v_fmac_f64_e32 v[4:5], 0x3f717273, v[4:5] ; encoding: [0xff,0x08,0x08,0x2e,0x73,0x72,0x71,0x3f] |
| 47 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 48 | + |
| 49 | +v_fmac_f64 v[4:5], v[2:3], v[254:255] |
| 50 | +// GFX1250: v_fmac_f64_e32 v[4:5], v[2:3], v[254:255] ; encoding: [0x02,0xfd,0x09,0x2e] |
| 51 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 52 | + |
| 53 | +v_fmac_f64 v[4:5], v[2:3], v[8:9] |
| 54 | +// GFX1250: v_fmac_f64_e32 v[4:5], v[2:3], v[8:9] ; encoding: [0x02,0x11,0x08,0x2e] |
| 55 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 56 | + |
| 57 | +v_fmac_f64 v[254:255], v[2:3], v[8:9] |
| 58 | +// GFX1250: v_fmac_f64_e32 v[254:255], v[2:3], v[8:9] ; encoding: [0x02,0x11,0xfc,0x2f] |
| 59 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 60 | + |
| 61 | +v_fmac_f64 v[4:5], v[254:255], v[8:9] |
| 62 | +// GFX1250: v_fmac_f64_e32 v[4:5], v[254:255], v[8:9] ; encoding: [0xfe,0x11,0x08,0x2e] |
| 63 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 64 | + |
| 65 | +v_fmac_f64 v[4:5], vcc, v[8:9] |
| 66 | +// GFX1250: v_fmac_f64_e32 v[4:5], vcc, v[8:9] ; encoding: [0x6a,0x10,0x08,0x2e] |
| 67 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 68 | + |
| 69 | +v_fmac_f64 v[4:5], exec, v[8:9] |
| 70 | +// GFX1250: v_fmac_f64_e32 v[4:5], exec, v[8:9] ; encoding: [0x7e,0x10,0x08,0x2e] |
| 71 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 72 | + |
| 73 | +v_fmac_f64 v[4:5], 0, v[8:9] |
| 74 | +// GFX1250: v_fmac_f64_e32 v[4:5], 0, v[8:9] ; encoding: [0x80,0x10,0x08,0x2e] |
| 75 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 76 | + |
| 77 | +v_fmac_f64 v[4:5], -1, v[8:9] |
| 78 | +// GFX1250: v_fmac_f64_e32 v[4:5], -1, v[8:9] ; encoding: [0xc1,0x10,0x08,0x2e] |
| 79 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 80 | + |
| 81 | +v_fmac_f64 v[4:5], 0.5, v[8:9] |
| 82 | +// GFX1250: v_fmac_f64_e32 v[4:5], 0.5, v[8:9] ; encoding: [0xf0,0x10,0x08,0x2e] |
| 83 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 84 | + |
| 85 | +v_fmac_f64 v[4:5], -4.0, v[8:9] |
| 86 | +// GFX1250: v_fmac_f64_e32 v[4:5], -4.0, v[8:9] ; encoding: [0xf7,0x10,0x08,0x2e] |
| 87 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 88 | + |
| 89 | +v_fmac_f64 v[4:5], v[2:3], v[254:255] |
| 90 | +// GFX1250: v_fmac_f64_e32 v[4:5], v[2:3], v[254:255] ; encoding: [0x02,0xfd,0x09,0x2e] |
| 91 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 92 | + |
| 93 | +v_fmac_f64 v[4:5], v[2:3], vcc |
| 94 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], vcc ; encoding: [0x04,0x00,0x17,0xd5,0x02,0xd5,0x00,0x00] |
| 95 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 96 | + |
| 97 | +v_fmac_f64 v[4:5], v[2:3], exec |
| 98 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], exec ; encoding: [0x04,0x00,0x17,0xd5,0x02,0xfd,0x00,0x00] |
| 99 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 100 | + |
| 101 | +v_fmac_f64 v[4:5], v[2:3], 0 |
| 102 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], 0 ; encoding: [0x04,0x00,0x17,0xd5,0x02,0x01,0x01,0x00] |
| 103 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 104 | + |
| 105 | +v_fmac_f64 v[4:5], v[2:3], -1 |
| 106 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], -1 ; encoding: [0x04,0x00,0x17,0xd5,0x02,0x83,0x01,0x00] |
| 107 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 108 | + |
| 109 | +v_fmac_f64 v[4:5], v[2:3], 0.5 |
| 110 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], 0.5 ; encoding: [0x04,0x00,0x17,0xd5,0x02,0xe1,0x01,0x00] |
| 111 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 112 | + |
| 113 | +v_fmac_f64 v[4:5], v[2:3], -4.0 |
| 114 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], -4.0 ; encoding: [0x04,0x00,0x17,0xd5,0x02,0xef,0x01,0x00] |
| 115 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 116 | + |
| 117 | +v_fmac_f64 v[4:5], -v[2:3], v[8:9] |
| 118 | +// GFX1250: v_fmac_f64_e64 v[4:5], -v[2:3], v[8:9] ; encoding: [0x04,0x00,0x17,0xd5,0x02,0x11,0x02,0x20] |
| 119 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 120 | + |
| 121 | +v_fmac_f64 v[4:5], v[2:3], -v[8:9] |
| 122 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], -v[8:9] ; encoding: [0x04,0x00,0x17,0xd5,0x02,0x11,0x02,0x40] |
| 123 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 124 | + |
| 125 | +v_fmac_f64 v[4:5], -v[2:3], -v[8:9] |
| 126 | +// GFX1250: v_fmac_f64_e64 v[4:5], -v[2:3], -v[8:9] ; encoding: [0x04,0x00,0x17,0xd5,0x02,0x11,0x02,0x60] |
| 127 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 128 | + |
| 129 | +v_fmac_f64 v[4:5], |v[2:3]|, v[8:9] |
| 130 | +// GFX1250: v_fmac_f64_e64 v[4:5], |v[2:3]|, v[8:9] ; encoding: [0x04,0x01,0x17,0xd5,0x02,0x11,0x02,0x00] |
| 131 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 132 | + |
| 133 | +v_fmac_f64 v[4:5], v[2:3], |v[8:9]| |
| 134 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], |v[8:9]| ; encoding: [0x04,0x02,0x17,0xd5,0x02,0x11,0x02,0x00] |
| 135 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 136 | + |
| 137 | +v_fmac_f64 v[4:5], |v[2:3]|, |v[8:9]| |
| 138 | +// GFX1250: v_fmac_f64_e64 v[4:5], |v[2:3]|, |v[8:9]| ; encoding: [0x04,0x03,0x17,0xd5,0x02,0x11,0x02,0x00] |
| 139 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 140 | + |
| 141 | +v_fmac_f64 v[4:5], v[2:3], v[8:9] clamp |
| 142 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] clamp ; encoding: [0x04,0x80,0x17,0xd5,0x02,0x11,0x02,0x00] |
| 143 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 144 | + |
| 145 | +v_fmac_f64 v[4:5], v[2:3], v[8:9] mul:2 |
| 146 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] mul:2 ; encoding: [0x04,0x00,0x17,0xd5,0x02,0x11,0x02,0x08] |
| 147 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 148 | + |
| 149 | +v_fmac_f64 v[4:5], v[2:3], v[8:9] mul:4 |
| 150 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] mul:4 ; encoding: [0x04,0x00,0x17,0xd5,0x02,0x11,0x02,0x10] |
| 151 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 152 | + |
| 153 | +v_fmac_f64 v[4:5], v[2:3], v[8:9] div:2 |
| 154 | +// GFX1250: v_fmac_f64_e64 v[4:5], v[2:3], v[8:9] div:2 ; encoding: [0x04,0x00,0x17,0xd5,0x02,0x11,0x02,0x18] |
| 155 | +// GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU |
| 156 | + |
5 | 157 | v_fmamk_f64 v[6:7], v[4:5], 0x405ec000, v[2:3]
|
6 | 158 | // GFX1250: v_fmamk_f64 v[6:7], v[4:5], 0x405ec000, v[2:3] ; encoding: [0x04,0x05,0x0c,0x46,0x00,0x00,0x00,0x00,0x00,0xc0,0x5e,0x40]
|
7 | 159 | // GFX1200-ERR: :[[@LINE-2]]:1: error: instruction not supported on this GPU
|
|
0 commit comments