projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cd5e7a
)
Add an additional testcase which checks ops with multiple users.
author
Nadav Rotem
<nadav.rotem@intel.com>
Tue, 3 Apr 2012 07:39:36 +0000
(07:39 +0000)
committer
Nadav Rotem
<nadav.rotem@intel.com>
Tue, 3 Apr 2012 07:39:36 +0000
(07:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153939
91177308
-0d34-0410-b5e6-
96231b3b80d8
test/CodeGen/X86/SwizzleShuff.ll
patch
|
blob
|
history
diff --git
a/test/CodeGen/X86/SwizzleShuff.ll
b/test/CodeGen/X86/SwizzleShuff.ll
index 224556deda1e3765cad43442df137bd7abbc84be..c60d9b899cf866c516de617f000866171998d055 100644
(file)
--- a/
test/CodeGen/X86/SwizzleShuff.ll
+++ b/
test/CodeGen/X86/SwizzleShuff.ll
@@
-29,3
+29,15
@@
define <4 x i32> @multi_use_swizzle (<4 x i32>* %pA, <4 x i32>* %pB) {
%R = xor <4 x i32> %S1, %S2
ret <4 x i32> %R
}
+
+; CHECK: pull_bitcast2
+; CHECK: xorl
+; CHECK: ret
+define <4 x i8> @pull_bitcast2 (<4 x i8>* %pA, <4 x i8>* %pB, <4 x i8>* %pC) {
+ %A = load <4 x i8>* %pA
+ store <4 x i8> %A, <4 x i8>* %pC
+ %B = load <4 x i8>* %pB
+ %C = xor <4 x i8> %A, %B
+ store <4 x i8> %C, <4 x i8>* %pA
+ ret <4 x i8> %C
+}