[PPC64] Update tests to reflect change in printing of call operand. [NFC]

The printing of branch operands for call instructions was changed to properly
handle negative offsets. Updating the tests to reflect that.

llvm-svn: 353866
This commit is contained in:
Sean Fertile 2019-02-12 17:49:04 +00:00
parent c069452027
commit 0205828be4
8 changed files with 13 additions and 14 deletions

View File

@ -53,7 +53,7 @@ caller:
# CHECK-LABEL: caller # CHECK-LABEL: caller
# CHECK: bl .+44 # CHECK: bl .+44
# CHECK-NEXT: mr 31, 3 # CHECK-NEXT: mr 31, 3
# CHECK-NEXT: bl .+67108816 # CHECK-NEXT: bl .-48
# CHECK-NEXT: ld 2, 24(1) # CHECK-NEXT: ld 2, 24(1)
# CHECK-NEXT: add 3, 3, 31 # CHECK-NEXT: add 3, 3, 31
# CHECK-NEXT: addi 1, 1, 32 # CHECK-NEXT: addi 1, 1, 32

View File

@ -62,7 +62,7 @@ test:
# CHECK: 10010024: {{.*}} b .+33554428 # CHECK: 10010024: {{.*}} b .+33554428
# NEGOFFSET-LABEL: test # NEGOFFSET-LABEL: test
# NEGOFFSET: 10010014: {{.*}} bl .+33554432 # NEGOFFSET: 10010014: {{.*}} bl .-33554432
# NEGOFFSET: 10010024: {{.*}} b .+33554432 # NEGOFFSET: 10010024: {{.*}} b .+33554432
# .branch_lt[0] # .branch_lt[0]
@ -83,7 +83,7 @@ test:
# the offset is interpreted as a signed 26 bit value so 67108812 is actually # the offset is interpreted as a signed 26 bit value so 67108812 is actually
# -52. # -52.
# THUNK-LABEL: test: # THUNK-LABEL: test:
# THUNK: 10010034: {{.*}} bl .+67108812 # THUNK: 10010034: {{.*}} bl .-52
# THUNK: 10010044: {{.*}} b .+67108812 # THUNK: 10010044: {{.*}} b .+67108812
# The offset from the TOC to the .branch_lt section is (-1 << 16) - 32768. # The offset from the TOC to the .branch_lt section is (-1 << 16) - 32768.

View File

@ -42,9 +42,9 @@
# CHECK: _start: # CHECK: _start:
# CHECK-NEXT: addis 2, 12, 2 # CHECK-NEXT: addis 2, 12, 2
# CHECK-NEXT: addi 2, 2, -32588 # CHECK-NEXT: addi 2, 2, -32588
# CHECK-NEXT: bl .+67108812 # CHECK-NEXT: bl .-52
# CHECK-NEXT: ld 2, 24(1) # CHECK-NEXT: ld 2, 24(1)
# CHECK-NEXT: bl .+67108824 # CHECK-NEXT: bl .-40
# CHECK-NEXT: ld 2, 24(1) # CHECK-NEXT: ld 2, 24(1)
# Check tocbase # Check tocbase

View File

@ -113,7 +113,7 @@ k:
// Dis: test: // Dis: test:
// Dis: addis 3, 2, 0 // Dis: addis 3, 2, 0
// Dis-NEXT: addi 3, 3, -32760 // Dis-NEXT: addi 3, 3, -32760
// Dis-NEXT: bl .+67108804 // Dis-NEXT: bl .-60
// Dis-NEXT: ld 2, 24(1) // Dis-NEXT: ld 2, 24(1)
// Dis-NEXT: addis 3, 3, 0 // Dis-NEXT: addis 3, 3, 0
// Dis-NEXT: lwa 3, -32768(3) // Dis-NEXT: lwa 3, -32768(3)

View File

@ -22,7 +22,7 @@
// CHECK: _start: // CHECK: _start:
// CHECK: bl .+67108824 // CHECK: bl .-40
.text .text
.abiversion 2 .abiversion 2
.globl _start .globl _start

View File

@ -30,9 +30,8 @@ bar:
nop nop
blr blr
# FIXME: The printing here is misleading, the branch offset here is negative. # CHECK: 1001000c: {{.*}} bl .-12
# CHECK: 1001000c: {{.*}} bl .+67108852
# CHECK: 10010010: {{.*}} nop # CHECK: 10010010: {{.*}} nop
# CHECK: 10010014: {{.*}} bl .+67108844 # CHECK: 10010014: {{.*}} bl .-20
# CHECK: 10010018: {{.*}} nop # CHECK: 10010018: {{.*}} nop
# CHECK: 1001001c: {{.*}} blr # CHECK: 1001001c: {{.*}} blr

View File

@ -18,7 +18,7 @@
# CHECK-NEXT: 10000: # CHECK-NEXT: 10000:
# CHECK-LABEL: recursive_func # CHECK-LABEL: recursive_func
# CHECK-NEXT: 10014: # CHECK-NEXT: 10014:
# CHECK: 1003c: {{[0-9a-fA-F ]+}} bl .+67108804 # CHECK: 1003c: {{.*}} bl .-60
# CHECK-NEXT: ld 2, 24(1) # CHECK-NEXT: ld 2, 24(1)
.abiversion 2 .abiversion 2

View File

@ -32,10 +32,10 @@ _start:
// CHECK: Disassembly of section .text: // CHECK: Disassembly of section .text:
// CHECK: _start: // CHECK: _start:
// CHECK: 1001001c: {{.*}} bl .+67108836 // CHECK: 1001001c: {{.*}} bl .-28
// CHECK-NOT: 10010020: {{.*}} nop // CHECK-NOT: 10010020: {{.*}} nop
// CHECK: 10010020: {{.*}} ld 2, 24(1) // CHECK: 10010020: {{.*}} ld 2, 24(1)
// CHECK: 10010024: {{.*}} bl .+67108848 // CHECK: 10010024: {{.*}} bl .-16
// CHECK-NOT: 10010028: {{.*}} nop // CHECK-NOT: 10010028: {{.*}} nop
// CHECK-NOT: 10010028: {{.*}} ld 2, 24(1) // CHECK-NOT: 10010028: {{.*}} ld 2, 24(1)
@ -68,5 +68,5 @@ last:
bl foo bl foo
nop nop
// CHECK: last: // CHECK: last:
// CHECK: 10010038: {{.*}} bl .+67108808 // CHECK: 10010038: {{.*}} bl .-56
// CHECK-NEXT: 1001003c: {{.*}} ld 2, 24(1) // CHECK-NEXT: 1001003c: {{.*}} ld 2, 24(1)