summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/vec_extract-mmx.ll
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2015-02-23 15:23:22 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2015-02-23 15:23:22 +0000
commitf488e2ae69e9677ccffacf6ab5e5e2a31b64a7c9 (patch)
tree40dd67cf4847622230e11a9318846aee7fc53acf /llvm/test/CodeGen/X86/vec_extract-mmx.ll
parent9e1c4c17d92d93d7bdc183d9f85a3a795e32e80a (diff)
downloadbcm5719-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.ll6
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
OpenPOWER on IntegriCloud