mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-10 22:55:57 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120006 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
478 B
LLVM
17 lines
478 B
LLVM
; RUN: llc -filetype=obj -mtriple i686-pc-linux-gnu %s -o - | elf-dump | FileCheck %s
|
|
|
|
define i32 @f() nounwind optsize ssp {
|
|
entry:
|
|
%call = tail call i32 inttoptr (i64 42 to i32 ()*)() nounwind optsize
|
|
%add = add nsw i32 %call, 1
|
|
ret i32 %add
|
|
}
|
|
|
|
; CHECK: ('_relocations', [
|
|
; CHECK-NEXT: # Relocation 0x00000000
|
|
; CHECK-NEXT: (('r_offset', 0x00000004)
|
|
; CHECK-NEXT: ('r_sym', 0x00000000)
|
|
; CHECK-NEXT: ('r_type', 0x00000002)
|
|
; CHECK-NEXT: ),
|
|
; CHECK-NEXT: ])
|