~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/Mips/swzero.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc -march=mipsel < %s | FileCheck %s
 
2
 
 
3
%struct.unaligned = type <{ i32 }>
 
4
 
 
5
define void @zero_u(%struct.unaligned* nocapture %p) nounwind {
 
6
entry:
 
7
; CHECK: swl $zero
 
8
; CHECK: swr $zero
 
9
  %x = getelementptr inbounds %struct.unaligned, %struct.unaligned* %p, i32 0, i32 0
 
10
  store i32 0, i32* %x, align 1
 
11
  ret void
 
12
}
 
13
 
 
14
define void @zero_a(i32* nocapture %p) nounwind {
 
15
entry:
 
16
; CHECK: sw $zero
 
17
  store i32 0, i32* %p, align 4
 
18
  ret void
 
19
}
 
20