summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/SPARC/LeonFixCALLPassUT.ll
blob: 697590be4066244bbe6bd5ed9bf4bef7cd160ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
; RUN: llc %s -O0 -march=sparc -mcpu=at697e -o - | FileCheck %s -check-prefix=FIXCALL
; RUN: llc %s -O0 -march=sparc -mcpu=leon2 -mattr=+fixcall -o - | FileCheck %s -check-prefix=FIXCALL

; RUN: llc %s -O0 -march=sparc -mcpu=at697e -mattr=-fixcall -o - | FileCheck %s -check-prefix=NO_FIXCALL
; RUN: llc %s -O0 -march=sparc -mcpu=leon2  -o - | FileCheck %s -check-prefix=NO_FIXCALL


; FIXCALL-LABEL:       	immediate_call_test
; FIXCALL:       	call 763288

; NO_FIXCALL-LABEL:     immediate_call_test
; NO_FIXCALL:       	call 2047583640
define void @immediate_call_test() nounwind {
entry:
        call void asm sideeffect "call $0", "i"(i32 2047583640) nounwind
        ret void
}



OpenPOWER on IntegriCloud