Skip to content

Commit

Permalink
[RISCV] Update relax-per-target-feature.ll to use hexadecimal constan…
Browse files Browse the repository at this point in the history
…ts. NFC

Needed after 3dde0d0
  • Loading branch information
topperc committed Dec 15, 2023
1 parent e21b7e2 commit 7fee58a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions llvm/test/CodeGen/RISCV/relax-per-target-feature.ll
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
declare dso_local i32 @ext(i32)

; CHECK-LABEL: <f>:
; CHECK-NEXT: c.li a0, 31
; CHECK-NEXT: auipc t1, 0
; CHECK-NEXT: c.li a0, 0x1f
; CHECK-NEXT: auipc t1, 0x0
; CHECK-NEXT: R_RISCV_CALL_PLT ext
; CHECK-NEXT: R_RISCV_RELAX *ABS*
; CHECK-NEXT: jalr zero, 0(t1)
; CHECK-NEXT: jalr zero, 0x0(t1)
define dso_local i32 @f() #0 {
entry:
%r = tail call i32 @ext(i32 31)
ret i32 %r
}

; CHECK-LABEL: <g>:
; CHECK-NEXT: addi a0, zero, 31
; CHECK-NEXT: auipc t1, 0
; CHECK-NEXT: addi a0, zero, 0x1f
; CHECK-NEXT: auipc t1, 0x0
; CHECK-NEXT: R_RISCV_CALL_PLT ext
; CHECK-NEXT: jalr zero, 0(t1)
; CHECK-NEXT: jalr zero, 0x0(t1)
define dso_local i32 @g() #1 {
entry:
%r = tail call i32 @ext(i32 31)
Expand Down

0 comments on commit 7fee58a

Please sign in to comment.