blob: 9562e55dcc2aa3a213f8f478f5597782a4223fb8 [file] [log] [blame]
Daniel Sanders8008de52015-10-15 14:34:23 +00001; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mattr=mips16 -mattr=+soft-float -mips16-hard-float -relocation-model=static -mips16-constant-islands < %s | FileCheck %s -check-prefix=jal16
Reed Kotler2fc05be2013-11-21 05:13:23 +00002
3@j = global i32 10, align 4
4@.str = private unnamed_addr constant [11 x i8] c"at bottom\0A\00", align 1
5@i = common global i32 0, align 4
6
7; Function Attrs: nounwind
8define i32 @main() #0 {
9entry:
10 %retval = alloca i32, align 4
11 store i32 0, i32* %retval
12 br label %z
13
14z: ; preds = %y, %entry
15 %call = call i32 bitcast (i32 (...)* @foo to i32 ()*)()
16 call void asm sideeffect ".space 10000000", ""() #2, !srcloc !1
17 br label %y
18
19y: ; preds = %z
David Blaikie23af6482015-04-16 23:24:18 +000020 %call1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0))
Reed Kotler2fc05be2013-11-21 05:13:23 +000021 br label %z
22
23return: ; No predecessors!
David Blaikiea79ac142015-02-27 21:17:42 +000024 %0 = load i32, i32* %retval
Reed Kotler2fc05be2013-11-21 05:13:23 +000025 ret i32 %0
26; jal16: jal $BB{{[0-9]+}}_{{[0-9]+}}
27}
28
29declare i32 @foo(...) #1
30
31declare i32 @printf(i8*, ...) #1
32
33attributes #0 = { nounwind "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
34attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
35attributes #2 = { nounwind }
36
Duncan P. N. Exon Smithbe7ea192014-12-15 19:07:53 +000037!1 = !{i32 68}