llvm-6502/test/Transforms/GCSE/vectorops.ll
Reid Spencer eb1d74e0c8 For PR1319:
Remove && from the end of the lines to prevent tests from throwing run
lines into the background. Also, clean up places where the same command
is run multiple times by using a temporary file.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36142 91177308-0d34-0410-b5e6-96231b3b80d8
2007-04-16 17:36:08 +00:00

27 lines
867 B
LLVM

; RUN: llvm-upgrade < %s | llvm-as | opt -gcse -instcombine | \
; RUN: llvm-dis | not grep sub
uint %test_extractelement(<4 x uint> %V) {
%R = extractelement <4 x uint> %V, uint 1
%R2 = extractelement <4 x uint> %V, uint 1
%V = sub uint %R, %R2
ret uint %V
}
<4 x uint> %test_insertelement(<4 x uint> %V) {
%R = insertelement <4 x uint> %V, uint 0, uint 0
%R2 = insertelement <4 x uint> %V, uint 0, uint 0
%x = sub <4 x uint> %R, %R2
ret <4 x uint> %x
}
<4 x uint> %test_shufflevector(<4 x uint> %V) {
%R = shufflevector <4 x uint> %V, <4 x uint> %V,
<4 x uint> < uint 1, uint undef, uint 7, uint 2>
%R2 = shufflevector <4 x uint> %V, <4 x uint> %V,
<4 x uint> < uint 1, uint undef, uint 7, uint 2>
%x = sub <4 x uint> %R, %R2
ret <4 x uint> %x
}