bolt/deps/llvm-18.1.8/llvm/test/CodeGen/Mips/swzero.ll

20 lines
340 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: llc -march=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
}