blob: 2441ca29dda86604ee4213b3de896b8ca4f0a5dc [file] [log] [blame]
Akira Hatanakac7541c42011-12-21 00:31:10 +00001; RUN: llc -march=mipsel < %s | FileCheck %s
2
3%struct.unaligned = type <{ i32 }>
4
5define void @zero_u(%struct.unaligned* nocapture %p) nounwind {
6entry:
Akira Hatanakabdd26782012-06-02 00:05:45 +00007; CHECK: swr $zero
Akira Hatanakac7541c42011-12-21 00:31:10 +00008 %x = getelementptr inbounds %struct.unaligned* %p, i32 0, i32 0
9 store i32 0, i32* %x, align 1
10 ret void
11}
12
13define void @zero_a(i32* nocapture %p) nounwind {
14entry:
15; CHECK: sw $zero
16 store i32 0, i32* %p, align 4
17 ret void
18}
19