aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/Mips/swzero.ll
blob: 6059839e2de180a5536bbea96aa7103b7854c56c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
; RUN: llc -mtriple=mipsel < %s | FileCheck %s

%struct.unaligned = type <{ i32 }>

define void @zero_u(ptr nocapture %p) nounwind {
entry:
; CHECK: swl $zero
; CHECK: swr $zero
  store i32 0, ptr %p, align 1
  ret void
}

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