diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-08 08:55:49 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2015-04-09 15:04:38 -0700 |
commit | 4c5e43da7792f75567b693105cc53e3f1992ad98 (patch) | |
tree | 1b2c9792582e12f5af0b1512e3094425f0dc0df9 /test/CodeGen/X86/vec_zero_cse.ll | |
parent | c75239e6119d0f9a74c57099d91cbc9bde56bf33 (diff) | |
download | external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.zip external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.gz external_llvm-4c5e43da7792f75567b693105cc53e3f1992ad98.tar.bz2 |
Update aosp/master llvm for rebase to r233350
Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49
Diffstat (limited to 'test/CodeGen/X86/vec_zero_cse.ll')
-rw-r--r-- | test/CodeGen/X86/vec_zero_cse.ll | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/test/CodeGen/X86/vec_zero_cse.ll b/test/CodeGen/X86/vec_zero_cse.ll index bda3fef..afde0ed 100644 --- a/test/CodeGen/X86/vec_zero_cse.ll +++ b/test/CodeGen/X86/vec_zero_cse.ll @@ -1,38 +1,39 @@ -; RUN: llc < %s -relocation-model=static -march=x86 -mcpu=yonah | FileCheck %s -; RUN: llc < %s -relocation-model=static -march=x86 -mcpu=yonah | FileCheck -check-prefix CHECK2 %s +; RUN: llc < %s -relocation-model=static -mtriple=i686-unknown -mattr=+mmx,+sse3 | FileCheck %s ; 64-bit stores here do not use MMX. -; CHECK: xorps -; CHECK-NOT: xorps - -; CHECK2: pcmpeqd -; CHECK2-NOT: pcmpeqd - @M1 = external global <1 x i64> @M2 = external global <2 x i32> @S1 = external global <2 x i64> @S2 = external global <4 x i32> -define void @test() { +define void @test1() { +;CHECK-LABEL: @test1 +;CHECK: xorpd store <1 x i64> zeroinitializer, <1 x i64>* @M1 store <2 x i32> zeroinitializer, <2 x i32>* @M2 ret void } define void @test2() { +;CHECK-LABEL: @test2 +;CHECK: pshufd store <1 x i64> < i64 -1 >, <1 x i64>* @M1 store <2 x i32> < i32 -1, i32 -1 >, <2 x i32>* @M2 ret void } define void @test3() { +;CHECK-LABEL: @test3 +;CHECK: xorps store <2 x i64> zeroinitializer, <2 x i64>* @S1 store <4 x i32> zeroinitializer, <4 x i32>* @S2 ret void } define void @test4() { +;CHECK-LABEL: @test4 +;CHECK: pcmpeqd store <2 x i64> < i64 -1, i64 -1>, <2 x i64>* @S1 store <4 x i32> < i32 -1, i32 -1, i32 -1, i32 -1 >, <4 x i32>* @S2 ret void |