-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV] Support uimm32 immediates in RISCVInstrInfo::movImm for RV32. (…
- Loading branch information
Showing
2 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4 | ||
; RUN: llc < %s -mtriple=riscv32 | FileCheck %s | ||
|
||
define void @foo() { | ||
; CHECK-LABEL: foo: | ||
; CHECK: # %bb.0: | ||
; CHECK-NEXT: addi sp, sp, -2032 | ||
; CHECK-NEXT: .cfi_def_cfa_offset 2032 | ||
; CHECK-NEXT: sw ra, 2028(sp) # 4-byte Folded Spill | ||
; CHECK-NEXT: .cfi_offset ra, -4 | ||
; CHECK-NEXT: li a0, -2048 | ||
; CHECK-NEXT: sub sp, sp, a0 | ||
; CHECK-NEXT: .cfi_def_cfa_offset -16 | ||
; CHECK-NEXT: addi a0, sp, 4 | ||
; CHECK-NEXT: call use | ||
; CHECK-NEXT: li a0, -2048 | ||
; CHECK-NEXT: add sp, sp, a0 | ||
; CHECK-NEXT: lw ra, 2028(sp) # 4-byte Folded Reload | ||
; CHECK-NEXT: addi sp, sp, 2032 | ||
; CHECK-NEXT: ret | ||
%1 = alloca [1073741818 x i32], align 4 | ||
call void @use(ptr %1) | ||
ret void | ||
} | ||
|
||
declare void @use(ptr) |