mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
bb616e9e7a
This addresses some post-commit comments from jrtc27 to make the tests easier to process.
17 lines
660 B
LLVM
17 lines
660 B
LLVM
; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=+relax %s -o - | llvm-readobj -r - | FileCheck %s
|
|
; RUN: llc -filetype=obj -mtriple=riscv32 -mattr=-relax %s -o - | llvm-readobj -r - | FileCheck %s
|
|
|
|
; This test checks that a diff inserted via inline assembly always causes
|
|
; relocations. This isn't an assembly test as the assembler takes a different
|
|
; path through LLVM, which is already covered by the fixups-expr.s test.
|
|
|
|
define i32 @main() nounwind {
|
|
entry:
|
|
%retval = alloca i32, align 4
|
|
store i32 0, i32* %retval, align 4
|
|
; CHECK: R_RISCV_ADD64 b
|
|
; CHECK-NEXT: R_RISCV_SUB64 a
|
|
call void asm sideeffect "a:\0Ab:\0A.dword b-a", ""()
|
|
ret i32 0
|
|
}
|