1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=riscv32 -verify-machineinstrs < %s \
3 ; RUN: | FileCheck %s -check-prefix=RV32I
5 ; Check load/store operations on values wider than what is natively supported
7 define i64 @load_i64(i64 *%a) nounwind {
8 ; RV32I-LABEL: load_i64:
10 ; RV32I-NEXT: lw a2, 0(a0)
11 ; RV32I-NEXT: lw a1, 4(a0)
12 ; RV32I-NEXT: mv a0, a2
14 %1 = load i64, i64* %a
18 @val64 = local_unnamed_addr global i64 2863311530, align 8
20 define i64 @load_i64_global() nounwind {
21 ; RV32I-LABEL: load_i64_global:
23 ; RV32I-NEXT: lui a1, %hi(val64)
24 ; RV32I-NEXT: lw a0, %lo(val64)(a1)
25 ; RV32I-NEXT: addi a1, a1, %lo(val64)
26 ; RV32I-NEXT: lw a1, 4(a1)
28 %1 = load i64, i64* @val64