blob: 9aaee1509806f46008a53de6471072faa445a3cf [file] [log] [blame]
Akira Hatanaka964c8912011-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:
Jakob Stoklund Olesen4238a892012-08-09 22:08:24 +00007; CHECK: swl $zero
Akira Hatanaka63c0e2c2012-06-02 00:05:45 +00008; CHECK: swr $zero
David Blaikie79e6c742015-02-27 19:29:02 +00009 %x = getelementptr inbounds %struct.unaligned, %struct.unaligned* %p, i32 0, i32 0
Akira Hatanaka964c8912011-12-21 00:31:10 +000010 store i32 0, i32* %x, align 1
11 ret void
12}
13
14define void @zero_a(i32* nocapture %p) nounwind {
15entry:
16; CHECK: sw $zero
17 store i32 0, i32* %p, align 4
18 ret void
19}
20