Home
last modified time | relevance | path

Searched refs:O32 (Results 1 – 25 of 57) sorted by relevance

123

/external/llvm/test/CodeGen/Mips/
Dcall-optimization.ll2 ; RUN: FileCheck %s -check-prefix=O32
4 ; RUN: -disable-mips-delay-filler < %s | FileCheck %s -check-prefix=O32-LOADTGT
9 ; O32-LABEL: caller3:
10 ; O32-DAG: lw $25, %call16(callee3)
11 ; O32-DAG: move $gp
12 ; O32: jalr $25
13 ; O32-NOT: move $gp
14 ; O32: lw $25, %call16(callee3)
15 ; O32-NOT: move $gp
16 ; O32: jalr $25
[all …]
D2010-07-20-Switch.ll2 ; RUN: FileCheck %s -check-prefix=STATIC-O32
4 ; RUN: FileCheck %s -check-prefix=PIC-O32
19 ; STATIC-O32: sll $[[R0:[0-9]+]], ${{[0-9]+}}, 2
20 ; STATIC-O32: lui $[[R1:[0-9]+]], %hi($JTI0_0)
21 ; STATIC-O32: addu $[[R2:[0-9]+]], $[[R0]], $[[R1]]
22 ; STATIC-O32: lw $[[R3:[0-9]+]], %lo($JTI0_0)($[[R2]])
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]])
[all …]
Dbiggot.ll1 ; RUN: llc -march=mipsel -mxgot < %s | FileCheck %s -check-prefix=O32
9 ; O32: lui $[[R0:[0-9]+]], %got_hi(v0)
10 ; O32: addu $[[R1:[0-9]+]], $[[R0]], ${{[a-z0-9]+}}
11 ; O32: lw ${{[0-9]+}}, %got_lo(v0)($[[R1]])
12 ; O32: lui $[[R2:[0-9]+]], %call_hi(foo0)
13 ; O32: addu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}}
14 ; O32: lw ${{[0-9]+}}, %call_lo(foo0)($[[R3]])
34 ; O32-LABEL: foo2:
35 ; O32: lui $[[R2:[0-9]+]], %call_hi(memcpy)
36 ; O32: addu $[[R3:[0-9]+]], $[[R2]], ${{[a-z0-9]+}}
[all …]
Dstart-asm-file.ll3 ; ### O32 ABI ###
6 ; RUN: FileCheck -check-prefix=CHECK-STATIC-O32 -check-prefix=CHECK-STATIC-O32-NLEGACY %s
10 ; RUN: FileCheck -check-prefix=CHECK-PIC-O32 -check-prefix=CHECK-PIC-O32-NLEGACY %s
14 ; RUN: FileCheck -check-prefix=CHECK-STATIC-O32 -check-prefix=CHECK-STATIC-O32-N2008 %s
18 ; RUN: FileCheck -check-prefix=CHECK-PIC-O32 -check-prefix=CHECK-PIC-O32-N2008 %s
54 ; CHECK-STATIC-O32: .abicalls
55 ; CHECK-STATIC-O32: .option pic0
56 ; CHECK-STATIC-O32: .section .mdebug.abi32
57 ; CHECK-STATIC-O32-NLEGACY: .nan legacy
58 ; CHECK-STATIC-O32-N2008: .nan 2008
[all …]
Dlongbranch.ll3 ; RUN: | FileCheck %s -check-prefix=O32
50 ; O32: lui $[[R0:[0-9]+]], %hi(_gp_disp)
51 ; O32: addiu $[[R0]], $[[R0]], %lo(_gp_disp)
52 ; O32: bnez $4, $[[BB0:BB[0-9_]+]]
53 ; O32: addu $[[GP:[0-9]+]], $[[R0]], $25
56 ; O32: addiu $sp, $sp, -8
57 ; O32-NEXT: sw $ra, 0($sp)
58 ; O32-NEXT: lui $1, %hi(($[[BB2:BB[0-9_]+]])-($[[BB1:BB[0-9_]+]]))
59 ; O32-NEXT: bal $[[BB1]]
60 ; O32-NEXT: addiu $1, $1, %lo(($[[BB2]])-($[[BB1]]))
[all …]
Dglobal-address.ll1 ; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-O32
2 …sel -relocation-model=static -mtriple=mipsel-linux-gnu < %s | FileCheck %s -check-prefix=STATIC-O32
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)
16 ; STATIC-O32: lui $[[R1:[0-9]+]], %hi(s1)
17 ; STATIC-O32: lw ${{[0-9]+}}, %lo(s1)($[[R1]])
18 ; STATIC-O32: lui $[[R2:[0-9]+]], %hi(g1)
19 ; STATIC-O32: lw ${{[0-9]+}}, %lo(g1)($[[R2]])
Dblockaddr.ll1 ; RUN: llc -march=mipsel -relocation-model=pic < %s | FileCheck %s -check-prefix=PIC-O32
2 ; RUN: llc -march=mipsel -relocation-model=static < %s | FileCheck %s -check-prefix=STATIC-O32
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]])
21 ; STATIC-O32: lui $[[R2:[0-9]+]], %hi($tmp[[T2:[0-9]+]])
22 ; STATIC-O32: addiu ${{[0-9]+}}, $[[R2]], %lo($tmp[[T2]])
23 ; STATIC-O32: lui $[[R3:[0-9]+]], %hi($tmp[[T3:[0-9]+]])
24 ; STATIC-O32: addiu ${{[0-9]+}}, $[[R3]], %lo($tmp[[T3]])
/external/llvm/test/CodeGen/Mips/cconv/
Dcallee-saved-fpxx.ll1 ; RUN: llc -march=mips -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=ALL --check-prefix=O32-FPX…
2 ; RUN: llc -march=mipsel -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=ALL --check-prefix=O32-F…
3 ; RUN: llc -march=mips -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=ALL --check-prefix=O32-FPX…
4 ; RUN: llc -march=mipsel -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=ALL --check-prefix=O32-F…
6 … llc -march=mips64 -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=ALL --check-prefix=O32-FPXX %s
7 …lc -march=mips64el -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=ALL --check-prefix=O32-FPXX %s
8 …o32,+fpxx < %s | FileCheck --check-prefix=ALL --check-prefix=O32-FPXX-INV --check-prefix=O32-FPXX-…
9 …o32,+fpxx < %s | FileCheck --check-prefix=ALL --check-prefix=O32-FPXX-INV --check-prefix=O32-FPXX-…
17 ; O32-FPXX-LABEL: fpu_clobber:
18 ; O32-FPXX-INV-NOT: sdc1 $f0,
[all …]
Dcallee-saved.ll1 ; RUN: llc -march=mips < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
2 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
3 ; RUN: llc -march=mips < %s | FileCheck --check-prefix=ALL --check-prefix=O32-INV %s
4 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefix=ALL --check-prefix=O32-INV %s
6 …N-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
7 …TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
8 …DO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32-INV %s
9 …: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32-INV %s
32 ; O32: addiu $sp, $sp, -40
33 ; O32-INV-NOT: sw $0,
[all …]
Darguments-varargs.ll1 …cation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=O32 --check-prefix=O32-BE %s
2 …cation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=O32 --check-prefix=O32-LE %s
4 … -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
5 … -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
23 ; O32: addiu [[SP:\$sp]], $sp, -8
28 ; O32-DAG: sw $7, 20([[SP]])
29 ; O32-DAG: sw $6, 16([[SP]])
30 ; O32-DAG: sw $5, 12([[SP]])
41 ; For O32, the offset is 12 due to the 4 bytes used to store local variables,
46 ; O32-DAG: addiu [[VA:\$[0-9]+]], [[SP]], 12
[all …]
Darguments.ll1 …ocation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
2 …ocation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
4 …atic -target-abi n32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
5 …atic -target-abi n32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
60 ; The first four arguments are the same in O32/N32/N64
67 ; O32 starts loading from the stack. The addresses start at 16 because space is
69 ; O32-DAG: lw [[R3:\$[0-9]+]], 16($sp)
70 ; O32-DAG: sb [[R3]], 5([[R1]])
72 ; O32-DAG: lw [[R3:\$[0-9]+]], 20($sp)
73 ; O32-DAG: sb [[R3]], 6([[R1]])
[all …]
Darguments-float.ll1 …at < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 --check-prefix=O32B…
2 …at < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 --check-prefix=O32L…
4 …loat -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
5 …loat -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
54 ; The first four arguments are the same in O32/N32/N64.
57 ; O32-DAG: sw $4, 8([[R2]])
58 ; O32-DAG: sw $5, 12([[R2]])
61 ; O32-DAG: sw $6, 16([[R2]])
62 ; O32-DAG: sw $7, 20([[R2]])
65 ; O32 has run out of argument registers and starts using the stack
[all …]
Dcallee-saved-fpxx1.ll1 ; RUN: llc -march=mips -mattr=+o32,+fp64 < %s | FileCheck --check-prefix=O32-FP64-INV %s
2 ; RUN: llc -march=mipsel -mattr=+o32,+fp64 < %s | FileCheck --check-prefix=O32-FP64-INV %s
4 ; RUN: llc -march=mips -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=O32-FPXX %s
5 ; RUN: llc -march=mipsel -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=O32-FPXX %s
7 ; RUN-TODO: llc -march=mips64 -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=O32-FPXX %s
8 ; RUN-TODO: llc -march=mips64el -mattr=+o32,+fpxx < %s | FileCheck --check-prefix=O32-FPXX %s
16 ; O32-FPXX-LABEL: fpu_clobber:
18 ; O32-FPXX: addiu $sp, $sp, -8
20 ; O32-FP64-INV-NOT: sdc1 $f20,
21 ; O32-FPXX-DAG: sdc1 [[F20:\$f20]], [[OFF20:[0-9]+]]($sp)
[all …]
Darguments-hard-float.ll1 …ic < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 --check-prefix=O32B…
2 …ic < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 --check-prefix=O32L…
4 …atic -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
5 …atic -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
55 ; The first argument is the same for O32/N32/N64 but the second argument differs
58 ; O32-DAG: sdc1 $f14, 16([[R2]])
61 ; O32 has run out of argument registers and starts using the stack
62 ; O32-DAG: ldc1 [[F1:\$f[0-9]+]], 16($sp)
63 ; O32-DAG: sdc1 [[F1]], 24([[R2]])
65 ; O32-DAG: ldc1 [[F1:\$f[0-9]+]], 24($sp)
[all …]
Dreturn-struct.ll1 …cation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=O32 --check-prefix=O32-BE %s
2 …cation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=O32 --check-prefix=O32-LE %s
4 … -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
5 … -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
30 ; O32-DAG: lui [[R1:\$[0-9]+]], %hi(struct_byte)
31 ; O32-DAG: lbu $2, %lo(struct_byte)([[R1]])
62 ; O32-DAG: lui [[R1:\$[0-9]+]], %hi(struct_2byte)
63 ; O32-DAG: lhu [[R2:\$[0-9]+]], %lo(struct_2byte)([[R1]])
64 ; O32-DAG: sh [[R2]], 0([[SP:\$sp]])
65 ; O32-DAG: lhu $2, 0([[SP:\$sp]])
[all …]
Dcallee-saved-float.ll1 ; RUN: llc -march=mips < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
2 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
3 ; RUN: llc -march=mips < %s | FileCheck --check-prefix=ALL --check-prefix=O32-INV %s
4 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefix=ALL --check-prefix=O32-INV %s
6 …N-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
7 …TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
8 …target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=ALL-INV --check-prefix=O32-INV %s
9 …target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=ALL-INV --check-prefix=O32-INV %s
54 ; O32: addiu $sp, $sp, -48
55 ; O32-DAG: sdc1 [[F20:\$f20]], [[OFF20:[0-9]+]]($sp)
[all …]
Darguments-hard-float-varargs.ll1 …ic < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 --check-prefix=O32B…
2 …ic < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 --check-prefix=O32L…
4 …atic -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
5 …atic -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 --check-prefix=O32 %s
19 ; On O32, varargs prevents all FPU argument register usage. This contradicts
47 ; O32 forbids using floating point registers for the non-variable portion.
53 ; O32-DAG: sdc1 [[FTMP1]], 8([[R2]])
57 ; O32-DAG: sw $6, 16($sp)
58 ; O32-DAG: sw $7, 20($sp)
68 ; O32 has 4 bytes padding, 4 bytes for the varargs pointer, and 8 bytes reserved
[all …]
Dreturn.ll1 …e=mips-linux-gnu -relocation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
2 …mipsel-linux-gnu -relocation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
4 … -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
5 … -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
32 ; O32-DAG: lui [[R1:\$[0-9]+]], %hi(byte)
33 ; O32-DAG: lbu $2, %lo(byte)([[R1]])
46 ; O32-DAG: lui [[R1:\$[0-9]+]], %hi(word)
47 ; O32-DAG: lw $2, %lo(word)([[R1]])
60 ; On O32, we must use v0 and v1 for the return value
61 ; O32-DAG: lw $2, %lo(dword)([[R1:\$[0-9]+]])
[all …]
Dreserved-space.ll1 ; RUN: llc -march=mips < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
2 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
4 …N-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
5 …TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
13 ; Test that O32 correctly reserved space for the four arguments, even when
25 ; O32: addiu $sp, $sp, -24
26 ; O32: sw $ra, 20($sp)
27 ; O32: lw $ra, 20($sp)
28 ; O32: addiu $sp, $sp, 24
Dreturn-float.ll1 …attr=+soft-float -relocation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
2 …attr=+soft-float -relocation-model=static < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
4 … -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
5 … -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefix=ALL --check-prefix=O32 %s
29 ; O32-DAG: lui [[R1:\$[0-9]+]], %hi(float)
30 ; O32-DAG: lw $2, %lo(float)([[R1]])
43 ; O32-DAG: lw $2, %lo(double)([[R1:\$[0-9]+]])
44 ; O32-DAG: addiu [[R2:\$[0-9]+]], [[R1]], %lo(double)
45 ; O32-DAG: lw $3, 4([[R2]])
/external/llvm/test/MC/Mips/
Dexpansion-jal-sym-pic.s2 # RUN: FileCheck %s -check-prefix=ALL -check-prefix=NORMAL -check-prefix=O32
11 # RUN: FileCheck %s -check-prefix=ALL -check-prefix=MICROMIPS -check-prefix=O32-MICROMIPS
53 # O32: lw $25, %got(local_label)($gp) # encoding: [0x8f,0x99,A,A]
54 # O32: # fixup A - offset: 0, value: local_label@GOT, kind: …
55 # O32: addiu $25, $25, %lo(local_label) # encoding: [0x27,0x39,A,A]
56 # O32: # fixup A - offset: 0, value: local_label@ABS_LO, kin…
64 # O32-MICROMIPS: lw $25, %got(local_label)($gp) # encoding: [0xff,0x3c,A,A]
65 # O32-MICROMIPS: # fixup A - offset: 0, value: local_label…
66 # O32-MICROMIPS: addiu $25, $25, %lo(local_label) # encoding: [0x33,0x39,A,A]
67 # O32-MICROMIPS: # fixup A - offset: 0, value: local_label…
[all …]
Dreloc-directive.s9 # RUN: FileCheck -check-prefix=OBJ-O32 %s
27 # OBJ-O32-LABEL: Name: .text
28 # OBJ-O32: 0000: 00000000 00000000 00000008
29 # OBJ-O32-LABEL: }
30 # OBJ-O32-LABEL: Relocations [
31 # OBJ-O32: 0x0 R_MIPS_NONE foo 0x0
32 # OBJ-O32: 0x4 R_MIPS_NONE foo 0x0
33 # OBJ-O32: 0x8 R_MIPS_32 .text 0x0
34 # OBJ-O32: 0xC R_MIPS_NONE - 0x0
Dcpload.s5 # RUN: FileCheck %s -check-prefix=OBJ-O32
21 # OBJ-O32: .text
22 # OBJ-O32: lui $gp, 0
23 # OBJ-O32: R_MIPS_HI16 _gp_disp
24 # OBJ-O32: addiu $gp, $gp, 0
25 # OBJ-O32: R_MIPS_LO16 _gp_disp
26 # OBJ-O32: addu $gp, $gp, $25
/external/llvm/test/CodeGen/Mips/llvm-ir/
Dcall.ll4 …ps -mcpu=mips32 -enable-mips-tail-calls < %s | FileCheck %s -check-prefix=ALL -check-prefix=O32
5 …ps -mcpu=mips32r2 -enable-mips-tail-calls < %s | FileCheck %s -check-prefix=ALL -check-prefix=O32
6 …ps -mcpu=mips32r3 -enable-mips-tail-calls < %s | FileCheck %s -check-prefix=ALL -check-prefix=O32
7 …ps -mcpu=mips32r5 -enable-mips-tail-calls < %s | FileCheck %s -check-prefix=ALL -check-prefix=O32
8 …ps -mcpu=mips32r6 -enable-mips-tail-calls < %s | FileCheck %s -check-prefix=ALL -check-prefix=O32
9 …r=+fp64,+nooddspreg -enable-mips-tail-calls < %s | FileCheck %s -check-prefix=ALL -check-prefix=O32
24 ; O32: lw $[[TGT:[0-9]+]], %call16(extern_void_void)($gp)
37 ; O32: lw $[[TGT:[0-9]+]], %call16(extern_i32_void)($gp)
53 ; O32: addu $[[GP:[0-9]+]], ${{[0-9]+}}, $25
54 ; O32: lw $[[TGT:[0-9]+]], %call16(extern_float_void)($[[GP]])
[all …]
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsABIInfo.cpp53 return MipsABIInfo::O32(); in computeTargetABI()
74 .Case("mips1", MipsABIInfo::O32()) in computeTargetABI()
75 .Case("mips2", MipsABIInfo::O32()) in computeTargetABI()
76 .Case("mips32", MipsABIInfo::O32()) in computeTargetABI()
77 .Case("mips32r2", MipsABIInfo::O32()) in computeTargetABI()
78 .Case("mips32r3", MipsABIInfo::O32()) in computeTargetABI()
79 .Case("mips32r5", MipsABIInfo::O32()) in computeTargetABI()
80 .Case("mips32r6", MipsABIInfo::O32()) in computeTargetABI()

123