reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
; 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, %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
}