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

« back to all changes in this revision

Viewing changes to test/CodeGen/X86/misaligned-memset.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 -mtriple=x86_64-apple-darwin -mcpu=nehalem < %s | FileCheck %s
 
2
 
 
3
@a = common global [3 x i64] zeroinitializer, align 16
 
4
 
 
5
define i32 @main() nounwind ssp {
 
6
; CHECK: movups
 
7
entry:
 
8
  %retval = alloca i32, align 4
 
9
  store i32 0, i32* %retval
 
10
  call void @llvm.memset.p0i8.i64(i8* bitcast (i64* getelementptr inbounds ([3 x i64]* @a, i32 0, i64 1) to i8*), i8 0, i64 16, i32 1, i1 false)
 
11
  %0 = load i32* %retval
 
12
  ret i32 %0
 
13
}
 
14
 
 
15
declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind