diff options
author | Shengchen Kan <shengchen.kan@intel.com> | 2024-06-13 22:51:22 +0800 |
---|---|---|
committer | Shengchen Kan <shengchen.kan@intel.com> | 2024-06-13 22:54:22 +0800 |
commit | 3d35b94e3a9abcf5f703267c7653fd6ef39870b6 (patch) | |
tree | 8c9a4661a807aed2be162f5ac3a49e76eba29e6a | |
parent | 8f795fc798f18d8e269a4a995210ec26803e6c97 (diff) | |
download | llvm-3d35b94e3a9abcf5f703267c7653fd6ef39870b6.zip llvm-3d35b94e3a9abcf5f703267c7653fd6ef39870b6.tar.gz llvm-3d35b94e3a9abcf5f703267c7653fd6ef39870b6.tar.bz2 |
[X86][test] Pre-commit tests for https://github.com/llvm/llvm-project/issues/95412
-rw-r--r-- | llvm/test/MC/Disassembler/X86/apx/rex2-format.txt | 6 | ||||
-rw-r--r-- | llvm/test/MC/X86/apx/rex2-format-att.s | 4 | ||||
-rw-r--r-- | llvm/test/MC/X86/apx/rex2-format-intel.s | 4 |
3 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/MC/Disassembler/X86/apx/rex2-format.txt b/llvm/test/MC/Disassembler/X86/apx/rex2-format.txt index 1ac057c..7412e23 100644 --- a/llvm/test/MC/Disassembler/X86/apx/rex2-format.txt +++ b/llvm/test/MC/Disassembler/X86/apx/rex2-format.txt @@ -21,6 +21,12 @@ # INTEL: movsxd r17, r16d 0xd5,0x58,0x63,0xc8 +# ATT: rep +# ATT-SAME: popcntl %r16d, %r17d +# INTEL: rep +# INTEL-SAME: popcnt r17d, r16d +0xf3,0xd5,0xd0,0xb8,0xc8 + ## MRMSrcRegCC # ATT: cmovll %r16d, %eax diff --git a/llvm/test/MC/X86/apx/rex2-format-att.s b/llvm/test/MC/X86/apx/rex2-format-att.s index 3dacd2a..a285f87 100644 --- a/llvm/test/MC/X86/apx/rex2-format-att.s +++ b/llvm/test/MC/X86/apx/rex2-format-att.s @@ -20,6 +20,10 @@ # CHECK: encoding: [0xd5,0x58,0x63,0xc8] movslq %r16d, %r17 +# CHECK: popcntl %r16d, %r17d +# CHECK: encoding: [0xf3,0xd5,0xd0,0xb8,0xc8] + popcntl %r16d, %r17d + ## MRMSrcRegCC # CHECK: cmovll %r16d, %eax diff --git a/llvm/test/MC/X86/apx/rex2-format-intel.s b/llvm/test/MC/X86/apx/rex2-format-intel.s index 935bd86..687cb77 100644 --- a/llvm/test/MC/X86/apx/rex2-format-intel.s +++ b/llvm/test/MC/X86/apx/rex2-format-intel.s @@ -20,6 +20,10 @@ # CHECK: encoding: [0xd5,0x58,0x63,0xc8] movsxd r17, r16d +# CHECK: popcnt r17d, r16d +# CHECK: encoding: [0xf3,0xd5,0xd0,0xb8,0xc8] + popcnt r17d, r16d + ## MRMSrcRegCC # CHECK: cmovl eax, r16d |