diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-07-12 18:06:44 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-07-12 18:06:44 +0000 |
| commit | 068a2253e925357c1b0d9cb2081a8cd7d9077715 (patch) | |
| tree | 4b97827b1b30d9d4372884641e989a2478ff40f0 /llvm/test/CodeGen/X86/fast-isel-ret-ext.ll | |
| parent | c30e0d759d82254334db9da629dd748a58fd6587 (diff) | |
| download | bcm5719-llvm-068a2253e925357c1b0d9cb2081a8cd7d9077715.tar.gz bcm5719-llvm-068a2253e925357c1b0d9cb2081a8cd7d9077715.zip | |
X86: Shrink certain forms of movsx.
In particular:
movsbw %al, %ax --> cbtw
movswl %ax, %eax --> cwtl
movslq %eax, %rax --> cltq
According to Intel's manual those have the same performance characteristics but
come with a smaller encoding.
llvm-svn: 186174
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel-ret-ext.ll')
| -rw-r--r-- | llvm/test/CodeGen/X86/fast-isel-ret-ext.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel-ret-ext.ll b/llvm/test/CodeGen/X86/fast-isel-ret-ext.ll index fd768cb9b33..395ad1e616a 100644 --- a/llvm/test/CodeGen/X86/fast-isel-ret-ext.ll +++ b/llvm/test/CodeGen/X86/fast-isel-ret-ext.ll @@ -26,7 +26,7 @@ define signext i16 @test4(i32 %y) nounwind { %conv = trunc i32 %y to i16 ret i16 %conv ; CHECK: test4: - ; CHECK: movswl {{.*}}, %eax + ; CHECK: {{(movswl.%.x, %eax|cwtl)}} } define zeroext i1 @test5(i32 %y) nounwind { |

