Fangrui Song ae26f50aea [test] Change llc -march=mips* to -mtriple=mips*
Similar to 806761a7629df268c8aed49657aeccffa6bca449
2024-12-10 22:14:06 -08:00

20 lines
342 B
LLVM

; RUN: llc -mtriple=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
}