~louis/ubuntu/trusty/clamav/lp799623_fix_logrotate

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/vec_ins_extract.ll

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2010-03-12 11:30:04 UTC
  • mfrom: (0.41.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100312113004-b0fop4bkycszdd0z
Tags: 0.96~rc1+dfsg-0ubuntu1
* New upstream RC - FFE (LP: #537636):
  - Add OfficialDatabaseOnly option to clamav-base.postinst.in
  - Add LocalSocketGroup option to clamav-base.postinst.in
  - Add LocalSocketMode option to clamav-base.postinst.in
  - Add CrossFilesystems option to clamav-base.postinst.in
  - Add ClamukoScannerCount option to clamav-base.postinst.in
  - Add BytecodeSecurity opiton to clamav-base.postinst.in
  - Add DetectionStatsHostID option to clamav-freshclam.postinst.in
  - Add Bytecode option to clamav-freshclam.postinst.in
  - Add MilterSocketGroup option to clamav-milter.postinst.in
  - Add MilterSocketMode option to clamav-milter.postinst.in
  - Add ReportHostname option to clamav-milter.postinst.in
  - Bump libclamav SO version to 6.1.0 in libclamav6.install
  - Drop clamdmon from clamav.examples (no longer shipped by upstream)
  - Drop libclamav.a from libclamav-dev.install (not built by upstream)
  - Update SO version for lintian override for libclamav6
  - Add new Bytecode Testing Tool, usr/bin/clambc, to clamav.install
  - Add build-depends on python and python-setuptools for new test suite
  - Update debian/copyright for the embedded copy of llvm (using the system
    llvm is not currently feasible)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; CLAMAV-local: no opt
 
2
; RUNX: opt < %s -scalarrepl -instcombine | \
 
3
; RUNX:   llc -march=x86 -mcpu=yonah | not grep sub.*esp
 
4
; RUN: true
 
5
;
 
6
 
 
7
; This checks that various insert/extract idiom work without going to the
 
8
; stack.
 
9
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32"
 
10
 
 
11
define void @test(<4 x float>* %F, float %f) {
 
12
entry:
 
13
        %tmp = load <4 x float>* %F             ; <<4 x float>> [#uses=2]
 
14
        %tmp3 = fadd <4 x float> %tmp, %tmp             ; <<4 x float>> [#uses=1]
 
15
        %tmp10 = insertelement <4 x float> %tmp3, float %f, i32 0               ; <<4 x float>> [#uses=2]
 
16
        %tmp6 = fadd <4 x float> %tmp10, %tmp10         ; <<4 x float>> [#uses=1]
 
17
        store <4 x float> %tmp6, <4 x float>* %F
 
18
        ret void
 
19
}
 
20
 
 
21
define void @test2(<4 x float>* %F, float %f) {
 
22
entry:
 
23
        %G = alloca <4 x float>, align 16               ; <<4 x float>*> [#uses=3]
 
24
        %tmp = load <4 x float>* %F             ; <<4 x float>> [#uses=2]
 
25
        %tmp3 = fadd <4 x float> %tmp, %tmp             ; <<4 x float>> [#uses=1]
 
26
        store <4 x float> %tmp3, <4 x float>* %G
 
27
        %tmp.upgrd.1 = getelementptr <4 x float>* %G, i32 0, i32 2              ; <float*> [#uses=1]
 
28
        store float %f, float* %tmp.upgrd.1
 
29
        %tmp4 = load <4 x float>* %G            ; <<4 x float>> [#uses=2]
 
30
        %tmp6 = fadd <4 x float> %tmp4, %tmp4           ; <<4 x float>> [#uses=1]
 
31
        store <4 x float> %tmp6, <4 x float>* %F
 
32
        ret void
 
33
}
 
34
 
 
35
define void @test3(<4 x float>* %F, float* %f) {
 
36
entry:
 
37
        %G = alloca <4 x float>, align 16               ; <<4 x float>*> [#uses=2]
 
38
        %tmp = load <4 x float>* %F             ; <<4 x float>> [#uses=2]
 
39
        %tmp3 = fadd <4 x float> %tmp, %tmp             ; <<4 x float>> [#uses=1]
 
40
        store <4 x float> %tmp3, <4 x float>* %G
 
41
        %tmp.upgrd.2 = getelementptr <4 x float>* %G, i32 0, i32 2              ; <float*> [#uses=1]
 
42
        %tmp.upgrd.3 = load float* %tmp.upgrd.2         ; <float> [#uses=1]
 
43
        store float %tmp.upgrd.3, float* %f
 
44
        ret void
 
45
}
 
46
 
 
47
define void @test4(<4 x float>* %F, float* %f) {
 
48
entry:
 
49
        %tmp = load <4 x float>* %F             ; <<4 x float>> [#uses=2]
 
50
        %tmp5.lhs = extractelement <4 x float> %tmp, i32 0              ; <float> [#uses=1]
 
51
        %tmp5.rhs = extractelement <4 x float> %tmp, i32 0              ; <float> [#uses=1]
 
52
        %tmp5 = fadd float %tmp5.lhs, %tmp5.rhs         ; <float> [#uses=1]
 
53
        store float %tmp5, float* %f
 
54
        ret void
 
55
}