view test/CodeGen/Mips/swzero.ll @ 33:e4204d083e25

LLVM 3.5
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Thu, 12 Dec 2013 14:32:10 +0900
parents 95c75e76d11b
children afa8332a0e37
line wrap: on
line source

; RUN: llc -march=mipsel < %s | FileCheck %s

%struct.unaligned = type <{ i32 }>

define void @zero_u(%struct.unaligned* nocapture %p) nounwind {
entry:
; CHECK: swl $zero
; CHECK: swr $zero
  %x = getelementptr inbounds %struct.unaligned* %p, i32 0, i32 0
  store i32 0, i32* %x, align 1
  ret void
}

define void @zero_a(i32* nocapture %p) nounwind {
entry:
; CHECK: sw $zero
  store i32 0, i32* %p, align 4
  ret void
}