mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
c7541c49a9
The patch and test case were originally written by Mans Rullgard. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147024 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
405 B
LLVM
20 lines
405 B
LLVM
; RUN: llc -march=mipsel < %s | FileCheck %s
|
|
|
|
%struct.unaligned = type <{ i32 }>
|
|
|
|
define void @zero_u(%struct.unaligned* nocapture %p) nounwind {
|
|
entry:
|
|
; CHECK: usw $zero
|
|
%x = getelementptr inbounds %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
|
|
}
|
|
|