mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
The wrong relocation was being emitted for several SSSE3 instructions.
This fixes PR10963. Thanks to Benjamin for finding the wrong tablegen declaration. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -4851,7 +4851,7 @@ multiclass SS3I_binop_rm_int<bits<8> opc, string OpcodeStr,
|
|||||||
(bitconvert (memopv16i8 addr:$src2))))]>, OpSize;
|
(bitconvert (memopv16i8 addr:$src2))))]>, OpSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
let Predicates = [HasAVX] in {
|
let ImmT = NoImm, Predicates = [HasAVX] in {
|
||||||
let isCommutable = 0 in {
|
let isCommutable = 0 in {
|
||||||
defm VPHADDW : SS3I_binop_rm_int<0x01, "vphaddw", memopv8i16,
|
defm VPHADDW : SS3I_binop_rm_int<0x01, "vphaddw", memopv8i16,
|
||||||
int_x86_ssse3_phadd_w_128, 0>, VEX_4V;
|
int_x86_ssse3_phadd_w_128, 0>, VEX_4V;
|
||||||
|
@@ -3340,3 +3340,9 @@ vdivpd -4(%rcx,%rbx,8), %xmm10, %xmm11
|
|||||||
// CHECK: encoding: [0xc4,0xa1,0x78,0x29,0x1c,0x18]
|
// CHECK: encoding: [0xc4,0xa1,0x78,0x29,0x1c,0x18]
|
||||||
vmovaps %xmm3, (%rax,%r11)
|
vmovaps %xmm3, (%rax,%r11)
|
||||||
|
|
||||||
|
// CHECK: vpshufb _foo(%rip), %xmm0, %xmm0
|
||||||
|
// CHECK: encoding: [0xc4,0xe2,0x79,0x00,0x05,A,A,A,A]
|
||||||
|
// CHECK: kind: reloc_riprel_4byte
|
||||||
|
_foo:
|
||||||
|
nop
|
||||||
|
vpshufb _foo(%rip), %xmm0, %xmm0
|
||||||
|
Reference in New Issue
Block a user