Home
last modified time | relevance | path

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

123

/external/llvm/test/CodeGen/Mips/
Dcall-optimization.ll2 ; RUN: FileCheck %s -check-prefix=O32
4 ; RUN: -disable-mips-delay-filler -relocation-model=pic < %s | FileCheck %s -check-prefix=O32-LOAD…
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 …]
Dstart-asm-file.ll3 ; ### O32 ABI ###
6 ; RUN: FileCheck -check-prefixes=CHECK-STATIC-O32,CHECK-STATIC-O32-NLEGACY %s
10 ; RUN: FileCheck -check-prefixes=CHECK-PIC-O32,CHECK-PIC-O32-NLEGACY %s
14 ; RUN: FileCheck -check-prefixes=CHECK-STATIC-O32,CHECK-STATIC-O32-N2008 %s
18 ; RUN: FileCheck -check-prefixes=CHECK-PIC-O32,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
5 ; RUN: -relocation-model=pic -asm-show-inst < %s | FileCheck %s -check-prefix=O32-R6
54 ; O32: lui $[[R0:[0-9]+]], %hi(_gp_disp)
55 ; O32: addiu $[[R0]], $[[R0]], %lo(_gp_disp)
56 ; O32: bnez $4, $[[BB0:BB[0-9_]+]]
57 ; O32: addu $[[GP:[0-9]+]], $[[R0]], $25
60 ; O32: addiu $sp, $sp, -8
61 ; O32-NEXT: sw $ra, 0($sp)
62 ; O32-NEXT: lui $1, %hi(($[[BB2:BB[0-9_]+]])-($[[BB1:BB[0-9_]+]]))
63 ; O32-NEXT: bal $[[BB1]]
[all …]
Dbiggot.ll1 ; RUN: llc -march=mipsel -mxgot -relocation-model=pic < %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 …]
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-prefixes=ALL,O32-FPXX %s
2 ; RUN: llc -march=mipsel -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX %s
3 ; RUN: llc -march=mips -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX-INV %s
4 ; RUN: llc -march=mipsel -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX-INV %s
6 ; RUN-TODO: llc -march=mips64 -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX %s
7 ; RUN-TODO: llc -march=mips64el -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX %s
8 … -march=mips64 -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX-INV,O32-FPXX-INV %s
9 …march=mips64el -mattr=+o32,+fpxx < %s | FileCheck --check-prefixes=ALL,O32-FPXX-INV,O32-FPXX-INV %s
17 ; O32-FPXX-LABEL: fpu_clobber:
18 ; O32-FPXX-INV-NOT: sdc1 $f0,
[all …]
Dcallee-saved.ll1 ; RUN: llc -march=mips < %s | FileCheck --check-prefixes=ALL,O32 %s
2 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefixes=ALL,O32 %s
3 ; RUN: llc -march=mips < %s | FileCheck --check-prefixes=ALL,O32-INV %s
4 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefixes=ALL,O32-INV %s
6 ; RUN-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
7 ; RUN-TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
8 ; RUN-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32-INV %s
9 ; RUN-TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32-INV %s
32 ; O32: addiu $sp, $sp, -40
33 ; O32-INV-NOT: sw $0,
[all …]
Darguments-varargs.ll1 …lc -mtriple=mips-linux -relocation-model=static < %s | FileCheck --check-prefixes=ALL,O32,O32-BE %s
2 … -mtriple=mipsel-linux -relocation-model=static < %s | FileCheck --check-prefixes=ALL,O32,O32-LE %s
4 …-march=mips64 -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
5 …arch=mips64el -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,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 ; RUN: llc -march=mips -relocation-model=static < %s | FileCheck --check-prefixes=ALL,SYM32,O32 %s
2 ; RUN: llc -march=mipsel -relocation-model=static < %s | FileCheck --check-prefixes=ALL,SYM32,O32 %s
4 …=mips64 -relocation-model=static -target-abi n32 < %s | FileCheck --check-prefixes=ALL,SYM32,O32 %s
5 …ips64el -relocation-model=static -target-abi n32 < %s | FileCheck --check-prefixes=ALL,SYM32,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 …relocation-model=static -mattr=+soft-float < %s | FileCheck --check-prefixes=ALL,SYM32,O32,O32BE %s
2 …relocation-model=static -mattr=+soft-float < %s | FileCheck --check-prefixes=ALL,SYM32,O32,O32LE %s
4 …-model=static -mattr=+soft-float -target-abi o32 < %s | FileCheck --check-prefixes=ALL,SYM32,O32 %s
5 …-model=static -mattr=+soft-float -target-abi o32 < %s | FileCheck --check-prefixes=ALL,SYM32,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 ; RUN: llc -march=mips -relocation-model=static < %s | FileCheck --check-prefixes=ALL,SYM32,O32,O32…
2 ; RUN: llc -march=mipsel -relocation-model=static < %s | FileCheck --check-prefixes=ALL,SYM32,O32,O…
4 …=mips64 -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,SYM32,O32 %s
5 …ips64el -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,SYM32,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 …mtriple=mips-linux-gnu -relocation-model=static < %s | FileCheck --check-prefixes=ALL,O32,O32-BE %s
2 …riple=mipsel-linux-gnu -relocation-model=static < %s | FileCheck --check-prefixes=ALL,O32,O32-LE %s
4 …s64-linux-gnu -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
5 …4el-linux-gnu -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,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-prefixes=ALL,O32 %s
2 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefixes=ALL,O32 %s
3 ; RUN: llc -march=mips < %s | FileCheck --check-prefixes=ALL,O32-INV %s
4 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefixes=ALL,O32-INV %s
6 ; RUN-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
7 ; RUN-TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
8 ; RUN-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefixes=ALL,ALL-INV,O32-INV…
9 ; RUN-TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefixes=ALL,ALL-INV,O32-I…
56 ; O32: addiu $sp, $sp, -48
57 ; O32-DAG: sdc1 [[F20:\$f20]], [[OFF20:[0-9]+]]($sp)
[all …]
Darguments-hard-float-varargs.ll1 ; RUN: llc -march=mips -relocation-model=static < %s | FileCheck --check-prefixes=ALL,SYM32,O32,O32…
2 ; RUN: llc -march=mipsel -relocation-model=static < %s | FileCheck --check-prefixes=ALL,SYM32,O32,O…
4 …=mips64 -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,SYM32,O32 %s
5 …ips64el -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,SYM32,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 …: llc -mtriple=mips-linux-gnu -relocation-model=static < %s | FileCheck --check-prefixes=ALL,O32 %s
2 …llc -mtriple=mipsel-linux-gnu -relocation-model=static < %s | FileCheck --check-prefixes=ALL,O32 %s
4 …s64-linux-gnu -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
5 …4el-linux-gnu -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,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-prefixes=ALL,O32 %s
2 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefixes=ALL,O32 %s
4 ; RUN-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
5 ; RUN-TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefixes=ALL,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 …-linux-gnu -mattr=+soft-float -relocation-model=static < %s | FileCheck --check-prefixes=ALL,O32 %s
2 …-linux-gnu -mattr=+soft-float -relocation-model=static < %s | FileCheck --check-prefixes=ALL,O32 %s
4 …r=+soft-float -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
5 …r=+soft-float -relocation-model=static -target-abi o32 < %s | FileCheck --check-prefixes=ALL,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]])
Dmemory-layout.ll1 ; RUN: llc -march=mips < %s | FileCheck --check-prefixes=ALL,O32 %s
2 ; RUN: llc -march=mipsel < %s | FileCheck --check-prefixes=ALL,O32 %s
4 ; RUN-TODO: llc -march=mips64 -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
5 ; RUN-TODO: llc -march=mips64el -target-abi o32 < %s | FileCheck --check-prefixes=ALL,O32 %s
60 ; O32: .p2align 2
64 ; O32: .4byte byte
65 ; O32: .size pointer, 4
114 ; O32: .p2align 2
118 ; O32: .4byte byte
119 ; O32: .4byte byte
[all …]
/external/llvm/test/MC/Mips/
Dexpansion-jal-sym-pic.s2 # RUN: FileCheck %s -check-prefixes=ALL,NORMAL,O32
11 # RUN: FileCheck %s -check-prefixes=ALL,MICROMIPS,O32-MICROMIPS
53 # O32: lw $25, %got(local_label)($gp) # encoding: [0x8f,0x99,A,A]
54 # O32: # fixup A - offset: 0, value: %got(local_label), kind…
55 # O32: addiu $25, $25, %lo(local_label) # encoding: [0x27,0x39,A,A]
56 # O32: # fixup A - offset: 0, value: %lo(local_label), kind:…
64 # O32-MICROMIPS: lw $25, %got(local_label)($gp) # encoding: [0xff,0x3c,A,A]
65 # O32-MICROMIPS: # fixup A - offset: 0, value: %got(local_…
66 # O32-MICROMIPS: addiu $25, $25, %lo(local_label) # encoding: [0x33,0x39,A,A]
67 # O32-MICROMIPS: # fixup A - offset: 0, value: %lo(local_l…
[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 .text 0x0
32 # OBJ-O32: 0x4 R_MIPS_NONE .text 0x0
33 # OBJ-O32: 0x8 R_MIPS_32 .text 0x0
34 # OBJ-O32: 0xC R_MIPS_NONE - 0x0
Dcpload.s4 # RUN: llvm-objdump -d -r - | FileCheck %s -check-prefix=OBJ-O32
18 # OBJ-O32: .text
19 # OBJ-O32: lui $gp, 0
20 # OBJ-O32: R_MIPS_HI16 _gp_disp
21 # OBJ-O32: addiu $gp, $gp, 0
22 # OBJ-O32: R_MIPS_LO16 _gp_disp
23 # OBJ-O32: addu $gp, $gp, $25
/external/llvm/test/CodeGen/Mips/llvm-ir/
Dcall.ll4 … -relocation-model=pic -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes=ALL,O32,NOT-R6C
5 …2 -relocation-model=pic -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes=ALL,O32,NOT-R6C
6 …3 -relocation-model=pic -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes=ALL,O32,NOT-R6C
7 …5 -relocation-model=pic -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes=ALL,O32,NOT-R6C
8 … -disable-mips-delay-filler -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes=ALL,O32,R6C
9 … -disable-mips-delay-filler -enable-mips-tail-calls < %s | FileCheck %s -check-prefixes=ALL,O32,R6C
24 ; O32: lw $[[TGT:[0-9]+]], %call16(extern_void_void)($gp)
39 ; O32: lw $[[TGT:[0-9]+]], %call16(extern_i32_void)($gp)
57 ; O32: addu $[[GP:[0-9]+]], ${{[0-9]+}}, $25
58 ; O32: lw $[[TGT:[0-9]+]], %call16(extern_float_void)($[[GP]])
[all …]

123