X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=test%2FFeature%2Finstructions.ll;h=d0c303d71914c17baa7fa5d6d22db61944e0b7b3;hb=5c1f17221344fe24f8ba78fdbac7db4f79ded257;hp=99cec7699c90b32cdb5223ceb529e9717edd37f0;hpb=f40210dd26ccf796d9e45fd5fb0b9e3b00f2e949;p=oota-llvm.git diff --git a/test/Feature/instructions.ll b/test/Feature/instructions.ll index 99cec7699c9..d0c303d7191 100644 --- a/test/Feature/instructions.ll +++ b/test/Feature/instructions.ll @@ -1,25 +1,24 @@ -; RUN: llvm-as %s -o - | llvm-dis > %t1.ll +; RUN: llvm-as < %s | llvm-dis > %t1.ll ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll ; RUN: diff %t1.ll %t2.ll -uint %test_extractelement(<4 x uint> %V) { - %R = extractelement <4 x uint> %V, uint 1 - ret uint %R +define i32 @test_extractelement(<4 x i32> %V) { + %R = extractelement <4 x i32> %V, i32 1 ; [#uses=1] + ret i32 %R } -<4 x uint> %test_insertelement(<4 x uint> %V) { - %R = insertelement <4 x uint> %V, uint 0, uint 0 - ret <4 x uint> %R +define <4 x i32> @test_insertelement(<4 x i32> %V) { + %R = insertelement <4 x i32> %V, i32 0, i32 0 ; <<4 x i32>> [#uses=1] + ret <4 x i32> %R } -<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> - ret <4 x uint> %R +define <4 x i32> @test_shufflevector_u(<4 x i32> %V) { + %R = shufflevector <4 x i32> %V, <4 x i32> %V, <4 x i32> < i32 1, i32 undef, i32 7, i32 2 > ; <<4 x i32>> [#uses=1] + ret <4 x i32> %R } -<4 x float> %test_shufflevector(<4 x float> %V) { - %R = shufflevector <4 x float> %V, <4 x float> undef, - <4 x uint> < uint 1, uint undef, uint 7, uint 2> +define <4 x float> @test_shufflevector_f(<4 x float> %V) { + %R = shufflevector <4 x float> %V, <4 x float> undef, <4 x i32> < i32 1, i32 undef, i32 7, i32 2 > ; <<4 x float>> [#uses=1] ret <4 x float> %R } +