Home
last modified time | relevance | path

Searched refs:PIC (Results 1 – 25 of 225) sorted by relevance

123456789

/external/llvm/test/CodeGen/X86/
Dabi-isel.ll2 …ion-model=static -code-model=small -pre-RA-sched=list-ilp | FileCheck %s -check-prefix=LINUX-32-PIC
5 …cation-model=pic -code-model=small -pre-RA-sched=list-ilp | FileCheck %s -check-prefix=LINUX-64-PIC
9 …ation-model=pic -code-model=small -pre-RA-sched=list-ilp | FileCheck %s -check-prefix=DARWIN-32-PIC
13 …ation-model=pic -code-model=small -pre-RA-sched=list-ilp | FileCheck %s -check-prefix=DARWIN-64-PIC
50 ; LINUX-32-PIC-LABEL: foo00:
51 ; LINUX-32-PIC: movl src, [[EAX:%e.x]]
52 ; LINUX-32-PIC-NEXT: movl [[EAX]], dst
53 ; LINUX-32-PIC-NEXT: ret
55 ; LINUX-64-PIC-LABEL: foo00:
56 ; LINUX-64-PIC: movq src@GOTPCREL(%rip), [[RAX:%r..]]
[all …]
Drodata-relocs.ll2 ; RUN: llc < %s -relocation-model=pic | FileCheck %s -check-prefix=PIC
29 ; PIC: .section .rodata.cst8,"aM",@progbits,8
30 ; PIC: a:
31 ; PIC: a1:
32 ; PIC: .section .rodata.cst16,"aM",@progbits,16
33 ; PIC: e:
34 ; PIC: e1:
35 ; PIC: .section .data.rel.ro,"aw",@progbits
36 ; PIC: p:
37 ; PIC: t:
[all …]
Dasm-modifier-P.ll1 … -mtriple=i686-unknown-linux-gnu -relocation-model=pic | FileCheck %s -check-prefix=CHECK-PIC-32
4 ; RUN: llc < %s -march=x86-64 -relocation-model=pic | FileCheck %s -check-prefix=CHECK-PIC-64
24 ; CHECK-PIC-64-LABEL: test1:
25 ; CHECK-PIC-64: movq G@GOTPCREL(%rip), %rax
26 ; CHECK-PIC-64: frob (%rax) x
27 ; CHECK-PIC-64: frob (%rax) x
33 ; CHECK-PIC-32-LABEL: test1:
34 ; CHECK-PIC-32: frob G x
35 ; CHECK-PIC-32: frob G x
60 ; CHECK-PIC-64-LABEL: test3:
[all …]
/external/llvm/test/MC/PowerPC/
Dppc64-initial-cfa.s4 # RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=PIC -check-prefix=PIC-BE
8 # RUN: llvm-readobj -s -sr -sd | FileCheck %s -check-prefix=PIC -check-prefix=PIC-LE
56 # PIC: Section {
57 # PIC: Name: .eh_frame
58 # PIC-NEXT: Type: SHT_PROGBITS
59 # PIC-NEXT: Flags [ (0x2)
60 # PIC-NEXT: SHF_ALLOC
61 # PIC-NEXT: ]
62 # PIC-NEXT: Address:
63 # PIC-NEXT: Offset:
[all …]
/external/llvm/test/CodeGen/Mips/
Dtls-models.ll1 ; RUN: llc -march=mipsel < %s | FileCheck -check-prefix=CHECK-PIC %s
22 ; Non-PIC code can use initial-exec, PIC code has to use general dynamic.
25 ; CHECK-PIC-LABEL: f1:
26 ; CHECK-PIC: %tlsgd
33 ; Non-PIC code can use local exec, PIC code can use local dynamic.
36 ; CHECK-PIC-LABEL: f2:
37 ; CHECK-PIC: %tlsldm
47 ; Non-PIC code can use initial exec, PIC should use local dynamic.
50 ; CHECK-PIC-LABEL: f3:
51 ; CHECK-PIC: %tlsldm
[all …]
Dmno-ldc1-sdc1.ll13 ; RUN: -check-prefix=32R1-LE -check-prefix=32R1-LE-PIC
17 ; RUN: -check-prefix=32R2-LE -check-prefix=32R2-LE-PIC
21 ; RUN: -check-prefix=32R6-LE -check-prefix=32R6-LE-PIC
27 ; RUN: -check-prefix=32R1-BE -check-prefix=32R1-BE-PIC
31 ; RUN: -check-prefix=32R2-BE -check-prefix=32R2-BE-PIC
35 ; RUN: -check-prefix=32R6-BE -check-prefix=32R6-BE-PIC
55 ; 32R1-LE-PIC-DAG: lw $[[R0:[0-9]+]], 0(${{[0-9]+}})
56 ; 32R1-LE-PIC-DAG: lw $[[R1:[0-9]+]], 4(${{[0-9]+}})
57 ; 32R1-LE-PIC-DAG: mtc1 $[[R0]], $f0
58 ; 32R1-LE-PIC-DAG: mtc1 $[[R1]], $f1
[all …]
Ds2rem.ll1 …-linux-gnu -march=mipsel -mattr=mips16 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC
16 ; PIC: .ent it
18 ; PIC: save $16, $17, $ra, [[FS:[0-9]+]]
20 ; PIC: restore $16, $17, $ra, [[FS]]
22 ; PIC: .end it
34 ; PIC: .ent ft
35 ; PIC: save $16, $17, $ra, $18, [[FS:[0-9]+]]
36 ; PIC: restore $16, $17, $ra, $18, [[FS]]
37 ; PIC: .end ft
48 ; PIC: .ent dt
[all …]
Dstart-asm-file.ll10 ; RUN: FileCheck -check-prefix=CHECK-PIC-O32 -check-prefix=CHECK-PIC-O32-NLEGACY %s
18 ; RUN: FileCheck -check-prefix=CHECK-PIC-O32 -check-prefix=CHECK-PIC-O32-N2008 %s
27 ; RUN: FileCheck -check-prefix=CHECK-PIC-N32 -check-prefix=CHECK-PIC-N32-NLEGACY %s
35 ; RUN: FileCheck -check-prefix=CHECK-PIC-N32 -check-prefix=CHECK-PIC-N32-N2008 %s
44 ; RUN: FileCheck -check-prefix=CHECK-PIC-N64 -check-prefix=CHECK-PIC-N64-NLEGACY %s
52 ; RUN: FileCheck -check-prefix=CHECK-PIC-N64 -check-prefix=CHECK-PIC-N64-N2008 %s
60 ; CHECK-PIC-O32: .abicalls
61 ; CHECK-PIC-O32-NOT: .option pic0
62 ; CHECK-PIC-O32: .section .mdebug.abi32
63 ; CHECK-PIC-O32-NLEGACY: .nan legacy
[all …]
Dtls.ll2 ; RUN: FileCheck %s -check-prefix=PIC -check-prefix=CHECK
16 ; PIC-LABEL: f1:
17 ; PIC-DAG: addu $[[R0:[a-z0-9]+]], $2, $25
18 ; PIC-DAG: lw $25, %call16(__tls_get_addr)($[[R0]])
19 ; PIC-DAG: addiu $4, $[[R0]], %tlsgd(t1)
20 ; PIC-DAG: jalr $25
21 ; PIC-DAG: lw $2, 0($2)
39 ; PIC-LABEL: f2:
40 ; PIC-DAG: addu $[[R0:[a-z0-9]+]], $2, $25
41 ; PIC-DAG: lw $25, %call16(__tls_get_addr)($[[R0]])
[all …]
D2010-07-20-Switch.ll4 ; RUN: FileCheck %s -check-prefix=PIC-O32
23 ; PIC-O32: sll $[[R0:[0-9]+]], ${{[0-9]+}}, 2
24 ; PIC-O32: lw $[[R1:[0-9]+]], %got($JTI0_0)
25 ; PIC-O32: addu $[[R2:[0-9]+]], $[[R0]], $[[R1]]
26 ; PIC-O32: lw $[[R4:[0-9]+]], %lo($JTI0_0)($[[R2]])
27 ; PIC-O32: addu $[[R5:[0-9]+]], $[[R4:[0-9]+]]
28 ; PIC-O32: jr $[[R5]]
64 ; PIC-O32: .align 2
65 ; PIC-O32: $JTI0_0:
66 ; PIC-O32: .gpword
[all …]
Dblockaddr.ll1 ; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-O32
3 …64el -mcpu=mips64r2 -target-abi n32 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-N32
5 …64el -mcpu=mips64r2 -target-abi n64 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-N64
17 ; PIC-O32: lw $[[R0:[0-9]+]], %got($tmp[[T0:[0-9]+]])
18 ; PIC-O32: addiu ${{[0-9]+}}, $[[R0]], %lo($tmp[[T0]])
19 ; PIC-O32: lw $[[R1:[0-9]+]], %got($tmp[[T1:[0-9]+]])
20 ; PIC-O32: addiu ${{[0-9]+}}, $[[R1]], %lo($tmp[[T1]])
25 ; PIC-N32: lw $[[R0:[0-9]+]], %got_page($tmp[[T0:[0-9]+]])
26 ; PIC-N32: addiu ${{[0-9]+}}, $[[R0]], %got_ofst($tmp[[T0]])
27 ; PIC-N32: lw $[[R1:[0-9]+]], %got_page($tmp[[T1:[0-9]+]])
[all …]
Dglobal-address.ll1 ; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-O32
3 …64el -mcpu=mips64r2 -target-abi n32 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-N32
5 …64el -mcpu=mips64r2 -target-abi n64 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-N64
13 ; PIC-O32: lw $[[R0:[0-9]+]], %got(s1)
14 ; PIC-O32: lw ${{[0-9]+}}, %lo(s1)($[[R0]])
15 ; PIC-O32: lw ${{[0-9]+}}, %got(g1)
21 ; PIC-N32: lw $[[R0:[0-9]+]], %got_page(s1)
22 ; PIC-N32: lw ${{[0-9]+}}, %got_ofst(s1)($[[R0]])
23 ; PIC-N32: lw ${{[0-9]+}}, %got_disp(g1)
29 ; PIC-N64: ld $[[R0:[0-9]+]], %got_page(s1)
[all …]
D2009-11-16-CstPoolLoad.ll1 ; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-O32
3 …64el -mcpu=mips64r2 -target-abi n32 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-N32
5 …64el -mcpu=mips64r2 -target-abi n64 -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-N64
10 ; PIC-O32: lw $[[R0:[0-9]+]], %got($CPI0_0)
11 ; PIC-O32: lwc1 $f0, %lo($CPI0_0)($[[R0]])
14 ; PIC-N32: lw $[[R0:[0-9]+]], %got_page($CPI0_0)
15 ; PIC-N32: lwc1 $f0, %got_ofst($CPI0_0)($[[R0]])
18 ; PIC-N64: ld $[[R0:[0-9]+]], %got_page($CPI0_0)
19 ; PIC-N64: lwc1 $f0, %got_ofst($CPI0_0)($[[R0]])
/external/llvm/test/CodeGen/ARM/
Dstack_guard_remat.ll1 … %s -mtriple=arm-apple-ios -relocation-model=pic -no-integrated-as | FileCheck %s -check-prefix=PIC
2 …-relocation-model=static -no-integrated-as | FileCheck %s -check-prefix=NO-PIC -check-prefix=STATIC
3 …=dynamic-no-pic -no-integrated-as | FileCheck %s -check-prefix=NO-PIC -check-prefix=DYNAMIC-NO-PIC
4 …ple-ios -mcpu=cortex-a8 -relocation-model=pic -no-integrated-as | FileCheck %s -check-prefix=PIC-V7
6 …8 -relocation-model=dynamic-no-pic -no-integrated-as | FileCheck %s -check-prefix=DYNAMIC-NO-PIC-V7
8 ;PIC: foo2
9 ;PIC: ldr [[R0:r[0-9]+]], [[LABEL0:LCPI[0-9_]+]]
10 ;PIC: [[LABEL1:LPC0_1]]:
11 ;PIC: add [[R1:r[0-9]+]], pc, [[R0]]
12 ;PIC: ldr [[R2:r[0-9]+]], {{\[}}[[R1]]{{\]}}
[all …]
Deh-dispcont.ll1 …UN: llc -mtriple armv7-apple-ios -relocation-model=pic -o - %s | FileCheck %s -check-prefix=ARM-PIC
4 …lc -mtriple thumbv6-apple-ios -relocation-model=pic -o - %s | FileCheck %s -check-prefix=THUMB1-PIC
44 ; ARM-PIC: cxa_throw
45 ; ARM-PIC: trap
46 ; ARM-PIC: adr [[REG1:r[0-9]+]], [[LJTI:.*]]
47 ; ARM-PIC: ldr [[REG0:r[0-9]+]], [r{{[0-9]+}}, [[REG1]]]
48 ; ARM-PIC: add pc, [[REG0]], [[REG1]]
49 ; ARM-PIC: [[LJTI]]
50 ; ARM-PIC: .data_region jt32
51 ; ARM-PIC: .long [[LABEL:LBB0_[0-9]]]-[[LJTI]]
[all …]
Dtls-models.ll4 ; RUN: | FileCheck -check-prefix=CHECK-PIC -check-prefix=COMMON %s
30 ; Non-PIC code can use initial-exec, PIC code has to use general dynamic.
32 ; CHECK-PIC: external_gd(TLSGD)
41 ; Non-PIC code can use local exec, PIC code can use local dynamic,
44 ; CHECK-PIC: internal_gd(TLSGD)
56 ; Non-PIC code can use initial exec, PIC should use local dynamic,
59 ; CHECK-PIC: external_ld(TLSGD)
68 ; Non-PIC code can use local exec, PIC code can use local dynamic,
71 ; CHECK-PIC: internal_ld(TLSGD)
83 ; Non-PIC and PIC code will use initial exec as specified.
[all …]
Dcse-ldrlit.ll1 …mbv6m-apple-none-macho -relocation-model=pic -o - %s | FileCheck %s --check-prefix=CHECK-THUMB-PIC
2 …ple=arm-apple-none-macho -relocation-model=pic -o - %s | FileCheck %s --check-prefix=CHECK-ARM-PIC
22 ; CHECK-THUMB-PIC-LABEL: foo:
23 ; CHECK-THUMB-PIC: ldr r0, LCPI0_0
24 ; CHECK-THUMB-PIC: LPC0_0:
25 ; CHECK-THUMB-PIC-NEXT: add r0, pc
26 ; CHECK-THUMB-PIC: ldr {{r[1-9][0-9]?}}, [r0, #4]
28 ; CHECK-THUMB-PIC: LCPI0_0:
29 ; CHECK-THUMB-PIC-NEXT: .long _var-(LPC0_0+4)
30 ; CHECK-THUMB-PIC-NOT: LCPI0_1
[all …]
/external/llvm/test/CodeGen/Thumb2/
Dtls2.ll1 ; RUN: llc < %s -mtriple=thumbv7-linux-gnueabi | FileCheck %s -check-prefix=CHECK-NOT-PIC
2 …lc < %s -mtriple=thumbv7-linux-gnueabi -relocation-model=pic | FileCheck %s -check-prefix=CHECK-PIC
8 ; CHECK-NOT-PIC-LABEL: f:
9 ; CHECK-NOT-PIC: add r0, pc
10 ; CHECK-NOT-PIC: ldr r1, [r0]
11 ; CHECK-NOT-PIC: i(GOTTPOFF)
13 ; CHECK-PIC-LABEL: f:
14 ; CHECK-PIC: bl __tls_get_addr(PLT)
21 ; CHECK-NOT-PIC-LABEL: g:
22 ; CHECK-NOT-PIC: add r0, pc
[all …]
Dstack_guard_remat.ll1 …-mtriple=thumbv7-apple-ios -relocation-model=pic -no-integrated-as | FileCheck %s -check-prefix=PIC
3 …ios -relocation-model=dynamic-no-pic -no-integrated-as | FileCheck %s -check-prefix=DYNAMIC-NO-PIC
5 ;PIC: foo2
6 ;PIC: movw [[R0:r[0-9]+]], :lower16:(L___stack_chk_guard$non_lazy_ptr-([[LABEL0:LPC[0-9_]+]]+4))
7 ;PIC: movt [[R0]], :upper16:(L___stack_chk_guard$non_lazy_ptr-([[LABEL0]]+4))
8 ;PIC: [[LABEL0]]:
9 ;PIC: add [[R0]], pc
10 ;PIC: ldr [[R1:r[0-9]+]], {{\[}}[[R0]]{{\]}}
11 ;PIC: ldr {{r[0-9]+}}, {{\[}}[[R1]]{{\]}}
18 ;DYNAMIC-NO-PIC: foo2
[all …]
/external/llvm/test/CodeGen/Thumb/
Dstack_guard_remat.ll1 …mtriple=thumb-apple-darwin -relocation-model=pic -no-integrated-as | FileCheck %s -check-prefix=PIC
2 …-relocation-model=static -no-integrated-as | FileCheck %s -check-prefix=NO-PIC -check-prefix=STAT…
3 …=dynamic-no-pic -no-integrated-as | FileCheck %s -check-prefix=NO-PIC -check-prefix=DYNAMIC-NO-PIC
5 ;PIC: foo2
6 ;PIC: ldr [[R0:r[0-9]+]], [[LABEL0:LCPI[0-9_]+]]
7 ;PIC: [[LABEL1:LPC[0-9_]+]]:
8 ;PIC: add [[R0]], pc
9 ;PIC: ldr [[R1:r[0-9]+]], {{\[}}[[R0]]{{\]}}
10 ;PIC: ldr [[R1:r[0-9]+]], {{\[}}[[R1]]{{\]}}
12 ;PIC: [[LABEL0]]:
[all …]
/external/llvm/test/DebugInfo/Mips/
Dprologue_end.ll3 …llc -O0 -mtriple mips-unknown-linux-gnu -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC
4 …s-unknown-linux-gnu -relocation-model=pic -disable-fp-elim < %s | FileCheck %s -check-prefix=PIC-FP
29 ; PIC: lui $[[R0:[0-9]+]], %hi(_gp_disp)
30 ; PIC: addiu $[[R0]], $[[R0]], %lo(_gp_disp)
31 ; PIC: addiu $sp, $sp, -{{[0-9]+}}
32 ; PIC: sw $ra, {{[0-9]+}}($sp)
33 ; PIC: addu $[[R1:[0-9]+]], $[[R0]], $25
34 ; PIC: .loc 1 2 3 prologue_end
35 ; PIC: lw $[[R2:[0-9]+]], %got($.str)($[[R1]])
37 ; PIC-FP: lui $[[R0:[0-9]+]], %hi(_gp_disp)
[all …]
/external/llvm/test/CodeGen/PowerPC/
Davailable-externally.ll2 …RUN: llc < %s -relocation-model=pic -mtriple=powerpc-apple-darwin8 | FileCheck %s -check-prefix=PIC
18 ; PIC: _foo:
19 ; PIC: bl L_exact_log2$stub
20 ; PIC: blr
48 ; PIC: .section __TEXT,__picsymbolstub1,symbol_stubs,pure_instructions,32
49 ; PIC: L_exact_log2$stub:
50 ; PIC: .indirect_symbol _exact_log2
51 ; PIC: mflr r0
52 ; PIC: bcl 20, 31, L_exact_log2$stub$tmp
54 ; PIC: L_exact_log2$stub$tmp:
[all …]
/external/llvm/test/CodeGen/AArch64/
Djump-table.ll3 …rs -relocation-model=pic -aarch64-atomic-cfg-tidy=0 -o - %s | FileCheck --check-prefix=CHECK-PIC %s
26 ; CHECK-PIC: adrp [[JTPAGE:x[0-9]+]], .LJTI0_0
27 ; CHECK-PIC: add x[[JT:[0-9]+]], [[JTPAGE]], {{#?}}:lo12:.LJTI0_0
28 ; CHECK-PIC: ldrsw [[DEST:x[0-9]+]], [x[[JT]], {{x[0-9]+}}, lsl #2]
29 ; CHECK-PIC: add [[TABLE:x[0-9]+]], [[DEST]], x[[JT]]
30 ; CHECK-PIC: br [[TABLE]]
58 ; CHECK-PIC-NOT: .data_region
59 ; CHECK-PIC-NOT: .LJTI0_0
60 ; CHECK-PIC: .LJTI0_0:
61 ; CHECK-PIC-NEXT: .word .LBB{{.*}}-.LJTI0_0
[all …]
/external/llvm/test/MC/Sparc/
Dsparc-pic.s1 …ch=sparcv9 --relocation-model=pic -filetype=obj | llvm-readobj -r | FileCheck --check-prefix=PIC %s
5 ! PIC: Relocations [
6 ! PIC-NOT: 0x{{[0-9,A-F]+}} R_SPARC_WPLT30 .text 0xC
7 ! PIC: 0x{{[0-9,A-F]+}} R_SPARC_PC22 _GLOBAL_OFFSET_TABLE_ 0x4
8 ! PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_PC10 _GLOBAL_OFFSET_TABLE_ 0x8
9 ! PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_PC22 _GLOBAL_OFFSET_TABLE_ 0x0
10 ! PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_PC10 _GLOBAL_OFFSET_TABLE_ 0x0
11 ! PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_GOT22 AGlobalVar 0x0
12 ! PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_GOT10 AGlobalVar 0x0
13 ! PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_GOT22 AGlobalVar 0x0
[all …]
/external/llvm/test/CodeGen/SPARC/
Dobj-relocs.ll2 …9 -filetype=obj --relocation-model=pic | llvm-readobj -r | FileCheck %s --check-prefix=CHECK-PIC
14 ; CHECK-PIC: Relocations [
15 ; CHECK-PIC: 0x{{[0-9,A-F]+}} R_SPARC_PC22 _GLOBAL_OFFSET_TABLE_ 0x4
16 ; CHECK-PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_PC10 _GLOBAL_OFFSET_TABLE_ 0x8
17 ; CHECK-PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_GOT22 AGlobalVar 0x0
18 ; CHECK-PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_GOT10 AGlobalVar 0x0
19 ; CHECK-PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_GOT22 .L.mystr 0x0
20 ; CHECK-PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_GOT10 .L.mystr 0x0
21 ; CHECK-PIC-NEXT: 0x{{[0-9,A-F]+}} R_SPARC_WPLT30 bar 0x0
22 ; CHECK-PIC: ]

123456789