blob: da1e036eb997942e57a2cdd902daf70996cea949 [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:
7; CHECK: usw $zero
8 %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