llvm-for-llvmta/test/MC/X86/SSE42-32.s

227 lines
7.4 KiB
ArmAsm
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s
// CHECK: crc32b 485498096, %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0x1d,0xf0,0x1c,0xf0,0x1c]
crc32b 485498096, %ebx
// CHECK: crc32b 64(%edx), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0x5a,0x40]
crc32b 64(%edx), %ebx
// CHECK: crc32b -64(%edx,%eax,4), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0x5c,0x82,0xc0]
crc32b -64(%edx,%eax,4), %ebx
// CHECK: crc32b 64(%edx,%eax,4), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0x5c,0x82,0x40]
crc32b 64(%edx,%eax,4), %ebx
// CHECK: crc32b 64(%edx,%eax), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0x5c,0x02,0x40]
crc32b 64(%edx,%eax), %ebx
// CHECK: crc32b %al, %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0xd8]
crc32b %al, %ebx
// CHECK: crc32b (%edx), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf0,0x1a]
crc32b (%edx), %ebx
// CHECK: crc32w 485498096, %ebx
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0x1d,0xf0,0x1c,0xf0,0x1c]
crc32w 485498096, %ebx
// CHECK: crc32w 64(%edx), %ebx
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0x5a,0x40]
crc32w 64(%edx), %ebx
// CHECK: crc32w -64(%edx,%eax,4), %ebx
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0x5c,0x82,0xc0]
crc32w -64(%edx,%eax,4), %ebx
// CHECK: crc32w 64(%edx,%eax,4), %ebx
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0x5c,0x82,0x40]
crc32w 64(%edx,%eax,4), %ebx
// CHECK: crc32w 64(%edx,%eax), %ebx
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0x5c,0x02,0x40]
crc32w 64(%edx,%eax), %ebx
// CHECK: crc32w %ax, %ebx
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0xd8]
crc32w %ax, %ebx
// CHECK: crc32w (%edx), %ebx
// CHECK: encoding: [0x66,0xf2,0x0f,0x38,0xf1,0x1a]
crc32w (%edx), %ebx
// CHECK: crc32l 485498096, %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x1d,0xf0,0x1c,0xf0,0x1c]
crc32l 485498096, %ebx
// CHECK: crc32l 64(%edx), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x5a,0x40]
crc32l 64(%edx), %ebx
// CHECK: crc32l -64(%edx,%eax,4), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x5c,0x82,0xc0]
crc32l -64(%edx,%eax,4), %ebx
// CHECK: crc32l 64(%edx,%eax,4), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x5c,0x82,0x40]
crc32l 64(%edx,%eax,4), %ebx
// CHECK: crc32l 64(%edx,%eax), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x5c,0x02,0x40]
crc32l 64(%edx,%eax), %ebx
// CHECK: crc32l %eax, %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0xd8]
crc32l %eax, %ebx
// CHECK: crc32l (%edx), %ebx
// CHECK: encoding: [0xf2,0x0f,0x38,0xf1,0x1a]
crc32l (%edx), %ebx
// CHECK: pcmpestri $0, -485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x61,0x8c,0x82,0x10,0xe3,0x0f,0xe3,0x00]
pcmpestri $0, -485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpestri $0, 485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x61,0x8c,0x82,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpestri $0, 485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpestri $0, 485498096(%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x61,0x8a,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpestri $0, 485498096(%edx), %xmm1
// CHECK: pcmpestri $0, 485498096, %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x61,0x0d,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpestri $0, 485498096, %xmm1
// CHECK: pcmpestri $0, 64(%edx,%eax), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x61,0x4c,0x02,0x40,0x00]
pcmpestri $0, 64(%edx,%eax), %xmm1
// CHECK: pcmpestri $0, (%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x61,0x0a,0x00]
pcmpestri $0, (%edx), %xmm1
// CHECK: pcmpestri $0, %xmm1, %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x61,0xc9,0x00]
pcmpestri $0, %xmm1, %xmm1
// CHECK: pcmpestrm $0, -485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x60,0x8c,0x82,0x10,0xe3,0x0f,0xe3,0x00]
pcmpestrm $0, -485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpestrm $0, 485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x60,0x8c,0x82,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpestrm $0, 485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpestrm $0, 485498096(%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x60,0x8a,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpestrm $0, 485498096(%edx), %xmm1
// CHECK: pcmpestrm $0, 485498096, %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x60,0x0d,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpestrm $0, 485498096, %xmm1
// CHECK: pcmpestrm $0, 64(%edx,%eax), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x60,0x4c,0x02,0x40,0x00]
pcmpestrm $0, 64(%edx,%eax), %xmm1
// CHECK: pcmpestrm $0, (%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x60,0x0a,0x00]
pcmpestrm $0, (%edx), %xmm1
// CHECK: pcmpestrm $0, %xmm1, %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x60,0xc9,0x00]
pcmpestrm $0, %xmm1, %xmm1
// CHECK: pcmpgtq -485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x38,0x37,0x8c,0x82,0x10,0xe3,0x0f,0xe3]
pcmpgtq -485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpgtq 485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x38,0x37,0x8c,0x82,0xf0,0x1c,0xf0,0x1c]
pcmpgtq 485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpgtq 485498096(%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x38,0x37,0x8a,0xf0,0x1c,0xf0,0x1c]
pcmpgtq 485498096(%edx), %xmm1
// CHECK: pcmpgtq 485498096, %xmm1
// CHECK: encoding: [0x66,0x0f,0x38,0x37,0x0d,0xf0,0x1c,0xf0,0x1c]
pcmpgtq 485498096, %xmm1
// CHECK: pcmpgtq 64(%edx,%eax), %xmm1
// CHECK: encoding: [0x66,0x0f,0x38,0x37,0x4c,0x02,0x40]
pcmpgtq 64(%edx,%eax), %xmm1
// CHECK: pcmpgtq (%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x38,0x37,0x0a]
pcmpgtq (%edx), %xmm1
// CHECK: pcmpgtq %xmm1, %xmm1
// CHECK: encoding: [0x66,0x0f,0x38,0x37,0xc9]
pcmpgtq %xmm1, %xmm1
// CHECK: pcmpistri $0, -485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x63,0x8c,0x82,0x10,0xe3,0x0f,0xe3,0x00]
pcmpistri $0, -485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpistri $0, 485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x63,0x8c,0x82,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpistri $0, 485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpistri $0, 485498096(%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x63,0x8a,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpistri $0, 485498096(%edx), %xmm1
// CHECK: pcmpistri $0, 485498096, %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x63,0x0d,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpistri $0, 485498096, %xmm1
// CHECK: pcmpistri $0, 64(%edx,%eax), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x63,0x4c,0x02,0x40,0x00]
pcmpistri $0, 64(%edx,%eax), %xmm1
// CHECK: pcmpistri $0, (%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x63,0x0a,0x00]
pcmpistri $0, (%edx), %xmm1
// CHECK: pcmpistri $0, %xmm1, %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x63,0xc9,0x00]
pcmpistri $0, %xmm1, %xmm1
// CHECK: pcmpistrm $0, -485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x62,0x8c,0x82,0x10,0xe3,0x0f,0xe3,0x00]
pcmpistrm $0, -485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpistrm $0, 485498096(%edx,%eax,4), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x62,0x8c,0x82,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpistrm $0, 485498096(%edx,%eax,4), %xmm1
// CHECK: pcmpistrm $0, 485498096(%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x62,0x8a,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpistrm $0, 485498096(%edx), %xmm1
// CHECK: pcmpistrm $0, 485498096, %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x62,0x0d,0xf0,0x1c,0xf0,0x1c,0x00]
pcmpistrm $0, 485498096, %xmm1
// CHECK: pcmpistrm $0, 64(%edx,%eax), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x62,0x4c,0x02,0x40,0x00]
pcmpistrm $0, 64(%edx,%eax), %xmm1
// CHECK: pcmpistrm $0, (%edx), %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x62,0x0a,0x00]
pcmpistrm $0, (%edx), %xmm1
// CHECK: pcmpistrm $0, %xmm1, %xmm1
// CHECK: encoding: [0x66,0x0f,0x3a,0x62,0xc9,0x00]
pcmpistrm $0, %xmm1, %xmm1