diff options
author | Stephen Hines <srhines@google.com> | 2015-03-23 12:10:34 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2015-03-23 12:10:34 -0700 |
commit | ebe69fe11e48d322045d5949c83283927a0d790b (patch) | |
tree | c92f1907a6b8006628a4b01615f38264d29834ea /test/CodeGen/X86/combine-and.ll | |
parent | b7d2e72b02a4cb8034f32f8247a2558d2434e121 (diff) | |
download | external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.zip external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.tar.gz external_llvm-ebe69fe11e48d322045d5949c83283927a0d790b.tar.bz2 |
Update aosp/master LLVM for rebase to r230699.
Change-Id: I2b5be30509658cb8266be782de0ab24f9099f9b9
Diffstat (limited to 'test/CodeGen/X86/combine-and.ll')
-rw-r--r-- | test/CodeGen/X86/combine-and.ll | 148 |
1 files changed, 81 insertions, 67 deletions
diff --git a/test/CodeGen/X86/combine-and.ll b/test/CodeGen/X86/combine-and.ll index 59a7a19..bb46ac5 100644 --- a/test/CodeGen/X86/combine-and.ll +++ b/test/CodeGen/X86/combine-and.ll @@ -6,159 +6,173 @@ define <4 x i32> @test1(<4 x i32> %A) { +; CHECK-LABEL: test1: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3,4,5,6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 0, i32 0, i32 0> ret <4 x i32> %1 } -; CHECK-LABEL: test1 -; CHECK: blendps {{.*#+}} xmm0 = xmm0[0],xmm1[1,2,3] -; CHECK-NEXT: retq - define <4 x i32> @test2(<4 x i32> %A) { +; CHECK-LABEL: test2: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3],xmm1[4,5,6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 0, i32 -1, i32 0, i32 0> ret <4 x i32> %1 } -; CHECK-LABEL: test2 -; CHECK: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3],xmm1[4,5,6,7] -; CHECK-NEXT: retq - define <4 x i32> @test3(<4 x i32> %A) { +; CHECK-LABEL: test3: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1,2,3],xmm0[4,5],xmm1[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 0, i32 0, i32 -1, i32 0> ret <4 x i32> %1 } -; CHECK-LABEL: test3 -; CHECK: pblendw {{.*#+}} xmm0 = xmm1[0,1,2,3],xmm0[4,5],xmm1[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test4(<4 x i32> %A) { +; CHECK-LABEL: test4: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5],xmm0[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 0, i32 0, i32 0, i32 -1> ret <4 x i32> %1 } -; CHECK-LABEL: test4 -; CHECK: pblendw {{.*#+}} xmm0 = xmm1[0,1,2,3,4,5],xmm0[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test5(<4 x i32> %A) { +; CHECK-LABEL: test5: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5],xmm1[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 0, i32 -1, i32 0> ret <4 x i32> %1 } -; CHECK-LABEL: test5 -; CHECK: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5],xmm1[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test6(<4 x i32> %A) { +; CHECK-LABEL: test6: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 0, i32 -1, i32 0, i32 -1> ret <4 x i32> %1 } -; CHECK-LABEL: test6 -; CHECK: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test7(<4 x i32> %A) { +; CHECK-LABEL: test7: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1,2,3],xmm0[4,5,6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 0, i32 0, i32 -1, i32 -1> ret <4 x i32> %1 } -; CHECK-LABEL: test7 -; CHECK: pblendw {{.*#+}} xmm0 = xmm1[0,1,2,3],xmm0[4,5,6,7] -; CHECK-NEXT: retq - define <4 x i32> @test8(<4 x i32> %A) { +; CHECK-LABEL: test8: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3,4,5],xmm0[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 0, i32 0, i32 -1> ret <4 x i32> %1 } -; CHECK-LABEL: test8 -; CHECK: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3,4,5],xmm0[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test9(<4 x i32> %A) { +; CHECK-LABEL: test9: +; CHECK: # BB#0: +; CHECK-NEXT: movq {{.*#+}} xmm0 = xmm0[0],zero +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 -1, i32 0, i32 0> ret <4 x i32> %1 } -; CHECK-LABEL: test9 -; CHECK: movq %xmm0, %xmm0 -; CHECK-NEXT: retq - define <4 x i32> @test10(<4 x i32> %A) { +; CHECK-LABEL: test10: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3,4,5],xmm1[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 0, i32 -1, i32 -1, i32 0> ret <4 x i32> %1 } -; CHECK-LABEL: test10 -; CHECK: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3,4,5],xmm1[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test11(<4 x i32> %A) { +; CHECK-LABEL: test11: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3,4,5,6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 0, i32 -1, i32 -1, i32 -1> ret <4 x i32> %1 } -; CHECK-LABEL: test11 -; CHECK: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3,4,5,6,7] -; CHECK-NEXT: retq - define <4 x i32> @test12(<4 x i32> %A) { +; CHECK-LABEL: test12: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5],xmm1[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 -1, i32 -1, i32 0> ret <4 x i32> %1 } -; CHECK-LABEL: test12 -; CHECK: pblendw {{.*#+}} xmm0 = xmm0[0,1,2,3,4,5],xmm1[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test13(<4 x i32> %A) { +; CHECK-LABEL: test13: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1,2,3],xmm1[4,5],xmm0[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 -1, i32 0, i32 -1> ret <4 x i32> %1 } -; CHECK-LABEL: test13 -; CHECK: pblendw {{.*#+}} xmm0 = xmm0[0,1,2,3],xmm1[4,5],xmm0[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test14(<4 x i32> %A) { +; CHECK-LABEL: test14: +; CHECK: # BB#0: +; CHECK-NEXT: pxor %xmm1, %xmm1 +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5,6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 0, i32 -1, i32 -1> ret <4 x i32> %1 } -; CHECK-LABEL: test14 -; CHECK: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5,6,7] -; CHECK-NEXT: retq - define <4 x i32> @test15(<4 x i32> %A, <4 x i32> %B) { +; CHECK-LABEL: test15: +; CHECK: # BB#0: +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5,6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 0, i32 -1, i32 -1> %2 = and <4 x i32> %B, <i32 0, i32 -1, i32 0, i32 0> %3 = or <4 x i32> %1, %2 ret <4 x i32> %3 } -; CHECK-LABEL: test15 -; CHECK: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5,6,7] -; CHECK-NEXT: retq - define <4 x i32> @test16(<4 x i32> %A, <4 x i32> %B) { +; CHECK-LABEL: test16: +; CHECK: # BB#0: +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5],xmm1[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 -1, i32 0, i32 -1, i32 0> %2 = and <4 x i32> %B, <i32 0, i32 -1, i32 0, i32 -1> %3 = or <4 x i32> %1, %2 ret <4 x i32> %3 } -; CHECK-LABEL: test16 -; CHECK: pblendw {{.*#+}} xmm0 = xmm0[0,1],xmm1[2,3],xmm0[4,5],xmm1[6,7] -; CHECK-NEXT: retq - define <4 x i32> @test17(<4 x i32> %A, <4 x i32> %B) { +; CHECK-LABEL: test17: +; CHECK: # BB#0: +; CHECK-NEXT: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7] +; CHECK-NEXT: retq %1 = and <4 x i32> %A, <i32 0, i32 -1, i32 0, i32 -1> %2 = and <4 x i32> %B, <i32 -1, i32 0, i32 -1, i32 0> %3 = or <4 x i32> %1, %2 ret <4 x i32> %3 } -; CHECK-LABEL: test17 -; CHECK: pblendw {{.*#+}} xmm0 = xmm1[0,1],xmm0[2,3],xmm1[4,5],xmm0[6,7] -; CHECK-NEXT: retq |