~ubuntu-branches/ubuntu/maverick/clamav/maverick-backports

« back to all changes in this revision

Viewing changes to libclamav/c++/llvm/test/CodeGen/X86/2008-06-13-NotVolatileLoadStore.ll

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran, Stephen Gran, Michael Tautschnig
  • Date: 2010-04-26 21:41:18 UTC
  • mfrom: (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100426214118-i6lo606wnh7ywfj6
Tags: 0.96+dfsg-4
[ Stephen Gran ]
* Fixed typo in clamav-milter's postinst

[ Michael Tautschnig ]
* Fixed typo in clamav-freshclam's postinst (closes: #579271)
* Debconf translation updates
  - Portuguese (closes: #579068)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -march=x86 | not grep movsd
 
2
; RUN: llc < %s -march=x86 | grep movw
 
3
; RUN: llc < %s -march=x86 | grep addw
 
4
; These transforms are turned off for volatile loads and stores.
 
5
; Check that they weren't turned off for all loads and stores!
 
6
 
 
7
@atomic = global double 0.000000e+00            ; <double*> [#uses=1]
 
8
@atomic2 = global double 0.000000e+00           ; <double*> [#uses=1]
 
9
@ioport = global i32 0          ; <i32*> [#uses=1]
 
10
@ioport2 = global i32 0         ; <i32*> [#uses=1]
 
11
 
 
12
define i16 @f(i64 %x) {
 
13
        %b = bitcast i64 %x to double           ; <double> [#uses=1]
 
14
        store double %b, double* @atomic
 
15
        store double 0.000000e+00, double* @atomic2
 
16
        %l = load i32* @ioport          ; <i32> [#uses=1]
 
17
        %t = trunc i32 %l to i16                ; <i16> [#uses=1]
 
18
        %l2 = load i32* @ioport2                ; <i32> [#uses=1]
 
19
        %tmp = lshr i32 %l2, 16         ; <i32> [#uses=1]
 
20
        %t2 = trunc i32 %tmp to i16             ; <i16> [#uses=1]
 
21
        %f = add i16 %t, %t2            ; <i16> [#uses=1]
 
22
        ret i16 %f
 
23
}