[llvm] e4e0b65 - [X86][test] Pre-commit test for #77731
Shengchen Kan via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 11 02:52:00 PST 2024
Author: Shengchen Kan
Date: 2024-01-11T18:51:34+08:00
New Revision: e4e0b6583861c111e485cf503940e7d5d8bc6d20
URL: https://github.com/llvm/llvm-project/commit/e4e0b6583861c111e485cf503940e7d5d8bc6d20
DIFF: https://github.com/llvm/llvm-project/commit/e4e0b6583861c111e485cf503940e7d5d8bc6d20.diff
LOG: [X86][test] Pre-commit test for #77731
Added:
llvm/test/CodeGen/X86/apx/compress-evex.mir
Modified:
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/X86/apx/compress-evex.mir b/llvm/test/CodeGen/X86/apx/compress-evex.mir
new file mode 100644
index 00000000000000..13324cc5205f9d
--- /dev/null
+++ b/llvm/test/CodeGen/X86/apx/compress-evex.mir
@@ -0,0 +1,46 @@
+# RUN: llc %s -mtriple=x86_64-unknown -mattr=+ndd -start-before=x86-compress-evex -show-mc-encoding -o - | FileCheck %s
+
+...
+---
+name: ndd_2_non_ndd_xor
+body: |
+ bb.0.entry:
+ liveins: $rdi, $rsi
+ ; CHECK: xorq %rsi, %rax, %rax # encoding: [0x62,0xf4,0xfc,0x18,0x31,0xf0]
+ renamable $rax = ADD64rr_ND killed renamable $rdi, renamable $rsi, implicit-def dead $eflags
+ renamable $rax = XOR64rr_ND killed renamable $rax, killed renamable $rsi, implicit-def dead $eflags
+ RET64 $rax
+
+...
+---
+name: ndd_2_non_ndd_sub
+body: |
+ bb.0.entry:
+ liveins: $rdi, $rsi
+ ; CHECK: subq %rsi, %rax, %rax # encoding: [0x62,0xf4,0xfc,0x18,0x29,0xf0]
+ renamable $rax = ADD64rr_ND killed renamable $rdi, renamable $rsi, implicit-def dead $eflags
+ renamable $rax = SUB64rr_ND killed renamable $rax, killed renamable $rsi, implicit-def dead $eflags
+ RET64 $rax
+
+...
+---
+name: ndd_2_non_ndd_commutable
+body: |
+ bb.0.entry:
+ liveins: $rdi, $rsi
+ ; CHECK: xorq %rax, %rsi, %rax # encoding: [0x62,0xf4,0xfc,0x18,0x31,0xc6]
+ renamable $rax = ADD64rr_ND killed renamable $rdi, renamable $rsi, implicit-def dead $eflags
+ renamable $rax = XOR64rr_ND killed renamable $rsi, killed renamable $rax, implicit-def dead $eflags
+ RET64 $rax
+
+...
+---
+name: ndd_2_non_ndd_incommutable
+body: |
+ bb.0.entry:
+ liveins: $rdi, $rsi
+ ; CHECK: subq %rax, %rsi, %rax # encoding: [0x62,0xf4,0xfc,0x18,0x29,0xc6]
+ renamable $rax = ADD64rr_ND killed renamable $rdi, renamable $rsi, implicit-def dead $eflags
+ renamable $rax = SUB64rr_ND killed renamable $rsi, killed renamable $rax, implicit-def dead $eflags
+ RET64 $rax
+...
More information about the llvm-commits
mailing list