diff options
author | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2015-02-23 15:23:22 +0000 |
---|---|---|
committer | Bruno Cardoso Lopes <bruno.cardoso@gmail.com> | 2015-02-23 15:23:22 +0000 |
commit | f488e2ae69e9677ccffacf6ab5e5e2a31b64a7c9 (patch) | |
tree | 40dd67cf4847622230e11a9318846aee7fc53acf /llvm/test/CodeGen/X86/vec_extract-mmx.ll | |
parent | 9e1c4c17d92d93d7bdc183d9f85a3a795e32e80a (diff) | |
download | bcm5719-llvm-f488e2ae69e9677ccffacf6ab5e5e2a31b64a7c9.tar.gz bcm5719-llvm-f488e2ae69e9677ccffacf6ab5e5e2a31b64a7c9.zip |
[X86][MMX] Add MMX instructions to foldable tables
Teach the peephole optimizer to work with MMX instructions by adding
entries into the foldable tables. This covers folding opportunities not
handled during isel.
llvm-svn: 230226
Diffstat (limited to 'llvm/test/CodeGen/X86/vec_extract-mmx.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/vec_extract-mmx.ll | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/test/CodeGen/X86/vec_extract-mmx.ll b/llvm/test/CodeGen/X86/vec_extract-mmx.ll index c7780b02376..19df059e2ec 100644 --- a/llvm/test/CodeGen/X86/vec_extract-mmx.ll +++ b/llvm/test/CodeGen/X86/vec_extract-mmx.ll @@ -23,8 +23,7 @@ define i32 @test0(<1 x i64>* %v4) { define i32 @test1(i32* nocapture readonly %ptr) { ; CHECK-LABEL: test1: ; CHECK: ## BB#0: ## %entry -; CHECK-NEXT: movd (%rdi), %mm0 -; CHECK-NEXT: pshufw $232, %mm0, %mm0 +; CHECK-NEXT: pshufw $232, (%rdi), %mm0 ; CHECK-NEXT: movd %mm0, %eax ; CHECK-NEXT: emms ; CHECK-NEXT: retq @@ -49,8 +48,7 @@ entry: define i32 @test2(i32* nocapture readonly %ptr) { ; CHECK-LABEL: test2: ; CHECK: ## BB#0: ## %entry -; CHECK-NEXT: movq (%rdi), %mm0 -; CHECK-NEXT: pshufw $232, %mm0, %mm0 +; CHECK-NEXT: pshufw $232, (%rdi), %mm0 ; CHECK-NEXT: movd %mm0, %eax ; CHECK-NEXT: emms ; CHECK-NEXT: retq |