| 1 | // Code generated by command: avogen -output zmov.go mov. DO NOT EDIT. |
| 2 | |
| 3 | package build |
| 4 | |
| 5 | import ( |
| 6 | "go/types" |
| 7 | |
| 8 | "github.com/mmcloughlin/avo/operand" |
| 9 | ) |
| 10 | |
| 11 | func (c *Context) mov(a, b operand.Op, an, bn int, t *types.Basic) { |
| 12 | switch { |
| 13 | case an == 8 && operand.IsK(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 14 | c.KMOVB(a, b) |
| 15 | case an == 8 && operand.IsK(a) && bn == 1 && operand.IsM8(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 16 | c.KMOVB(a, b) |
| 17 | case an == 8 && operand.IsK(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 18 | c.KMOVB(a, b) |
| 19 | case an == 1 && operand.IsM8(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 20 | c.KMOVB(a, b) |
| 21 | case an == 4 && operand.IsR32(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 22 | c.KMOVB(a, b) |
| 23 | case an == 8 && operand.IsK(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 24 | c.KMOVD(a, b) |
| 25 | case an == 8 && operand.IsK(a) && bn == 4 && operand.IsM32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 26 | c.KMOVD(a, b) |
| 27 | case an == 8 && operand.IsK(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 28 | c.KMOVD(a, b) |
| 29 | case an == 4 && operand.IsM32(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 30 | c.KMOVD(a, b) |
| 31 | case an == 4 && operand.IsR32(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 32 | c.KMOVD(a, b) |
| 33 | case an == 8 && operand.IsK(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 34 | c.KMOVQ(a, b) |
| 35 | case an == 8 && operand.IsK(a) && bn == 8 && operand.IsM64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 36 | c.KMOVQ(a, b) |
| 37 | case an == 8 && operand.IsK(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 38 | c.KMOVQ(a, b) |
| 39 | case an == 8 && operand.IsM64(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 40 | c.KMOVQ(a, b) |
| 41 | case an == 8 && operand.IsR64(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 42 | c.KMOVQ(a, b) |
| 43 | case an == 8 && operand.IsK(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 44 | c.KMOVW(a, b) |
| 45 | case an == 8 && operand.IsK(a) && bn == 2 && operand.IsM16(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 46 | c.KMOVW(a, b) |
| 47 | case an == 8 && operand.IsK(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 48 | c.KMOVW(a, b) |
| 49 | case an == 2 && operand.IsM16(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 50 | c.KMOVW(a, b) |
| 51 | case an == 4 && operand.IsR32(a) && bn == 8 && operand.IsK(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 52 | c.KMOVW(a, b) |
| 53 | case an == 1 && operand.IsM8(a) && bn == 1 && operand.IsR8(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 54 | c.MOVB(a, b) |
| 55 | case an == 1 && operand.IsR8(a) && bn == 1 && operand.IsM8(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 56 | c.MOVB(a, b) |
| 57 | case an == 1 && operand.IsR8(a) && bn == 1 && operand.IsR8(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 58 | c.MOVB(a, b) |
| 59 | case an == 1 && operand.IsM8(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 60 | c.MOVBLSX(a, b) |
| 61 | case an == 1 && operand.IsR8(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 62 | c.MOVBLSX(a, b) |
| 63 | case an == 1 && operand.IsM8(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 64 | c.MOVBLZX(a, b) |
| 65 | case an == 1 && operand.IsM8(a) && bn == 4 && operand.IsR32(b) && (t.Info()&types.IsBoolean) != 0: |
| 66 | c.MOVBLZX(a, b) |
| 67 | case an == 1 && operand.IsR8(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 68 | c.MOVBLZX(a, b) |
| 69 | case an == 1 && operand.IsR8(a) && bn == 4 && operand.IsR32(b) && (t.Info()&types.IsBoolean) != 0: |
| 70 | c.MOVBLZX(a, b) |
| 71 | case an == 1 && operand.IsM8(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 72 | c.MOVBQSX(a, b) |
| 73 | case an == 1 && operand.IsR8(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 74 | c.MOVBQSX(a, b) |
| 75 | case an == 1 && operand.IsM8(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 76 | c.MOVBQZX(a, b) |
| 77 | case an == 1 && operand.IsM8(a) && bn == 8 && operand.IsR64(b) && (t.Info()&types.IsBoolean) != 0: |
| 78 | c.MOVBQZX(a, b) |
| 79 | case an == 1 && operand.IsR8(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 80 | c.MOVBQZX(a, b) |
| 81 | case an == 1 && operand.IsR8(a) && bn == 8 && operand.IsR64(b) && (t.Info()&types.IsBoolean) != 0: |
| 82 | c.MOVBQZX(a, b) |
| 83 | case an == 1 && operand.IsM8(a) && bn == 2 && operand.IsR16(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 84 | c.MOVBWSX(a, b) |
| 85 | case an == 1 && operand.IsR8(a) && bn == 2 && operand.IsR16(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 86 | c.MOVBWSX(a, b) |
| 87 | case an == 1 && operand.IsM8(a) && bn == 2 && operand.IsR16(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 88 | c.MOVBWZX(a, b) |
| 89 | case an == 1 && operand.IsM8(a) && bn == 2 && operand.IsR16(b) && (t.Info()&types.IsBoolean) != 0: |
| 90 | c.MOVBWZX(a, b) |
| 91 | case an == 1 && operand.IsR8(a) && bn == 2 && operand.IsR16(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 92 | c.MOVBWZX(a, b) |
| 93 | case an == 1 && operand.IsR8(a) && bn == 2 && operand.IsR16(b) && (t.Info()&types.IsBoolean) != 0: |
| 94 | c.MOVBWZX(a, b) |
| 95 | case an == 4 && operand.IsM32(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 96 | c.MOVL(a, b) |
| 97 | case an == 4 && operand.IsR32(a) && bn == 4 && operand.IsM32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 98 | c.MOVL(a, b) |
| 99 | case an == 4 && operand.IsR32(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 100 | c.MOVL(a, b) |
| 101 | case an == 4 && operand.IsM32(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 102 | c.MOVLQSX(a, b) |
| 103 | case an == 4 && operand.IsR32(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 104 | c.MOVLQSX(a, b) |
| 105 | case an == 4 && operand.IsM32(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 106 | c.MOVLQZX(a, b) |
| 107 | case an == 4 && operand.IsM32(a) && bn == 8 && operand.IsR64(b) && (t.Info()&types.IsBoolean) != 0: |
| 108 | c.MOVLQZX(a, b) |
| 109 | case an == 16 && operand.IsM128(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 110 | c.MOVOU(a, b) |
| 111 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsM128(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 112 | c.MOVOU(a, b) |
| 113 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 114 | c.MOVOU(a, b) |
| 115 | case an == 4 && operand.IsM32(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 116 | c.MOVQ(a, b) |
| 117 | case an == 8 && operand.IsM64(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 118 | c.MOVQ(a, b) |
| 119 | case an == 4 && operand.IsR32(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 120 | c.MOVQ(a, b) |
| 121 | case an == 8 && operand.IsR64(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 122 | c.MOVQ(a, b) |
| 123 | case an == 16 && operand.IsXMM(a) && bn == 4 && operand.IsM32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 124 | c.MOVQ(a, b) |
| 125 | case an == 16 && operand.IsXMM(a) && bn == 8 && operand.IsM64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 126 | c.MOVQ(a, b) |
| 127 | case an == 16 && operand.IsXMM(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 128 | c.MOVQ(a, b) |
| 129 | case an == 16 && operand.IsXMM(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 130 | c.MOVQ(a, b) |
| 131 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 132 | c.MOVQ(a, b) |
| 133 | case an == 8 && operand.IsM64(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 134 | c.MOVQ(a, b) |
| 135 | case an == 8 && operand.IsR64(a) && bn == 8 && operand.IsM64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 136 | c.MOVQ(a, b) |
| 137 | case an == 8 && operand.IsR64(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 138 | c.MOVQ(a, b) |
| 139 | case an == 8 && operand.IsM64(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&types.IsFloat) != 0: |
| 140 | c.MOVSD(a, b) |
| 141 | case an == 16 && operand.IsXMM(a) && bn == 8 && operand.IsM64(b) && (t.Info()&types.IsFloat) != 0: |
| 142 | c.MOVSD(a, b) |
| 143 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&types.IsFloat) != 0: |
| 144 | c.MOVSD(a, b) |
| 145 | case an == 4 && operand.IsM32(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&types.IsFloat) != 0: |
| 146 | c.MOVSS(a, b) |
| 147 | case an == 16 && operand.IsXMM(a) && bn == 4 && operand.IsM32(b) && (t.Info()&types.IsFloat) != 0: |
| 148 | c.MOVSS(a, b) |
| 149 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&types.IsFloat) != 0: |
| 150 | c.MOVSS(a, b) |
| 151 | case an == 2 && operand.IsM16(a) && bn == 2 && operand.IsR16(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 152 | c.MOVW(a, b) |
| 153 | case an == 2 && operand.IsR16(a) && bn == 2 && operand.IsM16(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 154 | c.MOVW(a, b) |
| 155 | case an == 2 && operand.IsR16(a) && bn == 2 && operand.IsR16(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 156 | c.MOVW(a, b) |
| 157 | case an == 2 && operand.IsM16(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 158 | c.MOVWLSX(a, b) |
| 159 | case an == 2 && operand.IsR16(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 160 | c.MOVWLSX(a, b) |
| 161 | case an == 2 && operand.IsM16(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 162 | c.MOVWLZX(a, b) |
| 163 | case an == 2 && operand.IsM16(a) && bn == 4 && operand.IsR32(b) && (t.Info()&types.IsBoolean) != 0: |
| 164 | c.MOVWLZX(a, b) |
| 165 | case an == 2 && operand.IsR16(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 166 | c.MOVWLZX(a, b) |
| 167 | case an == 2 && operand.IsR16(a) && bn == 4 && operand.IsR32(b) && (t.Info()&types.IsBoolean) != 0: |
| 168 | c.MOVWLZX(a, b) |
| 169 | case an == 2 && operand.IsM16(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 170 | c.MOVWQSX(a, b) |
| 171 | case an == 2 && operand.IsR16(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == types.IsInteger: |
| 172 | c.MOVWQSX(a, b) |
| 173 | case an == 2 && operand.IsM16(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 174 | c.MOVWQZX(a, b) |
| 175 | case an == 2 && operand.IsM16(a) && bn == 8 && operand.IsR64(b) && (t.Info()&types.IsBoolean) != 0: |
| 176 | c.MOVWQZX(a, b) |
| 177 | case an == 2 && operand.IsR16(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsUnsigned)) == (types.IsInteger|types.IsUnsigned): |
| 178 | c.MOVWQZX(a, b) |
| 179 | case an == 2 && operand.IsR16(a) && bn == 8 && operand.IsR64(b) && (t.Info()&types.IsBoolean) != 0: |
| 180 | c.MOVWQZX(a, b) |
| 181 | case an == 4 && operand.IsM32(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 182 | c.VMOVD(a, b) |
| 183 | case an == 4 && operand.IsR32(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 184 | c.VMOVD(a, b) |
| 185 | case an == 16 && operand.IsXMM(a) && bn == 4 && operand.IsM32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 186 | c.VMOVD(a, b) |
| 187 | case an == 16 && operand.IsXMM(a) && bn == 4 && operand.IsR32(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 188 | c.VMOVD(a, b) |
| 189 | case an == 16 && operand.IsM128(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 190 | c.VMOVDQU(a, b) |
| 191 | case an == 32 && operand.IsM256(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 192 | c.VMOVDQU(a, b) |
| 193 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsM128(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 194 | c.VMOVDQU(a, b) |
| 195 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 196 | c.VMOVDQU(a, b) |
| 197 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsM256(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 198 | c.VMOVDQU(a, b) |
| 199 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 200 | c.VMOVDQU(a, b) |
| 201 | case an == 16 && operand.IsM128(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 202 | c.VMOVDQU16(a, b) |
| 203 | case an == 32 && operand.IsM256(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 204 | c.VMOVDQU16(a, b) |
| 205 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsM128(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 206 | c.VMOVDQU16(a, b) |
| 207 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 208 | c.VMOVDQU16(a, b) |
| 209 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsM256(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 210 | c.VMOVDQU16(a, b) |
| 211 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 212 | c.VMOVDQU16(a, b) |
| 213 | case an == 64 && operand.IsM512(a) && bn == 64 && operand.IsZMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 214 | c.VMOVDQU16(a, b) |
| 215 | case an == 64 && operand.IsZMM(a) && bn == 64 && operand.IsM512(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 216 | c.VMOVDQU16(a, b) |
| 217 | case an == 64 && operand.IsZMM(a) && bn == 64 && operand.IsZMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 218 | c.VMOVDQU16(a, b) |
| 219 | case an == 16 && operand.IsM128(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 220 | c.VMOVDQU32(a, b) |
| 221 | case an == 32 && operand.IsM256(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 222 | c.VMOVDQU32(a, b) |
| 223 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsM128(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 224 | c.VMOVDQU32(a, b) |
| 225 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 226 | c.VMOVDQU32(a, b) |
| 227 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsM256(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 228 | c.VMOVDQU32(a, b) |
| 229 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 230 | c.VMOVDQU32(a, b) |
| 231 | case an == 64 && operand.IsM512(a) && bn == 64 && operand.IsZMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 232 | c.VMOVDQU32(a, b) |
| 233 | case an == 64 && operand.IsZMM(a) && bn == 64 && operand.IsM512(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 234 | c.VMOVDQU32(a, b) |
| 235 | case an == 64 && operand.IsZMM(a) && bn == 64 && operand.IsZMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 236 | c.VMOVDQU32(a, b) |
| 237 | case an == 16 && operand.IsM128(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 238 | c.VMOVDQU64(a, b) |
| 239 | case an == 32 && operand.IsM256(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 240 | c.VMOVDQU64(a, b) |
| 241 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsM128(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 242 | c.VMOVDQU64(a, b) |
| 243 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 244 | c.VMOVDQU64(a, b) |
| 245 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsM256(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 246 | c.VMOVDQU64(a, b) |
| 247 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 248 | c.VMOVDQU64(a, b) |
| 249 | case an == 64 && operand.IsM512(a) && bn == 64 && operand.IsZMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 250 | c.VMOVDQU64(a, b) |
| 251 | case an == 64 && operand.IsZMM(a) && bn == 64 && operand.IsM512(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 252 | c.VMOVDQU64(a, b) |
| 253 | case an == 64 && operand.IsZMM(a) && bn == 64 && operand.IsZMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 254 | c.VMOVDQU64(a, b) |
| 255 | case an == 16 && operand.IsM128(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 256 | c.VMOVDQU8(a, b) |
| 257 | case an == 32 && operand.IsM256(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 258 | c.VMOVDQU8(a, b) |
| 259 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsM128(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 260 | c.VMOVDQU8(a, b) |
| 261 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 262 | c.VMOVDQU8(a, b) |
| 263 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsM256(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 264 | c.VMOVDQU8(a, b) |
| 265 | case an == 32 && operand.IsYMM(a) && bn == 32 && operand.IsYMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 266 | c.VMOVDQU8(a, b) |
| 267 | case an == 64 && operand.IsM512(a) && bn == 64 && operand.IsZMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 268 | c.VMOVDQU8(a, b) |
| 269 | case an == 64 && operand.IsZMM(a) && bn == 64 && operand.IsM512(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 270 | c.VMOVDQU8(a, b) |
| 271 | case an == 64 && operand.IsZMM(a) && bn == 64 && operand.IsZMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 272 | c.VMOVDQU8(a, b) |
| 273 | case an == 8 && operand.IsM64(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 274 | c.VMOVQ(a, b) |
| 275 | case an == 8 && operand.IsR64(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 276 | c.VMOVQ(a, b) |
| 277 | case an == 16 && operand.IsXMM(a) && bn == 8 && operand.IsM64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 278 | c.VMOVQ(a, b) |
| 279 | case an == 16 && operand.IsXMM(a) && bn == 8 && operand.IsR64(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 280 | c.VMOVQ(a, b) |
| 281 | case an == 16 && operand.IsXMM(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&(types.IsInteger|types.IsBoolean)) != 0: |
| 282 | c.VMOVQ(a, b) |
| 283 | case an == 8 && operand.IsM64(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&types.IsFloat) != 0: |
| 284 | c.VMOVSD(a, b) |
| 285 | case an == 16 && operand.IsXMM(a) && bn == 8 && operand.IsM64(b) && (t.Info()&types.IsFloat) != 0: |
| 286 | c.VMOVSD(a, b) |
| 287 | case an == 4 && operand.IsM32(a) && bn == 16 && operand.IsXMM(b) && (t.Info()&types.IsFloat) != 0: |
| 288 | c.VMOVSS(a, b) |
| 289 | case an == 16 && operand.IsXMM(a) && bn == 4 && operand.IsM32(b) && (t.Info()&types.IsFloat) != 0: |
| 290 | c.VMOVSS(a, b) |
| 291 | default: |
| 292 | c.adderrormessage("could not deduce mov instruction") |
| 293 | } |
| 294 | } |