Implement methods that enable expansion of load immediate
[oota-llvm.git] / test / MC / Mips / higher_highest.ll
1 ; DISABLE: llc -march=mips64el -mcpu=mips64 -mattr=n64  -force-mips-long-branch -filetype=obj < %s -o - | elf-dump --dump-section-data | FileCheck %s
2 ; RUN: false
3 ; XFAIL: *
4 ; Disabled because currently we don't have a way to generate these relocations.
5 ;
6 ; Check that the R_MIPS_HIGHER and R_MIPS_HIGHEST relocations were created.
7
8 ; CHECK:     ('r_type', 0x1d)
9 ; CHECK:     ('r_type', 0x1d)
10 ; CHECK:     ('r_type', 0x1c)
11 ; CHECK:     ('r_type', 0x1c)
12
13 @g0 = external global i32
14
15 define void @foo1(i32 %s) nounwind {
16 entry:
17
18   %tobool = icmp eq i32 %s, 0
19   br i1 %tobool, label %if.end, label %if.then
20
21 if.then:                                          ; preds = %entry
22   %0 = load i32* @g0, align 4
23   %add = add nsw i32 %0, 12
24   store i32 %add, i32* @g0, align 4
25   br label %if.end
26
27 if.end:                                           ; preds = %entry, %if.then
28   ret void
29 }
30