|
| 1 | +# RUN: llc %s -mtriple=x86_64-unknown -mattr=+ndd -start-before=x86-compress-evex -show-mc-encoding -o - | FileCheck %s |
| 2 | + |
| 3 | +... |
| 4 | +--- |
| 5 | +name: ndd_2_non_ndd_xor |
| 6 | +body: | |
| 7 | + bb.0.entry: |
| 8 | + liveins: $rdi, $rsi |
| 9 | + ; CHECK: xorq %rsi, %rax, %rax # encoding: [0x62,0xf4,0xfc,0x18,0x31,0xf0] |
| 10 | + renamable $rax = ADD64rr_ND killed renamable $rdi, renamable $rsi, implicit-def dead $eflags |
| 11 | + renamable $rax = XOR64rr_ND killed renamable $rax, killed renamable $rsi, implicit-def dead $eflags |
| 12 | + RET64 $rax |
| 13 | +
|
| 14 | +... |
| 15 | +--- |
| 16 | +name: ndd_2_non_ndd_sub |
| 17 | +body: | |
| 18 | + bb.0.entry: |
| 19 | + liveins: $rdi, $rsi |
| 20 | + ; CHECK: subq %rsi, %rax, %rax # encoding: [0x62,0xf4,0xfc,0x18,0x29,0xf0] |
| 21 | + renamable $rax = ADD64rr_ND killed renamable $rdi, renamable $rsi, implicit-def dead $eflags |
| 22 | + renamable $rax = SUB64rr_ND killed renamable $rax, killed renamable $rsi, implicit-def dead $eflags |
| 23 | + RET64 $rax |
| 24 | +
|
| 25 | +... |
| 26 | +--- |
| 27 | +name: ndd_2_non_ndd_commutable |
| 28 | +body: | |
| 29 | + bb.0.entry: |
| 30 | + liveins: $rdi, $rsi |
| 31 | + ; CHECK: xorq %rax, %rsi, %rax # encoding: [0x62,0xf4,0xfc,0x18,0x31,0xc6] |
| 32 | + renamable $rax = ADD64rr_ND killed renamable $rdi, renamable $rsi, implicit-def dead $eflags |
| 33 | + renamable $rax = XOR64rr_ND killed renamable $rsi, killed renamable $rax, implicit-def dead $eflags |
| 34 | + RET64 $rax |
| 35 | +
|
| 36 | +... |
| 37 | +--- |
| 38 | +name: ndd_2_non_ndd_incommutable |
| 39 | +body: | |
| 40 | + bb.0.entry: |
| 41 | + liveins: $rdi, $rsi |
| 42 | + ; CHECK: subq %rax, %rsi, %rax # encoding: [0x62,0xf4,0xfc,0x18,0x29,0xc6] |
| 43 | + renamable $rax = ADD64rr_ND killed renamable $rdi, renamable $rsi, implicit-def dead $eflags |
| 44 | + renamable $rax = SUB64rr_ND killed renamable $rsi, killed renamable $rax, implicit-def dead $eflags |
| 45 | + RET64 $rax |
| 46 | +... |
0 commit comments