~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/CodeGen/PowerPC/vec_mul.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -march=ppc32 -mcpu=g5 | not grep mullw
 
2
; RUN: llc < %s -march=ppc32 -mcpu=g5 | grep vmsumuhm
 
3
 
 
4
define <4 x i32> @test_v4i32(<4 x i32>* %X, <4 x i32>* %Y) {
 
5
        %tmp = load <4 x i32>* %X               ; <<4 x i32>> [#uses=1]
 
6
        %tmp2 = load <4 x i32>* %Y              ; <<4 x i32>> [#uses=1]
 
7
        %tmp3 = mul <4 x i32> %tmp, %tmp2               ; <<4 x i32>> [#uses=1]
 
8
        ret <4 x i32> %tmp3
 
9
}
 
10
 
 
11
define <8 x i16> @test_v8i16(<8 x i16>* %X, <8 x i16>* %Y) {
 
12
        %tmp = load <8 x i16>* %X               ; <<8 x i16>> [#uses=1]
 
13
        %tmp2 = load <8 x i16>* %Y              ; <<8 x i16>> [#uses=1]
 
14
        %tmp3 = mul <8 x i16> %tmp, %tmp2               ; <<8 x i16>> [#uses=1]
 
15
        ret <8 x i16> %tmp3
 
16
}
 
17
 
 
18
define <16 x i8> @test_v16i8(<16 x i8>* %X, <16 x i8>* %Y) {
 
19
        %tmp = load <16 x i8>* %X               ; <<16 x i8>> [#uses=1]
 
20
        %tmp2 = load <16 x i8>* %Y              ; <<16 x i8>> [#uses=1]
 
21
        %tmp3 = mul <16 x i8> %tmp, %tmp2               ; <<16 x i8>> [#uses=1]
 
22
        ret <16 x i8> %tmp3
 
23
}