brintos

brintos / llvm-project-archived public Read only

0
0
Text · 658 B · 595afec Raw
18 lines · plain
1; Make sure that when the stack may be misaligned on function entry, fixed frame2; elements (here: XMM spills) are accessed using instructions that tolerate3; unaligned access.4;5; RUN: llc -mtriple=x86_64-unknown-linux-gnu -mcpu=x86-64 -mattr=+sse,+sse-unaligned-mem --frame-pointer=all < %s | FileCheck %s6 7define dso_local preserve_allcc void @func() #0 {8; CHECK-LABEL: func:9; CHECK: movups  %xmm0, -{{[0-9]+}}(%rbp)10  call void asm sideeffect "", "~{xmm0},~{dirflag},~{fpsr},~{flags}"() #111; CHECK: movups  -{{[0-9]+}}(%rbp), %xmm012  ret void13}14 15attributes #0 = { nounwind }16!llvm.module.flags = !{!0}17!0 = !{i32 2, !"override-stack-alignment", i32 8}18