xref: /llvm-project/llvm/test/CodeGen/Mips/load-max-alignment.ll (revision 88218d5c5282c7b13bee667a0ce975a540aed74c)
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2;; Loading a value with max aligment triggered an assertion due to unsigned
3;; integer truncation causing 1<<32 to be interpreted as 0 after the max
4;; alignment was increased in df84c1fe78130a86445d57563dea742e1b85156a
5; RUN: llc -mtriple=mips64 -target-abi=n64 -relocation-model=pic < %s | FileCheck %s
6
7define i32 @load_max_align(ptr %arg) nounwind {
8; CHECK-LABEL: load_max_align:
9; CHECK:       # %bb.0: # %entry
10; CHECK-NEXT:    lw $2, 0($4)
11; CHECK-NEXT:    jr $ra
12; CHECK-NEXT:    nop
13entry:
14  %result = load i32, ptr %arg, align 4294967296
15  ret i32 %result
16}
17