Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86][test] Pre-commit test for #77731
- Loading branch information
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
... |