Files
clang-p2996/llvm/test/CodeGen/SystemZ/unaligned-02.ll
Jonas Paulsson 84831bdfed [SystemZ] Make 128 bit integers be aligned to 8 bytes.
The SystemZ ABI says that 128 bit integers should be aligned to only 8 bytes.

Reviewed By: Ulrich Weigand, Nikita Popov

Differential Revision: https://reviews.llvm.org/D130900
2022-08-03 15:39:54 +02:00

14 lines
382 B
LLVM

; Check that an unaligned i128 access get the correct alignment added.
;
; RUN: llc < %s -mtriple=s390x-linux-gnu -stop-after=pre-isel-intrinsic-lowering \
; RUN: | FileCheck %s
define void @f1(ptr %ptr) {
; CHECK: define void @f1(ptr %ptr) {
; CHECK-NEXT: store i128 0, ptr %ptr, align 8
; CHECK-NEXT: ret void
; CHECK-NEXT: }
store i128 0, ptr %ptr
ret void
}